package resource
import "go.opentelemetry.io/otel/sdk/resource"
Package resource provides functionality for resource, which capture identifying information about the entities for which signals are exported.
Index ¶
Types ¶
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource describes an entity about which identifying information and metadata is exposed.
func Merge ¶
Merge creates a new resource by combining resource a and b. If there are common key between resource a and b then value from resource a is preserved. If one of the resources is nil then the other resource is returned without creating a new one.
func New ¶
New creates a resource from a set of attributes. If there are duplicates keys then the first value of the key is preserved.
func (Resource) Attributes ¶
Attributes returns a copy of attributes from the resource.
func (Resource) Equal ¶
Equal returns true if other Resource is the equal to r.
Source Files ¶
resource.go
Directories ¶
Path | Synopsis |
---|---|
sdk/resource/resourcekeys | Package resourcekeys contains well known type and label keys for resources. |
- Version
- v0.4.1
- Published
- Mar 31, 2020
- Platform
- darwin/amd64
- Imports
- 2 packages
- Last checked
- 50 minutes ago –
Tools for package owners.