From d0cf448f0f92b80ad1fa2aae5ffbdc1a24511af0 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Tue, 6 Aug 2024 16:20:24 -0700 Subject: [PATCH 1/2] [receiver/mongodbatlasreceiver] update scope name for consistency Update the scope name for telemetry produced by the mongodbatlasreceiverreceiver from otelcol/mongodbatlasreceiver to github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiverreceiver Part of https://github.com/open-telemetry/opentelemetry-collector/issues/9494 Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com> --- ...ten_update-scope-mongodbatlasreceiver.yaml | 27 +++++++++++++++++++ .../internal/metadata/generated_metrics.go | 2 +- receiver/mongodbatlasreceiver/metadata.yaml | 1 - 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml diff --git a/.chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml b/.chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml new file mode 100644 index 000000000000..f063a81fb460 --- /dev/null +++ b/.chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml @@ -0,0 +1,27 @@ +# Use this changelog template to create an entry for release notes. + +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' +change_type: breaking + +# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) +component: mongodbatlasreceiver + +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). +note: "Update the scope name for telemetry produced by the mongodbatlasreceiver from `otelcol/mongodbatlasreceiver` to `github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver`" + +# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. +issues: [34429] + +# (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: + +# If your change doesn't affect end users or the exported elements of any package, +# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. +# Optional: The change log or logs in which this entry should be included. +# e.g. '[user]' or '[user, api]' +# Include 'user' if the change is relevant to end users. +# Include 'api' if there is a change to a library API. +# Default: '[user]' +change_logs: [] diff --git a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go index 5e3858662155..b1f8779a650c 100644 --- a/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go +++ b/receiver/mongodbatlasreceiver/internal/metadata/generated_metrics.go @@ -4172,7 +4172,7 @@ func WithStartTimeOverride(start pcommon.Timestamp) ResourceMetricsOption { func (mb *MetricsBuilder) EmitForResource(rmo ...ResourceMetricsOption) { rm := pmetric.NewResourceMetrics() ils := rm.ScopeMetrics().AppendEmpty() - ils.Scope().SetName("otelcol/mongodbatlasreceiver") + ils.Scope().SetName("github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver") ils.Scope().SetVersion(mb.buildInfo.Version) ils.Metrics().EnsureCapacity(mb.metricsCapacity) mb.metricMongodbatlasDbCounts.emit(ils.Metrics()) diff --git a/receiver/mongodbatlasreceiver/metadata.yaml b/receiver/mongodbatlasreceiver/metadata.yaml index 147d6b1066f6..b6b9d926d181 100644 --- a/receiver/mongodbatlasreceiver/metadata.yaml +++ b/receiver/mongodbatlasreceiver/metadata.yaml @@ -1,5 +1,4 @@ type: mongodbatlas -scope_name: otelcol/mongodbatlasreceiver status: class: receiver From 5d54a9dca530675dfcb189d1d6c0b484879fa8a0 Mon Sep 17 00:00:00 2001 From: Alex Boten <223565+codeboten@users.noreply.github.com> Date: Thu, 8 Aug 2024 12:35:10 -0700 Subject: [PATCH 2/2] Update .chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml --- .chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml b/.chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml index f063a81fb460..58e0ad0a2924 100644 --- a/.chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml +++ b/.chloggen/codeboten_update-scope-mongodbatlasreceiver.yaml @@ -10,7 +10,7 @@ component: mongodbatlasreceiver note: "Update the scope name for telemetry produced by the mongodbatlasreceiver from `otelcol/mongodbatlasreceiver` to `github.com/open-telemetry/opentelemetry-collector-contrib/receiver/mongodbatlasreceiver`" # Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. -issues: [34429] +issues: [34543] # (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.