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/prometheusremotewrite
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.
Copy file name to clipboardExpand all lines: receiver/prometheusremotewritereceiver/receiver.go
+99-51Lines changed: 99 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -72,38 +72,50 @@ type prometheusRemoteWriteReceiver struct {
72
72
bodyBufferPool*sync.Pool
73
73
}
74
74
75
-
// metricIdentity contains all the components that uniquely identify a metric
76
-
// according to the OpenTelemetry Protocol data model.
77
-
// 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
75
+
// scopeInfo holds instrumentation scope fields extracted from otel_scope_* labels.
76
+
typescopeInfostruct {
77
+
Namestring
78
+
Versionstring
79
+
SchemaURLstring
80
+
extraAttrs [][2]string// scope attributes with the "otel_scope_" prefix stripped
0 commit comments