stats

package
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 1 package

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 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,
	primaryTagKeys []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,
	primaryTagKeys []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.

func OTLPTracesToConcentratorInputsWithObfuscationAndFilter added in v0.86.0

func OTLPTracesToConcentratorInputsWithObfuscationAndFilter(
	traces ptrace.Traces,
	conf *config.AgentConfig,
	containerTagKeys []string,
	peerTagKeys []string,
	primaryTagKeys []string,
	obfuscator *obfuscate.Obfuscator,
	spanFilter func(pcommon.Resource, ptrace.Span) bool,
) []stats.Input

OTLPTracesToConcentratorInputsWithObfuscationAndFilter is OTLPTracesToConcentratorInputsWithObfuscation that also excludes from stats the spans for which spanFilter, if set, returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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