We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3e9a028 + 952e9d3 commit 2634558Copy full SHA for 2634558
plugins/otel/http.go
@@ -6,6 +6,7 @@ import (
6
"fmt"
7
"io"
8
"net/http"
9
+ "strings"
10
"time"
11
12
collectorpb "go.opentelemetry.io/proto/otlp/collector/trace/v1"
@@ -49,7 +50,7 @@ func (c *OtelClientHTTP) Emit(ctx context.Context, rs []*ResourceSpan) error {
49
50
req.Header.Set("Content-Type", "application/x-protobuf")
51
if c.headers != nil {
52
for key, value := range c.headers {
- if key == "Content-Type" {
53
+ if strings.ToLower(key) == "content-type" {
54
continue
55
}
56
req.Header.Set(key, value)
0 commit comments