Back to Fluent Bit

Instructions to run

lib/ctraces/examples/otlp-encoder/README.md

5.0.4818 B
Original Source

Instructions to run

After building the project with -CTR_DEV=on, the example can be found at build/examples/ctraces-otlp-encoder

The example encodes a ctraces context to a buffer and sends it to a locally running instance of the OpenTelemetry Collector. After setting up the collector locally by following the instructions from their docs, you can start the collector with the following config file:

yaml
receivers:
  otlp:
    protocols:
      http:
        endpoint: "0.0.0.0:4318"

exporters:
  logging:
    loglevel: debug

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [logging]

Now you can run the example and see the trace data logged by the collector instance.