Skip to content

Add support for OnEnding() method to SpanProcessor #6593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
simonpasquier opened this issue Apr 2, 2025 · 1 comment
Open

Add support for OnEnding() method to SpanProcessor #6593

simonpasquier opened this issue Apr 2, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@simonpasquier
Copy link

Problem Statement

The OpenTelemetry trace SDK spec recently added the ability for SpanProcessor to mutate spans on end (open-telemetry/opentelemetry-specification#4024 and https://opentelemetry.io/docs/specs/otel/trace/sdk/#onending).

AFAICT the feature isn't yet supported by the Go SDK (https://pkg.go.dev/go.opentelemetry.io/otel/sdk@v1.35.0/trace#SpanProcessor).

Proposed Solution

NA

Alternatives

NA

Prior Art

NA

Additional Context

This feature has been mentioned as a possible solution for #5703. It's also been mentioned in Azure/azure-sdk-for-go#24347.

@dmathieu
Copy link
Member

dmathieu commented Apr 3, 2025

See #5756 for context on the challenges this gives, and how it's not a trivial change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants