Enrich with OpenTelemetry APIs
Go
Required dependencies
Add the following dependencies to your project by running:
Creating Spans
To create a span, you need to get a Tracer
and use it to start a new span.
The following example demonstrates how to create a span using the OpenTelemetry Go API.
Additional information
For more use cases, see the OpenTelemetry Go API documentation.