ottltraces

package
v0.0.0-...-f77ec2b Latest Latest
Warning

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

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

README

Traces Context

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

Paths

In general, the Traces Context supports accessing pdata using the field names from the traces 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 data point being processed pcommon.Resource
resource.attributes resource attributes of the data point being processed pcommon.Map
resource.attributes[""] the value of the resource attribute of the data point being processed string, bool, int64, float64, pcommon.Map, pcommon.Slice, []byte or nil
instrumentation_scope instrumentation scope of the data point being processed pcommon.InstrumentationScope
instrumentation_scope.name name of the instrumentation scope of the data point being processed string
instrumentation_scope.version version of the instrumentation scope of the data point 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 data point being processed pcommon.Map
attributes[""] the value of the attribute of the data point 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
trace_state[""] an individual entry in the trace state string
status.code the status code of the span being processed int64
status.message the status message of the span being processed string

Enums

The Traces Context supports the enum names from the traces proto.

Documentation

Jump to

Keyboard shortcuts

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