# 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.

pathfield accessedtype
resourceresource of the log being processedpcommon.Resource
resource.attributesresource attributes of the log being processedpcommon.Map
resource.attributes[""]the value of the resource attribute of the log being processedstring, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil
instrumentation_scopeinstrumentation scope of the log being processedpcommon.InstrumentationScope
instrumentation_scope.namename of the instrumentation scope of the log being processedstring
instrumentation_scope.versionversion of the instrumentation scope of the log being processedstring
instrumentation_scope.attributesinstrumentation scope attributes of the data point being processedpcommon.Map
instrumentation_scope.attributes[""]the value of the instrumentation scope attribute of the data point being processedstring, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil
attributesattributes of the log being processedpcommon.Map
attributes[""]the value of the attribute of the log being processedstring, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil
trace_id.stringa string representation of the trace idstring
span_id.stringa string representation of the span idstring

Enums

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

# Functions

No description provided by the author
No description provided by the author
No description provided by the author