Files
Yuna VerheydenandGitHub 1ab7a14a6c Distributor shim: add test verifying receiver works (including metrics) (#4477)
* Distributor shim: add test verifying receiver works (including metrics)

* Add word

* Add CHANGELOG.md

* drop pointer receiver
2024-12-19 15:24:41 +00:00

31 lines
689 B
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
package testdata
import (
"go.opentelemetry.io/collector/pdata/pcommon"
)
func initMetricExemplarAttributes(dest pcommon.Map) {
dest.PutStr("exemplar-attachment", "exemplar-attachment-value")
}
func initMetricAttributes1(dest pcommon.Map) {
dest.PutStr("label-1", "label-value-1")
}
func initMetricAttributes2(dest pcommon.Map) {
dest.PutStr("label-2", "label-value-2")
}
func initMetricAttributes12(dest pcommon.Map) {
initMetricAttributes1(dest)
initMetricAttributes2(dest)
}
func initMetricAttributes13(dest pcommon.Map) {
initMetricAttributes1(dest)
dest.PutStr("label-3", "label-value-3")
}