diff --git a/.chloggen/fix-metric-mapping.yaml b/.chloggen/fix-metric-mapping.yaml deleted file mode 100644 index b6f7f991..00000000 --- a/.chloggen/fix-metric-mapping.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: 'bug_fix' - -# The name of the component (e.g. pkg/quantile) -component: pkg/otlp/metrics - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Fix the incorrect for-loop which mutates the same slice while iterating over it, leading to unexpected metric names. Also avoid mutating the input pmetric.Metrics. - -# The PR related to this change -issues: [141] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: diff --git a/.chloggen/mx-psi_histo-min-max.yaml b/.chloggen/mx-psi_histo-min-max.yaml deleted file mode 100755 index 9e70ba8e..00000000 --- a/.chloggen/mx-psi_histo-min-max.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: bug_fix - -# The name of the component (e.g. pkg/quantile) -component: pkg/otlp/metrics - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: The minimum and maximum estimation for OTLP Histogram to Datadog distribution mapping now ensures the average is within [min, max]. - -# The PR related to this change -issues: [149] - -# (Optional) One or more lines of additional information to render under the primary note. -# These lines will be padded with 2 spaces and then inserted directly into the document. -# Use pipe (|) for multiline entries. -subtext: | - This estimation is only used when the minimum and maximum are not available in the OTLP payload or this is a cumulative payload. diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f307872..95f2c74a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ +## v0.7.0 + +### 🧰 Bug fixes 🧰 + +- `pkg/otlp/metrics`: Fix the incorrect for-loop which mutates the same slice while iterating over it, leading to unexpected metric names. Also avoid mutating the input pmetric.Metrics. (#141) +- `pkg/otlp/metrics`: The minimum and maximum estimation for OTLP Histogram to Datadog distribution mapping now ensures the average is within [min, max]. (#149) + This estimation is only used when the minimum and maximum are not available in the OTLP payload or this is a cumulative payload. + + ## v0.5.5 ### 🧰 Bug fixes 🧰 diff --git a/pkg/inframetadata/go.mod b/pkg/inframetadata/go.mod index ac30f366..85b928fd 100644 --- a/pkg/inframetadata/go.mod +++ b/pkg/inframetadata/go.mod @@ -3,7 +3,7 @@ module github.com/DataDog/opentelemetry-mapping-go/pkg/inframetadata go 1.19 require ( - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.6.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.7.0 github.com/stretchr/testify v1.8.4 go.opentelemetry.io/collector/pdata v1.0.0-rcv0014 go.opentelemetry.io/collector/semconv v0.82.0 diff --git a/pkg/otlp/logs/go.mod b/pkg/otlp/logs/go.mod index bc00711d..91db1a75 100644 --- a/pkg/otlp/logs/go.mod +++ b/pkg/otlp/logs/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/DataDog/datadog-api-client-go/v2 v2.13.0 - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.6.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.7.0 github.com/stretchr/testify v1.8.4 go.opentelemetry.io/collector/pdata v1.0.0-rcv0014 go.opentelemetry.io/collector/semconv v0.82.0 diff --git a/pkg/otlp/metrics/go.mod b/pkg/otlp/metrics/go.mod index 4ac38194..f1f1def5 100644 --- a/pkg/otlp/metrics/go.mod +++ b/pkg/otlp/metrics/go.mod @@ -4,9 +4,9 @@ go 1.19 require ( github.com/DataDog/datadog-agent/pkg/proto v0.48.0-beta.1 - github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.6.0 - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.6.0 - github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.6.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.7.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.7.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.7.0 github.com/DataDog/sketches-go v1.4.2 github.com/golang/protobuf v1.5.3 github.com/lightstep/go-expohisto v1.0.0 diff --git a/pkg/quantile/go.mod b/pkg/quantile/go.mod index caeee7e4..8852269f 100644 --- a/pkg/quantile/go.mod +++ b/pkg/quantile/go.mod @@ -3,7 +3,7 @@ module github.com/DataDog/opentelemetry-mapping-go/pkg/quantile go 1.19 require ( - github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.6.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.7.0 github.com/DataDog/sketches-go v1.4.2 github.com/dustin/go-humanize v1.0.1 github.com/stretchr/testify v1.8.4 diff --git a/versions.yaml b/versions.yaml index 45a4ba47..1b8d4ba0 100644 --- a/versions.yaml +++ b/versions.yaml @@ -5,7 +5,7 @@ module-sets: pkgs: - version: v0.6.0 + version: v0.7.0 modules: - github.com/DataDog/opentelemetry-mapping-go/pkg/quantile - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes