elastic

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package elastic contains an OTLP exporter for Elastic APM. nolint:errcheck

Package elastic contains an opentelemetry-collector exporter for Elastic APM.

Package elastic contains an opentelemetry-collector exporter for Elastic APM.

Package elastic contains an opentelemetry-collector exporter for Elastic APM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeMetrics added in v0.12.0

func EncodeMetrics(otlpMetrics pmetric.MetricSlice, otlpLibrary pcommon.InstrumentationScope, w *fastjson.Writer) (dropped int, _ error)

EncodeMetrics encodes an OpenTelemetry metrics slice, and instrumentation library information, as one or more metricset lines, writing to w.

TODO(axw) otlpLibrary is currently not used. We should consider recording it as metadata.

func EncodeResourceMetadata

func EncodeResourceMetadata(resource pcommon.Resource, w *fastjson.Writer)

EncodeResourceMetadata encodes a metadata line from resource, writing to w.

func EncodeSpan

func EncodeSpan(
	otlpSpan ptrace.Span,
	otlpLibrary pcommon.InstrumentationScope,
	otlpResource pcommon.Resource,
	w *fastjson.Writer,
) error

EncodeSpan encodes an OpenTelemetry span, and instrumentation library information, as a transaction or span line, writing to w.

otlpResource is used for language-specific translations, such as parsing stacktraces.

TODO(axw) otlpLibrary is currently not used. We should consider recording it as metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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