1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-26 21:05:00 +02:00
opentelemetry-go/internal
Zhihan Li 83ae9bd0e3
Bugfix: OTLP exporters should not percent decode the key when parsing HEADERS env vars (#5705)
Bugfix #5623

As stated in the issue, we need to avoid parsing the key and instead
implement a validation check for it. I've added some unit tests to
verify this fix.

However, I noticed a comment at the top of this file:
```
// Code created by gotmpl. DO NOT MODIFY.
// source: internal/shared/otlp/envconfig/envconfig.go.tmpl
```
It seems that `internal/shared/otlp/envconfig/envconfig.go.tmpl` is the
source template for this file. Since this template matches
`exporters/otlp/otlptrace/otlptracegrpc/internal/envconfig/envconfig.go`,
I updated the template to maintain consistency. I’m not entirely sure if
this approach is correct, so please confirm if this is the right course
of action.

---------

Co-authored-by: Fools <54661071+Charlie-lizhihan@users.noreply.github.com>
Co-authored-by: Damien Mathieu <42@dmathieu.com>
Co-authored-by: Robert Pająk <pellared@hotmail.com>
Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
2024-08-21 07:53:24 -07:00
..
attribute Reduces allocation in attributes (#5549) 2024-06-27 10:27:48 -07:00
baggage [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
global Identify global Tracers and Meters with their schema URLs (#5426) 2024-05-30 07:20:05 -07:00
internaltest [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
matchers [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
shared Bugfix: OTLP exporters should not percent decode the key when parsing HEADERS env vars (#5705) 2024-08-21 07:53:24 -07:00
tools Add support for go 1.23 (#5720) 2024-08-21 09:37:56 +02:00
gen.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
rawhelpers.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00