E57B Indicate the otlploghttp exporter must be created by the New method (… · open-telemetry/opentelemetry-go@418f19d · GitHub
[go: up one dir, main page]

Skip to content

Commit 418f19d

Browse files
authored
Indicate the otlploghttp exporter must be created by the New method (#5521)
The empty Exporter would cause panics.
1 parent 0b1e0b2 commit 418f19d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
4242
- Prevent random number generation data-race for experimental rand exemplars in `go.opentelemetry.io/otel/sdk/metric`. (#5456)
4343
- Fix counting number of dropped attributes of `Record` in `go.opentelemetry.io/otel/sdk/log`. (#5464)
4444
- Fix panic in baggage creation when a member contains 0x80 char in key or value. (#5494)
45-
- Correct comments for the priority of the `WithEndpoint` and `WithEndpointURL` options and their coresponding environment variables in in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`. (#5508)
45+
- Correct comments for the priority of the `WithEndpoint` and `WithEndpointURL` options and their corresponding environment variables in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc`. (#5508)
4646
- Fix stale timestamps reported by the lastvalue aggregation. (#5517)
47+
- Indicate the `Exporter` in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp` must be created by the `New` method. (#5521)
4748

4849
## [1.27.0/0.49.0/0.3.0] 2024-05-21
4950

exporters/otlp/otlplog/otlploghttp/exporter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313

1414
// Exporter is a OpenTelemetry log Exporter. It transports log data encoded as
1515
// OTLP protobufs using HTTP.
16+
// Exporter must be created with [New].
1617
type Exporter struct {
1718
client atomic.Pointer[client]
1819
stopped atomic.Bool

0 commit comments

Comments
 (0)
0