env

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 8 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"

Variables

This section is empty.

Functions

func NewDetector added in v0.8.0

func NewDetector() (internal.Detector, error)

Types

type Detector

type Detector struct{}

func (*Detector) Detect

func (d *Detector) Detect(context.Context) (pdata.Resource, error)

Jump to

Keyboard shortcuts

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