mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
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]>
31 lines
689 B
Go
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")
|
|
}
|