Specifies the type or protocol property of an exporter.
In addition, it specifies exporter-specific property values. Exporter names must be specified in the preceding
mfotl.exporter entry.
Syntax:
mfotl.exporter.<exporter-name>#<property>=<property-value>
Parameters:
- exporter-name
- Specifies the exporter property name.
- property
- Specifies the property, and can be:
- type
- Specifies the type property. See
property-value below for more information.
- url
- This property is mandatory for the OTLP HTTP exporter.
- location
- Enables you to specify a file to export to. Location properties can contain the
$(PID) escape sequence which will be replaced with the process ID of the executing process.
Click
here for a full list of property names for the OTLP HTTP exporter.
- property-value
- Specifies the value of the property. Exporter property values are plain strings, unlike CTF property values. The
type property supports
otlp_http and
ostream which represent
OpenTelemetry Protocol (OTLP) HTTP and OStream exporters respectively. The ostream exporter is typically used for debugging purposes.
Example:
# single OLTP HTTP exporter
mfotl.exporter.myexporter#type=oltp_http
mfotl.exporter.myexporter#url=http://localhost:4318/v1/traces
# single ostream exporter to stdout
mfotl.exporter.myexporter#type=ostream
# single ostream exporter to a file
mfotl.exporter.myfileexporter#type=ostream
mfotl.exporter.myfileexporter#location=/tmp/otl_log.txt