Skip to content
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

[Feature]: SpanProcessor API seems to be limiting #1893

Open
purkhusid opened this issue Jun 20, 2024 · 0 comments
Open

[Feature]: SpanProcessor API seems to be limiting #1893

purkhusid opened this issue Jun 20, 2024 · 0 comments
Labels
enhancement New feature or request triage:todo Needs to be traiged.

Comments

@purkhusid
Copy link

Related Problems?

No response

Describe the solution you'd like:

I'm trying to create a SpanProcessor that is very similar to this one here in Java: https://github.com/microsoft/ApplicationInsights-Java/blob/main/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init/InheritedAttributesSpanProcessor.java

The processor reads the attributes of the parent span and adds it to the child span if it's in the list of approved attributes.

In Java they can easily get the full Span with it's attributes from the Context but this does not seem to be possible in the Rust OTEL implementation

Considered Alternatives

I also considered solving this by using a lookup table so that I could look up the parent span from the span ID that is in the parent context but that is very hard to do(Impossible?) in Rust since the lookup table would outlive the span.

Additional Context

No response

@purkhusid purkhusid added enhancement New feature or request triage:todo Needs to be traiged. labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage:todo Needs to be traiged.
Projects
None yet
Development

No branches or pull requests

1 participant