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
Keep supporting InstrumentationLibrarySpans until the attribute is removed #2769
Keep supporting InstrumentationLibrarySpans until the attribute is removed #2769
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2769 +/- ##
=======================================
- Coverage 76.8% 76.7% -0.1%
=======================================
Files 181 181
Lines 12189 12231 +42
=======================================
+ Hits 9363 9385 +22
- Misses 2601 2621 +20
Partials 225 225
|
I'm not sure this is the correct conclusion to draw from the available evidence. #2748 was not included in the |
I've removed the Technically, dropping support for the old field right away also is a breaking change. So it would require a major release. |
When I force the use of
What is not expected is that Using This indicates a potential problem with the conversion logic in the collector and not I will continue investigating. |
I think this can be closed with the release of v1.6.2. We now have a solution for users that is to upgrade to the latest version. |
Nevermind, this is not the scenario that is broken. 🤦 |
@Aneurysm9 please post an update when you find anything. Thanks for looking. |
open-telemetry/opentelemetry-collector#5189 should fix this. |
#2748 removed support for
InstrumentationLibrarySpans
and renamed it toScopeSpan
, because that attribute has been renamed in protobuf.However, fully removing that support in a single change is breaking apps here and there, as it means folks have to upgrade both the library and their collector at the same time.
This change brings back support for
InstrumentationLibrarySpans
, so we send both fields and can still support collectors that rely on the deprecated field.Once proto fully removes that field, we can remove support for it here (which may require a major release?).