Pushing traces to grafana cloud using the OTLP endpoint. #2505
Replies: 3 comments 2 replies
-
To add a key/value pair in the http headers:
Now, how many key/values, which key names, and which values are expected by the endpoint depends on the vendor for this endpoint. Now sure if this is the proper doc for graphana, but found this: https://grafana.com/docs/grafana-cloud/send-data/otlp/send-data-otlp/ Do not add the "=" sign in the key name. Pass a valid "Bearer XXXXXXXXX" (whatever that is) as value. At the end of the day, if the endpoint refuses the connection, there is not much the opentelemetry-cpp client code can do about it, and there is not much error message that can be displayed beside connection failed. This part is vendor dependent, check the vendor documentation. |
Beta Was this translation helpful? Give feedback.
-
Can you explain what you mean by a valid "Bearer XXXXXXXXX" |
Beta Was this translation helpful? Give feedback.
-
See the graphana oltp doc, it is a base64 encoding of id+token.
|
Beta Was this translation helpful? Give feedback.
-
Hi, I'm currently trying to build an application that will push traces, metrics and logs directly to the grafana cloud. I've built my application but I'm having some issues. Please if you could look through my code and tell me what might be the issue that would be nice.
code:
logs:
Beta Was this translation helpful? Give feedback.
All reactions