otlp

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstrumentationLibraryLogsToScope

func InstrumentationLibraryLogsToScope(rls []*otlplogs.ResourceLogs)

InstrumentationLibraryLogsToScope implements the translation of resource logs data following the v0.15.0 upgrade:

receivers SHOULD check if instrumentation_library_logs is set
and scope_logs is not set then the value in instrumentation_library_logs
SHOULD be used instead by converting InstrumentationLibraryLogs into ScopeLogs.
If scope_logs is set then instrumentation_library_logs SHOULD be ignored.

https://github.com/open-telemetry/opentelemetry-proto/blob/3c2915c01a9fb37abfc0415ec71247c4978386b0/opentelemetry/proto/logs/v1/logs.proto#L58

func InstrumentationLibraryMetricsToScope

func InstrumentationLibraryMetricsToScope(rms []*otlpmetrics.ResourceMetrics)

InstrumentationLibraryMetricsToScope implements the translation of resource metrics data following the v0.15.0 upgrade:

receivers SHOULD check if instrumentation_library_metrics is set
and scope_metrics is not set then the value in instrumentation_library_metrics
SHOULD be used instead by converting InstrumentationLibraryMetrics into ScopeMetrics.
If scope_metrics is set then instrumentation_library_metrics SHOULD be ignored.

https://github.com/open-telemetry/opentelemetry-proto/blob/3c2915c01a9fb37abfc0415ec71247c4978386b0/opentelemetry/proto/metrics/v1/metrics.proto#L58

func InstrumentationLibrarySpansToScope

func InstrumentationLibrarySpansToScope(rss []*otlptrace.ResourceSpans)

InstrumentationLibraryToScope implements the translation of resource span data following the v0.15.0 upgrade:

receivers SHOULD check if instrumentation_library_spans is set
and scope_spans is not set then the value in instrumentation_library_spans
SHOULD be used instead by converting InstrumentationLibrarySpans into ScopeSpans.
If scope_spans is set then instrumentation_library_spans SHOULD be ignored.

https://github.com/open-telemetry/opentelemetry-proto/blob/3c2915c01a9fb37abfc0415ec71247c4978386b0/opentelemetry/proto/trace/v1/trace.proto#L58

Types

This section is empty.

Jump to

Keyboard shortcuts

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