Skip to content

tracetest: Add package example #7051

@pellared

Description

@pellared

Problem Statement

We document how to instrument a library, but not what to use to test instrumentation. This seems important enough to have some basic documentation for.

Proposed Solution

We should add a package example how to use https://pkg.go.dev/go.opentelemetry.io/otel/sdk/trace/tracetest

Prior Art

https://pkg.go.dev/go.opentelemetry.io/otel/log/logtest#example-package (source code: https://github.com/open-telemetry/opentelemetry-go/blob/main/log/logtest/example_test.go)

Additional Context

See:

Metadata

Metadata

Assignees

Labels

area:tracePart of OpenTelemetry tracingdocumentationProvides helpful informationenhancementNew feature or requesthelp wantedExtra attention is neededpkg:SDKRelated to an SDK package

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions