From 0928442c79842d3e2518e012ad0fcb8ef4fb1db2 Mon Sep 17 00:00:00 2001 From: Pablo Baeyens Date: Tue, 12 Dec 2023 16:26:08 +0100 Subject: [PATCH] prerelease pkgs v0.9.0 (#221) * Update versions.yaml to v0.9.0 * chloggen update -v v0.9.0 * Prepare pkgs for version v0.9.0 --- .../mackjmr_remove-unused-rattr-as-tags.yaml | 16 ---------------- .chloggen/main.yaml | 11 ----------- .chloggen/mx-psi_counter-hostname.yaml | 16 ---------------- .chloggen/mx-psi_hostname-counter.yaml | 16 ---------------- .chloggen/mx-psi_os.type-support.yaml | 16 ---------------- .../stanley.liu_remove-jvm-gc-duration.yaml | 16 ---------------- CHANGELOG.md | 17 +++++++++++++++++ pkg/inframetadata/go.mod | 2 +- pkg/otlp/logs/go.mod | 2 +- pkg/otlp/metrics/go.mod | 6 +++--- pkg/quantile/go.mod | 2 +- versions.yaml | 2 +- 12 files changed, 24 insertions(+), 98 deletions(-) delete mode 100755 .chloggen/mackjmr_remove-unused-rattr-as-tags.yaml delete mode 100644 .chloggen/main.yaml delete mode 100755 .chloggen/mx-psi_counter-hostname.yaml delete mode 100755 .chloggen/mx-psi_hostname-counter.yaml delete mode 100755 .chloggen/mx-psi_os.type-support.yaml delete mode 100755 .chloggen/stanley.liu_remove-jvm-gc-duration.yaml diff --git a/.chloggen/mackjmr_remove-unused-rattr-as-tags.yaml b/.chloggen/mackjmr_remove-unused-rattr-as-tags.yaml deleted file mode 100755 index e9aa8317..00000000 --- a/.chloggen/mackjmr_remove-unused-rattr-as-tags.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: breaking - -# The name of the component (e.g. pkg/quantile) -component: pkg/metrics - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Remove `WithResourceAttributesAsTags()` and `translatorConfig.ResourceAttributesAsTags` - -# The PR related to this change -issues: [219] - -# (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/main.yaml b/.chloggen/main.yaml deleted file mode 100644 index a393f7bb..00000000 --- a/.chloggen/main.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component (e.g. pkg/quantile) -component: pkg/otlp/logs - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: DataDog log timestamp (ie. '@timestamp') now includes milliseconds. - -# The PR related to this change -issues: [152] diff --git a/.chloggen/mx-psi_counter-hostname.yaml b/.chloggen/mx-psi_counter-hostname.yaml deleted file mode 100755 index d00a8f1d..00000000 --- a/.chloggen/mx-psi_counter-hostname.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: breaking - -# 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: Change signature of `NewTranslator` to accept `component.TelemetrySettings` instead of `zap.Logger` - -# The PR related to this change -issues: [218] - -# (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_hostname-counter.yaml b/.chloggen/mx-psi_hostname-counter.yaml deleted file mode 100755 index cf9d4bba..00000000 --- a/.chloggen/mx-psi_hostname-counter.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component (e.g. pkg/quantile) -component: pkg/otlp/metric - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Add `datadog.otlp_translator.metrics.missing_source` counter, which counts the number of metrics that are missing a source (e.g. hostname). - -# The PR related to this change -issues: [220] - -# (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_os.type-support.yaml b/.chloggen/mx-psi_os.type-support.yaml deleted file mode 100755 index 12d9f98b..00000000 --- a/.chloggen/mx-psi_os.type-support.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' -change_type: enhancement - -# The name of the component (e.g. pkg/quantile) -component: pkg/inframetadata - -# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). -note: Add support for GOOS and GOARCH values - -# The PR related to this change -issues: [185] - -# (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/stanley.liu_remove-jvm-gc-duration.yaml b/.chloggen/stanley.liu_remove-jvm-gc-duration.yaml deleted file mode 100755 index 91449ec3..00000000 --- a/.chloggen/stanley.liu_remove-jvm-gc-duration.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: Removes runtime metric mapping for process.runtime.jvm.gc.duration -> jvm.gc.parnew.time - -# The PR related to this change -issues: [213] - -# (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/CHANGELOG.md b/CHANGELOG.md index f568ece7..7d60dbb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ +## v0.9.0 + +### 🛑 Breaking changes 🛑 + +- `pkg/metrics`: Remove `WithResourceAttributesAsTags()` and `translatorConfig.ResourceAttributesAsTags` (#219) +- `pkg/otlp/metrics`: Change signature of `NewTranslator` to accept `component.TelemetrySettings` instead of `zap.Logger` (#218) + +### 💡 Enhancements 💡 + +- `pkg/otlp/logs`: DataDog log timestamp (ie. '@timestamp') now includes milliseconds. (#152) +- `pkg/otlp/metric`: Add `datadog.otlp_translator.metrics.missing_source` counter, which counts the number of metrics that are missing a source (e.g. hostname). (#220) +- `pkg/inframetadata`: Add support for GOOS and GOARCH values (#185) + +### 🧰 Bug fixes 🧰 + +- `pkg/otlp/metrics`: Removes runtime metric mapping for process.runtime.jvm.gc.duration -> jvm.gc.parnew.time (#213) + ## v0.8.3 ### 💡 Enhancements 💡 diff --git a/pkg/inframetadata/go.mod b/pkg/inframetadata/go.mod index b3a17be6..ddb47080 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.20 require ( - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3 + github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.9.0 github.com/stretchr/testify v1.8.4 go.opentelemetry.io/collector/pdata v1.0.0 go.opentelemetry.io/collector/semconv v0.90.1 diff --git a/pkg/otlp/logs/go.mod b/pkg/otlp/logs/go.mod index c1b4b460..7e68f0d9 100644 --- a/pkg/otlp/logs/go.mod +++ b/pkg/otlp/logs/go.mod @@ -4,7 +4,7 @@ go 1.20 require ( github.com/DataDog/datadog-api-client-go/v2 v2.13.0 - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3 + github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.9.0 github.com/stretchr/testify v1.8.4 go.opentelemetry.io/collector/pdata v1.0.0 go.opentelemetry.io/collector/semconv v0.90.1 diff --git a/pkg/otlp/metrics/go.mod b/pkg/otlp/metrics/go.mod index ff24582b..3f66ad6f 100644 --- a/pkg/otlp/metrics/go.mod +++ b/pkg/otlp/metrics/go.mod @@ -4,9 +4,9 @@ go 1.20 require ( github.com/DataDog/datadog-agent/pkg/proto v0.50.0-rc.1 - github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.8.3 - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.8.3 - github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.8.3 + github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.9.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes v0.9.0 + github.com/DataDog/opentelemetry-mapping-go/pkg/quantile v0.9.0 github.com/DataDog/sketches-go v1.4.3 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 fb9196c0..a571b345 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.20 require ( - github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.8.3 + github.com/DataDog/opentelemetry-mapping-go/pkg/internal/sketchtest v0.9.0 github.com/DataDog/sketches-go v1.4.3 github.com/dustin/go-humanize v1.0.1 github.com/stretchr/testify v1.8.4 diff --git a/versions.yaml b/versions.yaml index 54fd135e..56b497e1 100644 --- a/versions.yaml +++ b/versions.yaml @@ -5,7 +5,7 @@ module-sets: pkgs: - version: v0.8.3 + version: v0.9.0 modules: - github.com/DataDog/opentelemetry-mapping-go/pkg/quantile - github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/attributes