One of our Gen AI solutions is built on Golang. I see that Phoenix only has a Python SDK. What would be the best way to send traces to Phoenix in this case? Are there any such examples we could refer to?
To send traces from a Golang application to Phoenix, you can use OpenTelemetry, which Phoenix supports. Although Phoenix primarily provides auto-instrumentation for Python and JavaScript, you can manually instrument your Golang application using OpenTelemetry to send traces to Phoenix. For examples, you can refer to the OpenTelemetry Go documentation for setting up tracing in Golang. You will need to configure your application to export traces to the Phoenix collector endpoint, typically using the OTLP (OpenTelemetry Protocol) exporter. The endpoint would be something like http://<phoenix_host> :6006/v1/traces, as mentioned in the Phoenix tracing setup documentation.Would you like more detail on setting up OpenTelemetry in Golang? Sources:
- Phoenix tracing setup documentation
馃挕聽Hint: Mention RunLLM in the thread for followups.
Not explicitly for Phoenix sadly, I would rely on Otel docs itself for this https://opentelemetry.io/docs/languages/go/
