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

[processor/routing] Properly create new pdata instances #26464

Merged
merged 4 commits into from
Sep 6, 2023

Conversation

jpkrohling
Copy link
Member

This PR changes the routing processor so that it properly creates new instances of pdata.Span and InstrumentationScope, avoiding crashes later on due to nil pointers.

Fixes #26462

Signed-off-by: Juraci Paixão Kröhling [email protected]

This PR changes the routing processor so that it properly creates new instances of pdata.Span and InstrumentationScope, avoiding crashes later on due to nil pointers.

Fixes open-telemetry#26462

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
@jpkrohling jpkrohling requested review from a team and Aneurysm9 September 5, 2023 12:11
@github-actions github-actions bot added the processor/routing Routing processor label Sep 5, 2023
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
Copy link
Contributor

@evan-bradley evan-bradley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like metrics and logs are susceptible to the same issue, could we update those as well as part of this change?

Signed-off-by: Juraci Paixão Kröhling <[email protected]>
@jpkrohling
Copy link
Member Author

It looks like metrics and logs are susceptible to the same issue, could we update those as well as part of this change?

Thanks! I checked the connector version but not the other signals 🤦🏽 Interestingly, the metrics version does NOT fail, but I changed it to use the constructors anyway. Logs was indeed failing.

@jpkrohling jpkrohling merged commit d0e400d into open-telemetry:main Sep 6, 2023
90 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
processor/routing Routing processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/routing] Collector crash
3 participants