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

Remove no-op segments from context when closed #348

Open
willarmiros opened this issue Aug 5, 2022 · 0 comments
Open

Remove no-op segments from context when closed #348

willarmiros opened this issue Aug 5, 2022 · 0 comments

Comments

@willarmiros
Copy link
Contributor

Backgroumd

When a customer calls beginSegmentWithSampling and the decision is made to not sample, a NoOpSegment is inserted into the context:

However, when a customer calls close on that segment, it does not remove it from the context, leaving the stale no-op segment in context:

This is distinct from SegmentImpl.close(), which does clear it from the context:

Solution

We should consider removing the no-op segment from the context when closing it.

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

No branches or pull requests

1 participant