Documentation ¶
Overview ¶
Package internal contains an interface for detecting resource information, and a provider to merge the resources returned by a slice of custom detectors.
Index ¶
- func AttributesToMap(am pdata.AttributeMap) map[string]interface{}
- func GOOSToOSType(goos string) string
- func IsEmptyResource(res pdata.Resource) bool
- func MergeResource(to, from pdata.Resource, overrideTo bool)
- func MergeSchemaURL(currentSchemaURL string, newSchemaURL string) string
- func NewAttributeMap(mp map[string]interface{}) pdata.AttributeMap
- func NewResource(mp map[string]interface{}) pdata.Resource
- func UnwrapAttribute(v pdata.AttributeValue) interface{}
- type Detector
- type DetectorConfig
- type DetectorFactory
- type DetectorType
- type ResourceDetectorConfig
- type ResourceProvider
- type ResourceProviderFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributesToMap ¶ added in v0.8.0
func AttributesToMap(am pdata.AttributeMap) map[string]interface{}
func GOOSToOSType ¶ added in v0.27.0
GOOSToOSType maps a runtime.GOOS-like value to os.type style.
func IsEmptyResource ¶
func MergeResource ¶
func MergeSchemaURL ¶ added in v0.32.0
func NewAttributeMap ¶
func NewAttributeMap(mp map[string]interface{}) pdata.AttributeMap
func NewResource ¶
func UnwrapAttribute ¶ added in v0.14.0
func UnwrapAttribute(v pdata.AttributeValue) interface{}
Types ¶
type DetectorConfig ¶ added in v0.18.0
type DetectorConfig interface{}
type DetectorFactory ¶ added in v0.8.0
type DetectorFactory func(component.ProcessorCreateSettings, DetectorConfig) (Detector, error)
type DetectorType ¶
type DetectorType string
type ResourceDetectorConfig ¶ added in v0.18.0
type ResourceDetectorConfig interface {
GetConfigFromType(DetectorType) DetectorConfig
}
type ResourceProvider ¶
type ResourceProvider struct {
// contains filtered or unexported fields
}
func NewResourceProvider ¶
type ResourceProviderFactory ¶
type ResourceProviderFactory struct {
// contains filtered or unexported fields
}
func NewProviderFactory ¶
func NewProviderFactory(detectors map[DetectorType]DetectorFactory) *ResourceProviderFactory
func (*ResourceProviderFactory) CreateResourceProvider ¶
func (f *ResourceProviderFactory) CreateResourceProvider( params component.ProcessorCreateSettings, timeout time.Duration, detectorConfigs ResourceDetectorConfig, detectorTypes ...DetectorType) (*ResourceProvider, error)
Directories ¶
Path | Synopsis |
---|---|
aws
|
|
Package env provides a detector that loads resource information from the OTEL_RESOURCE environment variable.
|
Package env provides a detector that loads resource information from the OTEL_RESOURCE environment variable. |
gce
Package gce provides a detector that loads resource information from the GCE metatdata
|
Package gce provides a detector that loads resource information from the GCE metatdata |
Click to show internal directories.
Click to hide internal directories.