elastic

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// resource attributes
	AttributeAgentName    = "agent.name"
	AttributeAgentVersion = "agent.version"

	// scope attributes
	AttributeServiceFrameworkName    = "service.framework.name"
	AttributeServiceFrameworkVersion = "service.framework.version"

	// span attributes
	AttributeTimestampUs                    = "timestamp.us"
	AttributeProcessorEvent                 = "processor.event"
	AttributeTransactionSampled             = "transaction.sampled"
	AttributeTransactionID                  = "transaction.id"
	AttributeTransactionRoot                = "transaction.root"
	AttributeTransactionName                = "transaction.name"
	AttributeTransactionType                = "transaction.type"
	AttributeTransactionDurationUs          = "transaction.duration.us"
	AttributeTransactionResult              = "transaction.result"
	AttributeTransactionRepresentativeCount = "transaction.representative_count"
	AttributeSpanName                       = "span.name"
	AttributeSpanType                       = "span.type"
	AttributeSpanSubtype                    = "span.subtype"
	AttributeEventOutcome                   = "event.outcome"
	AttributeSuccessCount                   = "event.success_count"
	AttributeServiceTargetType              = "service.target.type"
	AttributeServiceTargetName              = "service.target.name"
	AttributeSpanDestinationServiceResource = "span.destination.service.resource"
	AttributeSpanDurationUs                 = "span.duration.us"
	AttributeSpanRepresentativeCount        = "span.representative_count"
	AttributeChildIDs                       = "child.id"

	// span event attributes
	AttributeParentID              = "parent.id"
	AttributeErrorID               = "error.id"
	AttributeErrorExceptionHandled = "error.exception.handled"
	AttributeErrorGroupingKey      = "error.grouping_key"
	AttributeErrorGroupingName     = "error.grouping_name"
)

Variables

This section is empty.

Functions

func EnrichResource added in v0.9.0

func EnrichResource(resource pcommon.Resource, cfg config.Config)

EnrichResource derives and adds Elastic specific resource attributes.

func EnrichScope added in v0.9.0

func EnrichScope(scope pcommon.InstrumentationScope, cfg config.Config)

EnrichScope derives and adds Elastic specific scope attributes.

func EnrichSpan

func EnrichSpan(span ptrace.Span, cfg config.Config)

EnrichSpan adds Elastic specific attributes to the OTel span. These attributes are derived from the base attributes and appended to the span attributes. The enrichment logic is performed by categorizing the OTel spans into 2 different categories:

  • Elastic transactions, defined as spans which measure the highest level of work being performed with a service.
  • Elastic spans, defined as all spans (including transactions). However, for the enrichment logic spans are treated as a separate entity i.e. all transactions are not enriched as spans and vice versa.

Types

This section is empty.

Jump to

Keyboard shortcuts

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