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.
Click to show internal directories.
Click to hide internal directories.