Skip to content

Commit 64838d6

Browse files
authored
Fix otlptrace client types (open-telemetry#6143)
Use the correct package name.
1 parent ba628e4 commit 64838d6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1111
### Fixed
1212

1313
- Relax minimum Go version to 1.22.0 in various modules. (#6073)
14+
- The `Type` name logged for the `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc` client is corrected from `otlphttpgrpc` to `otlptracegrpc`. (#6143)
15+
- The `Type` name logged for the `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlphttpgrpc` client is corrected from `otlphttphttp` to `otlptracehttp`. (#6143)
1416

1517
<!-- Released section -->
1618
<!-- Don't change this section unless doing release -->

exporters/otlp/otlptrace/otlptracegrpc/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func (c *client) MarshalLog() interface{} {
294294
Type string
295295
Endpoint string
296296
}{
297-
Type: "otlphttpgrpc",
297+
Type: "otlptracegrpc",
298298
Endpoint: c.endpoint,
299299
}
300300
}

exporters/otlp/otlptrace/otlptracehttp/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func (d *client) MarshalLog() interface{} {
276276
Endpoint string
277277
Insecure bool
278278
}{
279-
Type: "otlphttphttp",
279+
Type: "otlptracehttp",
280280
Endpoint: d.cfg.Endpoint,
281281
Insecure: d.cfg.Insecure,
282282
}

0 commit comments

Comments
 (0)