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