You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We write application traces in file as json(schema: trace.json). I want to tail this trace file and ingest into opentelemetry collector using opentelemetry output plugin. When I try to tail this file, traces are ingested as logs instead of traces.
[SERVICE]
Flush 1
Log_level debug
[INPUT]
Name tail
Path ./trace.log
Tag app_traces
Read_from_head true
[OUTPUT]
Name opentelemetry
Match *
Host 127.0.0.1
Port 4318
Metrics_uri /v1/metrics
Logs_uri /v1/logs
Traces_uri /v1/traces
Log_response_payload True
Tls Off
Tls.verify Off
Describe the solution you'd like
Able to Read traces as json and ingest them to otel-collector. Something similar to opentelemetry_envelope which support converting trace json to opentelemetry schema which can be feed to opentelemetry output plugin.
The text was updated successfully, but these errors were encountered:
Yes, I want to scrape traces printed as JSON from logs and ingest them to otel collector. Idea behind this is to use log for sending traces instead of sending traces over http call from application. We don't want to add extra http call to application for sending traces, instead application can print them as json logs and fluent bit pipeline can off load ingesting those traces from logs to otel collector.
gaurang101197
changed the title
Support opentelemetry traces in json format
Support opentelemetry traces in json format from file
Feb 24, 2025
Is your feature request related to a problem? Please describe.
We write application traces in file as json(schema: trace.json). I want to tail this trace file and ingest into opentelemetry collector using opentelemetry output plugin. When I try to tail this file, traces are ingested as logs instead of traces.
Sample trace.log file
fluent-bit.conf:
Otel-collector.yml
Describe the solution you'd like
Able to Read traces as json and ingest them to otel-collector. Something similar to opentelemetry_envelope which support converting trace json to opentelemetry schema which can be feed to
opentelemetry
output plugin.The text was updated successfully, but these errors were encountered: