agent

package module
v0.75.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

Package agent provides the trace agent component type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component interface {
	// SetOTelAttributeTranslator sets the OTel attributes translator of the underlying trace agent.
	SetOTelAttributeTranslator(attrstrans *attributes.Translator)
	// ReceiveOTLPSpans forwards the OTLP spans to the underlying trace agent to process.
	ReceiveOTLPSpans(ctx context.Context, rspans ptrace.ResourceSpans, httpHeader http.Header, hostFromAttributesHandler attributes.HostFromAttributesHandler) (source.Source, error)
	// SendStatsPayload sends a stats payload to the Datadog backend.
	SendStatsPayload(p *pb.StatsPayload)
	// GetHTTPHandler returns the HTTP handler for the given endpoint.
	GetHTTPHandler(endpoint string) http.Handler
}

Component is the agent component type.

Jump to

Keyboard shortcuts

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