Documentation ¶
Index ¶
Constants ¶
View Source
const EnvEnabled = "DD_APPSEC_ENABLED"
Variables ¶
This section is empty.
Functions ¶
func Enabled ¶ added in v1.35.0
func Enabled() bool
Enabled returns true when AppSec is up and running. Meaning that the appsec build tag is enabled, the env var DD_APPSEC_ENABLED is set to true, and the tracer is started.
func Start ¶
func Start(opts ...StartOption)
Start AppSec when enabled is enabled by both using the appsec build tag and setting the environment variable DD_APPSEC_ENABLED to true.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config is the AppSec configuration.
type StartOption ¶ added in v1.44.0
type StartOption func(c *Config)
StartOption is used to customize the AppSec configuration when invoked with appsec.Start()
func WithRCConfig ¶ added in v1.44.0
func WithRCConfig(cfg remoteconfig.ClientConfig) StartOption
WithRCConfig sets the AppSec remote config client configuration to the specified cfg
Directories ¶
Path | Synopsis |
---|---|
Package dyngo is the Go implementation of Datadog's Instrumentation Gateway which provides an event-based instrumentation API based on a stack representation of instrumented functions along with nested event listeners.
|
Package dyngo is the Go implementation of Datadog's Instrumentation Gateway which provides an event-based instrumentation API based on a stack representation of instrumented functions along with nested event listeners. |
Package emitter provides functions and types used to instrument go libraries to integrate them with Datadog AppSec features.
|
Package emitter provides functions and types used to instrument go libraries to integrate them with Datadog AppSec features. |
grpcsec
Package grpcsec is the gRPC instrumentation API and contract for AppSec defining an abstract run-time representation of gRPC handlers.
|
Package grpcsec is the gRPC instrumentation API and contract for AppSec defining an abstract run-time representation of gRPC handlers. |
httpsec
Package httpsec defines is the HTTP instrumentation API and contract for AppSec.
|
Package httpsec defines is the HTTP instrumentation API and contract for AppSec. |
Package listener provides functions and types used to listen to AppSec instrumentation events produced by code usintrumented using the functions and types found in gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/emitter.
|
Package listener provides functions and types used to listen to AppSec instrumentation events produced by code usintrumented using the functions and types found in gopkg.in/DataDog/dd-trace-go.v1/internal/appsec/emitter. |
Package trace provides functions to annotate trace spans with AppSec related information.
|
Package trace provides functions to annotate trace spans with AppSec related information. |
Click to show internal directories.
Click to hide internal directories.