Debian Codegraph @

pdata/testdata/common.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 package testdata
5
6 import (
7 "go.opentelemetry.io/collector/pdata/pcommon"
8 )
9
10 func initMetricExemplarAttributes(dest pcommon.Map) {
11 dest.PutStr("exemplar-attachment", "exemplar-attachment-value")
12 }
13
14 func initMetricAttributes1(dest pcommon.Map) {
15 dest.PutStr("label-1", "label-value-1")
16 }
17
18 func initMetricAttributes2(dest pcommon.Map) {
19 dest.PutStr("label-2", "label-value-2")
20 }
21
22 func initMetricAttributes12(dest pcommon.Map) {
23 initMetricAttributes1(dest)
24 initMetricAttributes2(dest)
25 }
26
27 func initMetricAttributes13(dest pcommon.Map) {
28 initMetricAttributes1(dest)
29 dest.PutStr("label-3", "label-value-3")
30 }