env

package
v0.70.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package env provides a detector that loads resource information from the OTEL_RESOURCE environment variable. A list of labels of the form `<key1>=<value1>,<key2>=<value2>,...` is accepted. Domain names and paths are accepted as label keys.

Index

Constants

View Source
const TypeStr = "env"

TypeStr is type of detector.

Variables

This section is empty.

Functions

func NewDetector added in v0.8.0

Types

type Detector

type Detector struct{}

func (*Detector) Detect

func (d *Detector) Detect(context.Context) (resource pcommon.Resource, schemaURL string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL