ottllogs

package
v0.61.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

Logs Context

The Logs Context is a Context implementation for pdata Logs, the collector's internal representation for OTLP log data. This Context should be used when interacted with OTLP logs.

Paths

In general, the Logs Context supports accessing pdata using the field names from the logs proto. All integers are returned and set via int64. All doubles are returned and set via float64.

The following fields are the exception.

path field accessed type
resource resource of the log being processed pcommon.Resource
resource.attributes resource attributes of the log being processed pcommon.Map
resource.attributes[""] the value of the resource attribute of the log being processed string, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil
instrumentation_scope instrumentation scope of the log being processed pcommon.InstrumentationScope
instrumentation_scope.name name of the instrumentation scope of the log being processed string
instrumentation_scope.version version of the instrumentation scope of the log being processed string
instrumentation_scope.attributes instrumentation scope attributes of the data point being processed pcommon.Map
instrumentation_scope.attributes[""] the value of the instrumentation scope attribute of the data point being processed string, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil
attributes attributes of the log being processed pcommon.Map
attributes[""] the value of the attribute of the log being processed string, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil
trace_id.string a string representation of the trace id string
span_id.string a string representation of the span id string

Enums

The Logs Context supports the enum names from the logs proto.

Documentation

Jump to

Keyboard shortcuts

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