stats

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package stats provides statistical utilities for the trace package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OTLPTracesToConcentratorInputs

func OTLPTracesToConcentratorInputs(
	traces ptrace.Traces,
	conf *config.AgentConfig,
	containerTagKeys []string,
	peerTagKeys []string,
) []stats.Input

OTLPTracesToConcentratorInputs converts eligible OTLP spans to Concentrator.Input. The converted Inputs only have the minimal number of fields for APM stats calculation and are only meant to be used in Concentrator.Add(). Do not use them for other purposes.

func OTLPTracesToConcentratorInputsWithObfuscation

func OTLPTracesToConcentratorInputsWithObfuscation(
	traces ptrace.Traces,
	conf *config.AgentConfig,
	containerTagKeys []string,
	peerTagKeys []string,
	obfuscator *obfuscate.Obfuscator,
) []stats.Input

OTLPTracesToConcentratorInputsWithObfuscation converts eligible OTLP spans to Concentrator Input. The converted Inputs only have the minimal number of fields for APM stats calculation and are only meant to be used in Concentrator.Add(). Do not use them for other purposes. This function enables obfuscation of spans prior to stats calculation and datadogconnector will migrate to this function once this function is published as part of latest pkg/trace module.

Types

This section is empty.

Jump to

Keyboard shortcuts

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