-
Notifications
You must be signed in to change notification settings - Fork 455
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 78.3% 78.3%
=====================================
Files 121 121
Lines 20815 20817 +2
=====================================
+ Hits 16308 16312 +4
+ Misses 4507 4505 -2 ☔ View full report in Codecov by Sentry. |
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
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.
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