-
Notifications
You must be signed in to change notification settings - Fork 462
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
Allow values containing '=' in OTEL_RESOURCE_ATTRIBUTES #2120
base: main
Are you sure you want to change the base?
Allow values containing '=' in OTEL_RESOURCE_ATTRIBUTES #2120
Conversation
2d61328
to
0b5d2b5
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2120 +/- ##
=====================================
Coverage 77.9% 77.9%
=====================================
Files 123 123
Lines 22925 22925
=====================================
+ Hits 17870 17871 +1
+ Misses 5055 5054 -1 ☔ View full report in Codecov by Sentry. |
0b5d2b5
to
1e469c4
Compare
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.
LGTM. Could you resolve the conflicts so we can merge?
Apologies for the delay in getting to review this.
Hi, I'm on paternity leave right now, so it'll have to wait until I get
back in January 👋
…On Sun, Nov 24, 2024, 17:58 Cijo Thomas ***@***.***> wrote:
***@***.**** approved this pull request.
LGTM. Could you resolve the conflicts so we can merge?
Apologies for the delay in getting to review this.
—
Reply to this email directly, view it on GitHub
<#2120 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AI6SLDBEQ6CSNNFQDVCOTF32CJKZRAVCNFSM6AAAAABOJLXVWOVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDINJWHAZDOOBRGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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.
Thank you for the change!
@@ -104,7 +104,7 @@ mod tests { | |||
[ | |||
( | |||
"OTEL_RESOURCE_ATTRIBUTES", | |||
Some("key=value, k = v , a= x, a=z"), | |||
Some("key=value, k = v , a= x, a=z,equal=value=,empty=,some=other=val"), |
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.
Replace this with an example using properties. The primary reason for allowing the additional = is in support of this feature.
1e469c4
to
d6e755c
Compare
Values passed in to `OTEL_RESOURCE_ATTRIBUTES` containing an equal sign `"="` are currently ignored by the Resource constructor, but should be accepted as it is part of the [W3C Baggage octet range](https://www.w3.org/TR/baggage/#header-content). Fixes open-telemetry#2110
d6e755c
to
ad1aad6
Compare
Values passed in to
OTEL_RESOURCE_ATTRIBUTES
containing an equal sign"="
are currently ignored by the Resource constructor, but should be accepted as it is part of the W3C Baggage octetrange.
Fixes #2110
Changes
Updates the
EnvResourceDetector
to allow resource attributes values containing an equal sign ("="
).Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes