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
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.