You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use this changelog template to create an entry for release notes.
2
+
3
+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4
+
change_type: enhancement
5
+
6
+
# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
7
+
component: receiver/prometheus_remote_write
8
+
9
+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10
+
note: "Handle all `otel_scope_*` prefixed labels per the Prometheus/OTLP compatibility spec."
11
+
12
+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13
+
issues: [47726]
14
+
15
+
# (Optional) One or more lines of additional information to render under the primary note.
16
+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17
+
# Use pipe (|) for multiline entries.
18
+
subtext: |
19
+
`otel_scope_schema_url` is now set as the instrumentation scope schema URL, and other `otel_scope_<attr>` labels become scope attributes (with the `otel_scope_` prefix stripped), instead of being incorrectly added as metric data point attributes.
20
+
21
+
# If your change doesn't affect end users or the exported elements of any package,
22
+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
23
+
# Optional: The change log or logs in which this entry should be included.
24
+
# e.g. '[user]' or '[user, api]'
25
+
# Include 'user' if the change is relevant to end users.
26
+
# Include 'api' if there is a change to a library API.
@@ -69,38 +69,50 @@ type prometheusRemoteWriteReceiver struct {
69
69
bodyBufferPool*sync.Pool
70
70
}
71
71
72
-
// metricIdentity contains all the components that uniquely identify a metric
73
-
// according to the OpenTelemetry Protocol data model.
74
-
// The definition of the metric uniqueness is based on the following document. Ref: https://opentelemetry.io/docs/specs/otel/metrics/data-model/#opentelemetry-protocol-data-model
72
+
// scopeInfo holds instrumentation scope fields extracted from otel_scope_* labels.
73
+
typescopeInfostruct {
74
+
Namestring
75
+
Versionstring
76
+
SchemaURLstring
77
+
extraAttrs [][2]string// scope attributes with the "otel_scope_" prefix stripped
0 commit comments