mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-02-09 13:37:12 +02:00
initialize checkpoint when creating ddsketch aggregator to prevent panic when merging into a empty one (#402) (#403)
This commit is contained in:
parent
1414d363de
commit
4f88422aa7
@ -48,6 +48,7 @@ func New(cfg *Config, desc *export.Descriptor) *Aggregator {
|
||||
cfg: cfg,
|
||||
kind: desc.NumberKind(),
|
||||
current: sdk.NewDDSketch(cfg),
|
||||
checkpoint: sdk.NewDDSketch(cfg),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user