mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-30 04:40:41 +02:00
Indicate the otlploghttp exporter must be created by the New method (#5521)
The empty Exporter would cause panics.
This commit is contained in:
parent
0b1e0b25aa
commit
418f19d341
@ -42,8 +42,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||||||
- Prevent random number generation data-race for experimental rand exemplars in `go.opentelemetry.io/otel/sdk/metric`. (#5456)
|
- Prevent random number generation data-race for experimental rand exemplars in `go.opentelemetry.io/otel/sdk/metric`. (#5456)
|
||||||
- Fix counting number of dropped attributes of `Record` in `go.opentelemetry.io/otel/sdk/log`. (#5464)
|
- Fix counting number of dropped attributes of `Record` in `go.opentelemetry.io/otel/sdk/log`. (#5464)
|
||||||
- Fix panic in baggage creation when a member contains 0x80 char in key or value. (#5494)
|
- Fix panic in baggage creation when a member contains 0x80 char in key or value. (#5494)
|
||||||
- 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)
|
- 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)
|
||||||
- Fix stale timestamps reported by the lastvalue aggregation. (#5517)
|
- Fix stale timestamps reported by the lastvalue aggregation. (#5517)
|
||||||
|
- Indicate the `Exporter` in `go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp` must be created by the `New` method. (#5521)
|
||||||
|
|
||||||
## [1.27.0/0.49.0/0.3.0] 2024-05-21
|
## [1.27.0/0.49.0/0.3.0] 2024-05-21
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ import (
|
|||||||
|
|
||||||
// Exporter is a OpenTelemetry log Exporter. It transports log data encoded as
|
// Exporter is a OpenTelemetry log Exporter. It transports log data encoded as
|
||||||
// OTLP protobufs using HTTP.
|
// OTLP protobufs using HTTP.
|
||||||
|
// Exporter must be created with [New].
|
||||||
type Exporter struct {
|
type Exporter struct {
|
||||||
client atomic.Pointer[client]
|
client atomic.Pointer[client]
|
||||||
stopped atomic.Bool
|
stopped atomic.Bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user