elastic

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package elastic contains an OTLP exporter for Elastic APM.

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 pdata.MetricSlice, otlpLibrary pdata.InstrumentationLibrary, 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 pdata.Resource, w *fastjson.Writer)

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

func EncodeSpan

func EncodeSpan(
	otlpSpan pdata.Span,
	otlpLibrary pdata.InstrumentationLibrary,
	otlpResource pdata.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