DataDog / opentelemetry-mapping-go

Go modules that implement OpenTelemetry-to-Datadog mapping for all telemetry signals
Apache License 2.0
13 stars 6 forks source link

[pkg/inframetadata] Initialize gohai fields on first access #323

Closed mx-psi closed 2 months ago

mx-psi commented 2 months ago

What does this PR do?

Initializes gohai fields on first access to avoid nil pointer dereference

Motivation

Fixes #306