Documentation ¶
Overview ¶
Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0
Index ¶
- func Attr(kv attribute.KeyValue) *types.KeyValue
- func AttrIter(iter attribute.Iterator) []*types.KeyValue
- func AttrValue(v attribute.Value) *types.AnyValue
- func Attrs(attrs []attribute.KeyValue) []*types.KeyValue
- func LogAttr(attr api.KeyValue) *types.KeyValue
- func LogAttrValue(v api.Value) *types.AnyValue
- func LogAttrValues(vals []api.Value) []*types.AnyValue
- func LogAttrs(attrs []api.KeyValue) []*types.KeyValue
- func LogRecord(record logsdk.Record) *types.LogRecord
- func ResourceLogs(records []logsdk.Record) []*types.ResourceLogs
- func SeverityNumber(s api.Severity) types.SeverityNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attr ¶
Attr transforms an attribute.KeyValue into an OTLP key-value.
func AttrIter ¶
AttrIter transforms an attribute.Iterator into OTLP key-values.
func AttrValue ¶
AttrValue transforms an attribute.Value into an OTLP AnyValue.
func Attrs ¶
Attrs transforms a slice of attribute.KeyValue into OTLP key-values.
func LogAttr ¶
LogAttr transforms an api.KeyValue into an OTLP key-value.
func LogAttrValue ¶
LogAttrValue transforms an api.Value into an OTLP AnyValue.
func LogAttrValues ¶
LogAttrValues transforms a slice of api.Value into an OTLP []AnyValue.
func LogAttrs ¶
Attrs transforms a slice of api.KeyValue into OTLP key-values.
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.