trace

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package trace provides trace collection and processing for serverless environments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Load

type Load interface {
	Load() (*config.AgentConfig, error)
}

Load abstracts the file configuration loading

type LoadConfig

type LoadConfig struct {
	Path   string
	Tagger tagger.Component
}

LoadConfig is implementing Load to retrieve the config

func (*LoadConfig) Load

func (l *LoadConfig) Load() (*config.AgentConfig, error)

Load loads the config from a file path

type ServerlessTraceAgent

type ServerlessTraceAgent interface {
	Stop()
	Flush()
	Process(p *api.Payload)
	SetTags(map[string]string)
	SetTargetTPS(float64)
	SetSpanModifier(agent.SpanModifier)
	GetSpanModifier() agent.SpanModifier
}

ServerlessTraceAgent represents a trace agent in a serverless context

func NewNoopTraceAgent

func NewNoopTraceAgent() ServerlessTraceAgent

NewNoopTraceAgent returns a no-op trace agent that safely discards all data.

func StartServerlessTraceAgent

func StartServerlessTraceAgent(args StartServerlessTraceAgentArgs) ServerlessTraceAgent

Start starts the agent

type StartServerlessTraceAgentArgs

type StartServerlessTraceAgentArgs struct {
	Enabled               bool
	LoadConfig            Load
	AdditionalProfileTags map[string]string
	FunctionTags          string
	RCService             *remoteconfig.CoreAgentService
}

StartServerlessTraceAgentArgs are the arguments for the StartServerlessTraceAgent method

Directories

Path Synopsis
Package modifier provides trace payload modification functionality for serverless environments
Package modifier provides trace payload modification functionality for serverless environments

Jump to

Keyboard shortcuts

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