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]>
11 lines
256 B
Go
11 lines
256 B
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package testdata
|
|
|
|
import "go.opentelemetry.io/collector/pdata/pcommon"
|
|
|
|
func initResource(r pcommon.Resource) {
|
|
r.Attributes().PutStr("resource-attr", "resource-attr-val-1")
|
|
}
|