Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerMetadata ¶
type ContainerMetadataProvider ¶
type ContainerMetadataProvider interface {
ProvideContainerMetadata(context.Context) (*ContainerMetadata, error)
}
ContainerMetadataProvider provides container's metadata.
It may communicate with remote endpoints for collecting container's metadata.
type ContainerMetadataProviderFunc ¶
type ContainerMetadataProviderFunc func(ctx context.Context) (*ContainerMetadata, error)
func (ContainerMetadataProviderFunc) ProvideContainerMetadata ¶
func (f ContainerMetadataProviderFunc) ProvideContainerMetadata(ctx context.Context) (*ContainerMetadata, error)
type Option ¶
type Option func(d *Detector)
func WithContainerMetadataProvider ¶
func WithContainerMetadataProvider(p ContainerMetadataProvider) Option
func WithServiceNameLabel ¶
func WithServiceVersionLabel ¶
type ProvideContainerMetadataError ¶
type ProvideContainerMetadataError struct {
Err error
}
func (*ProvideContainerMetadataError) Error ¶
func (e *ProvideContainerMetadataError) Error() string
func (*ProvideContainerMetadataError) Unwrap ¶
func (e *ProvideContainerMetadataError) Unwrap() error
type StaticContainerMetadataProvider ¶
type StaticContainerMetadataProvider struct{ *ContainerMetadata }
func (StaticContainerMetadataProvider) ProvideContainerMetadata ¶
func (p StaticContainerMetadataProvider) ProvideContainerMetadata(context.Context) (*ContainerMetadata, error)
Click to show internal directories.
Click to hide internal directories.