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
//Create instance to store options to initialize custome trace with.
opentelemetry::exporter::otlp::OtlpHttpExporterOptions opts;
//provide the "OTEL_EXPORTER_OTLP_ENDPOINT" here.
opts.url = "";
//provide the "OTEL_EXPORTER_OTLP_HEADERS" here.
opts.http_headers = opentelemetry::v1::exporter::otlp::OtlpHeaders();
I'm trying to send traces to a grafana cloud, so I'm currently writing a c++ application to achieve this. To do this I need to set the "OTEL_EXPORTER_OTLP_ENDPOINT" and "OTEL_EXPORTER_OTLP_HEADERS". The endpoint is easy, cause all I have to do is pass a string to it, but I'm having issues setting up the OTLP_HEADERS. I'm going through examples in the opentelemetry git repository but I haven't been able to find anything yet. I'm hoping someone here has run into this road block before.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to send traces to a grafana cloud, so I'm currently writing a c++ application to achieve this. To do this I need to set the "OTEL_EXPORTER_OTLP_ENDPOINT" and "OTEL_EXPORTER_OTLP_HEADERS". The endpoint is easy, cause all I have to do is pass a string to it, but I'm having issues setting up the OTLP_HEADERS. I'm going through examples in the opentelemetry git repository but I haven't been able to find anything yet. I'm hoping someone here has run into this road block before.
Beta Was this translation helpful? Give feedback.
All reactions