Files
Alex BotenandGitHub 151f475323 move internal/testdata to pdata/testdata (#9885)
This reduces dependencies from the consumer package while making
testdata available across repos. It will allow us to remove duplicated
code and its a fairly small surface area.

Fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/9886

---------

Signed-off-by: Alex Boten <[email protected]>
2024-04-08 08:36:57 -07: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")
}