otelcarrier

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationsKeyPrefix = "lighthouse.jenkins-x.io/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationsCarrier

type AnnotationsCarrier map[string]string

AnnotationsCarrier adapts a Kubernetes annotations map to satisfy the OpenTelemetry TextMapCarrier interface. Note that the keys will be prefixed with the `AnnotationsKeyPrefix`

func (AnnotationsCarrier) Get

func (ac AnnotationsCarrier) Get(key string) string

Get returns the value associated with the passed key.

func (AnnotationsCarrier) Keys

func (ac AnnotationsCarrier) Keys() []string

Keys lists the keys stored in this carrier.

func (AnnotationsCarrier) Set

func (ac AnnotationsCarrier) Set(key string, value string)

Set stores the key-value pair.

Jump to

Keyboard shortcuts

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