-
Notifications
You must be signed in to change notification settings - Fork 851
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
Introduce a ReadWriteSpan interface and pass it to the onStart of the SpanProcessor #1574
Introduce a ReadWriteSpan interface and pass it to the onStart of the SpanProcessor #1574
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1574 +/- ##
============================================
- Coverage 86.85% 86.73% -0.12%
Complexity 1392 1392
============================================
Files 162 162
Lines 5369 5369
Branches 513 513
============================================
- Hits 4663 4657 -6
- Misses 523 527 +4
- Partials 183 185 +2
Continue to review full report at Codecov.
|
Note that @bogdandrutu was against having such an interface because it might make people cast the ReadableSpan in OnEnd to it. See open-telemetry/opentelemetry-specification#669 (comment) |
If they know the SDK codebase, they can cast directly to the RERS implementation as it is today. I don't see that this really changes much, aside from actually matching the current spec. :) |
Both PRs match the spec, I intentionally wrote it so that two parameters are also OK. That said, personally I also think that a single ReadWriteSpan interface is more clear. |
Not sure what other PR you are referencing. Did I miss a PR somewhere? |
I mean both the solution on this PR and the solution with two parameters proposed in the description of #1569 (that I also plugged in my comment). I assume that's what you referred to when you said "actually matching the current spec". |
Oh sorry. I was comparing with the current main branch, not vs another option! Very sorry for the confusion. I do think that either option would meet the spec..this just seemed like the simplest way to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Resolves #1569