-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Labels
Description
What is the problem you're trying to solve
Containerd has opentelemetry trace support, but currently there are no unit tests or integration tests related to otel plugin nor tests around individual spans.
This can include:
- Testing the otel SDK
- Testing manual instrumentation
There is helper package available already https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace/tracetest
Having proper testing will help verify otel trace behavior and detect any regression
Describe the solution you'd like
We need to first add some test coverage for the Otel SDK related methods and then extend testing across instrumented spans.
- Unit tests around
newExporterandnewTracer - For spans, we can use tracetest to create in memory exporter and verify span and attributes in places where we instrument spans
Additional context
No response
Reactions are currently unavailable