convert

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attr

func Attr(kv attribute.KeyValue) *types.KeyValue

Attr transforms an attribute.KeyValue into an OTLP key-value.

func AttrIter

func AttrIter(iter attribute.Iterator) []*types.KeyValue

AttrIter transforms an attribute.Iterator into OTLP key-values.

func AttrValue

func AttrValue(v attribute.Value) *types.AnyValue

AttrValue transforms an attribute.Value into an OTLP AnyValue.

func Attrs

func Attrs(attrs []attribute.KeyValue) []*types.KeyValue

Attrs transforms a slice of attribute.KeyValue into OTLP key-values.

func LogAttr

func LogAttr(attr api.KeyValue) *types.KeyValue

LogAttr transforms an api.KeyValue into an OTLP key-value.

func LogAttrValue

func LogAttrValue(v api.Value) *types.AnyValue

LogAttrValue transforms an api.Value into an OTLP AnyValue.

func LogAttrValues

func LogAttrValues(vals []api.Value) []*types.AnyValue

LogAttrValues transforms a slice of api.Value into an OTLP []AnyValue.

func LogAttrs

func LogAttrs(attrs []api.KeyValue) []*types.KeyValue

Attrs transforms a slice of api.KeyValue into OTLP key-values.

func LogRecord

func LogRecord(record logsdk.Record) *types.LogRecord

LogRecord returns an OTLP LogRecord generated from record.

func ResourceLogs

func ResourceLogs(records []logsdk.Record) []*types.ResourceLogs

ResourceLogs returns an slice of OTLP ResourceLogs generated from records.

func SeverityNumber

func SeverityNumber(s api.Severity) types.SeverityNumber

SeverityNumber transforms a log.Severity into an OTLP SeverityNumber.

Types

This section is empty.

Jump to

Keyboard shortcuts

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