Integrating the Jaeger SDK
Now that Jaeger is ready, let’s look at how we are going to write tracing information using OpenTelemetry. The library provides support for the Jaeger SDK out of the box; this allows applications to use the API to write tracing to Jaeger.
The example that we will be using in this section is inside the jaeger/opentelem/trace
directory in the chapter’s GitHub repository. The file that we want to look at is tracing.go
as shown here:
package trace import ( «context» «go.opentelemetry.io/otel" «go.opentelemetry.io/otel/exporters/jaeger" «go.opentelemetry.io/otel/sdk/resource" ...