coldstartprocessor

package module
v0.0.0-...-441d0a5 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

README

Coldstart Processor

Status
Stability in development
Supported pipeline types traces
Distributions extension

This processor associates cold start information generated by the telemetryapireceiver with incoming span data processed by the Collector extension. It reads the following of incoming Lambda execution spans identified by the faas.execution attribute:

  • trace ID
  • parent span ID
  • span scope
  • resource attributes

This information is stored until the first coldstart span identified by the faas.coldstart attribute is received. That span's trace ID, parent span ID are updated to match the execution span. This allows the coldstart span to be part of the same trace as the operation that triggered the cold start. Additionally, the span scope and resource attributes of the span scope containing the coldstart span are replaced with the span scope and resource attributes of the execution span as they contain more details.

There are currently no configuration parameters available for this processor. It can be enabled via the following configuration:

processors:
    coldstart:

Documentation

Overview

Package coldstartprocessor correlates cold start information generated by the telemetryapireceiver with incoming span data.

It reads the following of incoming Lambda execution spans identified by the faas.execution attribute:

  • trace ID
  • parent span ID
  • span scope
  • resource attributes

This information is stored until the first coldstart span identified by the faas.coldstart attribute is received. That span's trace ID, parent span ID are updated to match the execution span. This allows the coldstart span to be part of the same trace as the operation that triggered the cold start. Additionally, the span scope and resource attributes of the span scope containing the coldstart span are replaced with the span scope and resource attributes of the execution span as they contain more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() processor.Factory

Types

type Config

type Config struct{}

Config defines the configuration for the various elements of the processor.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate validates the configuration by checking for missing or invalid fields

Jump to

Keyboard shortcuts

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