semconv

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultVersion = "https://opentelemetry.io/schemas/1.21.0"

Variables

This section is empty.

Functions

func Compare

func Compare(attrSlice []string, attributes ...[]*pbCommon.KeyValue) (missing []string, extra []string)

func GetAttributes

func GetAttributes(groups ...Group) []string

func ParseGroups

func ParseGroups(dir string) (map[string]Group, error)

func ParseSemanticVersion

func ParseSemanticVersion() (map[string]SemanticVersion, error)

Types

type Attribute

type Attribute struct {
	Id  string
	Ref string

	// This is space to hold the prefix.name after parsing.
	CanonicalId string
}

type File

type File struct {
	Groups []Group
}

type Group

type Group struct {
	Id         string
	Type       string
	Extends    string
	Attributes []Attribute

	Prefix string
}

type SemanticVersion

type SemanticVersion struct {
	Url    string `yaml:"url"`
	Dir    string `yaml:"dir"`
	Groups map[string]Group
}

Jump to

Keyboard shortcuts

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