Example OpenTelemetry configuration files

Example configuration files for tracing output to stout or a file.

Minimal configuration file for tracing to stdout

mfotl.exporter=stdout 
mfotl.exporter.stdout#type=ostream 
mfotl.span_processor=simple
mfotl.span_processor.simple#type=simple
mfotl.span_processor.simple#exporter=stdout

Minimal configuration file for tracing to a file

mfotl.exporter=stdout
mfotl.exporter.stdout#type=ostream
mfotl.exporter.stdout#location=/tmp/mfotl.log
mfotl.span_processor=simple
mfotl.span_processor.simple#type=simple
mfotl.span_processor.simple#exporter=stdout

Minimal configuration file for tracing using OTLP HTTP

mfotl.exporter=http1
mfotl.exporter.http1#type=oltp_http
mfotl.exporter.http1#url=http://localhost:4318/v1/traces
mfotl.span_processor=batch1
mfotl.span_processor.batch1#type=batch
mfotl.span_processor.batch1#exporter=http1

Configuration file for tracing to stdout using OTLP HTTP with a multi-span processor

mfotl.exporter=stdout1,http2
mfotl.span_processor=simple1,batch2

mfotl.exporter.stdout1#type=ostream
 
mfotl.exporter.http2#type=oltp_http
mfotl.exporter.http2#url=http://localhost:4318/v1/traces

mfotl.span_processor.simple1#type=simple
mfotl.span_processor.simple1#exporter=stdout1

mfotl.span_processor.batch2#type=batch
mfotl.span_processor.batch2#exporter=http2