Files
telemetry/pdata/testdata/resource.go
Alex BotenandGitHub fc28929061 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

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")
}