package
1.59.5
Repository: https://github.com/nowfred/dd-trace-go.git
Documentation: pkg.go.dev

# Functions

DefaultClientConfig returns the default remote config client configuration.
HasCapability returns whether a given capability was registered.
HasProduct returns whether a given product was registered.
RegisterCallback allows registering a callback that will be invoked when the client receives configuration updates.
RegisterCapability adds a capability to the list of capabilities exposed by the client when requesting configuration updates.
RegisterProduct adds a product to the list of products listened by the client.
Reset destroys the client instance.
Start starts the client's update poll loop in a fresh goroutine.
Stop stops the client's update poll loop.
Subscribe registers a product and its callback to be invoked when the client receives configuration updates.
UnregisterCallback removes a previously registered callback from the active callbacks list This remove operation preserves ordering.
UnregisterCapability removes a capability from the list of capabilities exposed by the client when requesting configuration updates.
UnregisterProduct removes a product from the list of products listened by the client.

# Constants

APMTracingCustomTags enables APM client to set custom tags on all spans.
APMTracingHTTPHeaderTags enables APM client libraries to tag http header values to http server or client spans.
APMTracingLogsInjection enables APM client libraries to inject trace ids into log records.
APMTracingSampleRate represents the rate at which to sample traces from APM client libraries.
ASMActivation represents the capability to activate ASM through remote configuration.
ASMApiSecuritySampleRate represents API Security sampling rate.
ASMCustomBlockingResponse represents the capability for ASM to receive and use user-defined blocking responses.
ASMCustomRules represents the capability for ASM to receive and use user-defined security rules.
ASMDDRules represents the capability to update the rules used by the ASM WAF for threat detection.
ASMExclusions represents the capability for ASM to exclude traffic from its protections.
ASMIPBlocking represents the capability for ASM to block requests based on user IP.
ASMRequestBlocking represents the capability for ASM to block requests based on the HTTP request related WAF addresses.
ASMResponseBlocking represents the capability for ASM to block requests based on the HTTP response related WAF addresses.
ASMTrustedIPs represents Trusted IPs through the ASM product.
ASMUserBlocking represents the capability for ASM to block requests based on user ID.

# Variables

ErrClientNotStarted is returned when the remote config client is not started.

# Structs

A Client interacts with an Agent to update and track the state of remote configuration.
ClientConfig contains the required values to configure a remoteconfig client.

# Type aliases

Callback represents a function that can process a remote config update.
Capability represents a bit index to be set in clientData.Capabilites in order to register a client for a specific capability.
ProductCallback is like Callback but for a specific product.
ProductUpdate represents an update for a specific product.