Relay trace from offline service to collector #5051
NullHypothesis
started this conversation in
General
Replies: 1 comment
-
The ConsoleSpanExporter is there for debugging purposes, not for production use. There is no formalized protocol and its output could have breaking changes. OTLP is actually the protocol built for exporting traces. So I would consider either of the following:
For both solutions, the view of the Python service remains the same: it sends OTLP data. Whether that's through a local collector (which can be dedicated to that), or with a custom built solution in your service is up to you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Go service that spawns a Docker container, which runs a Python service. Both services are instrumented via OpenTelemetry. The Python service however is sandboxed and does not have network connectivity. It receives the Go service's trace context via environment variable and can communicate back via text files written to disk.
So far, the Python service uses the
ConsoleSpanExporter
to write its trace to a file on disk, which makes it back to the Go service. I now wonder what's the easiest way to have the Go service take this text file and send it to the collector. Any suggestions?Beta Was this translation helpful? Give feedback.
All reactions