Documentation ¶
Overview ¶
Package trace provides functions to annotate trace spans with AppSec related information.
Index ¶
Constants ¶
View Source
const BlockedRequestTag = "appsec.blocked"
BlockedRequestTag used to convey whether a request is blocked
Variables ¶
This section is empty.
Functions ¶
func SetAppSecEnabledTags ¶
func SetAppSecEnabledTags(span TagSetter)
SetAppSecEnabledTags sets the AppSec-specific span tags that are expected to be in the web service entry span (span of type `web`) when AppSec is enabled.
func SetEventSpanTags ¶
SetEventSpanTags sets the security event span tags into the service entry span.
Types ¶
type NoopTagSetter ¶ added in v1.60.0
type NoopTagSetter struct{}
NoopTagSetter is a TagSetter that does nothing. Useful when no tracer Span is available, but a TagSetter is assumed.
func (NoopTagSetter) SetTag ¶ added in v1.60.0
func (NoopTagSetter) SetTag(string, any)
Click to show internal directories.
Click to hide internal directories.