Versions in this module Expand all Collapse all v1 v1.0.2 May 10, 2023 Changes in this version + func ClientIPTags(headers map[string][]string, hasCanonicalHeaders bool, remoteAddr string) (tags map[string]string, clientIP netip.Addr) + func ExecuteSDKBodyOperation(parent dyngo.Operation, args SDKBodyOperationArgs) error + func MonitorParsedBody(ctx context.Context, body interface{}) error + func NormalizeHTTPHeaders(headers map[string][]string) (normalized map[string]string) + func SetSecurityEventTags(span instrumentation.TagSetter, events []json.RawMessage, ...) + func WrapHandler(handler http.Handler, span ddtrace.Span, pathParams map[string]string) http.Handler + type Action interface + type ActionsHandler struct + func NewActionsHandler() *ActionsHandler + func (h *ActionsHandler) Apply(id string, op *Operation) bool + func (h *ActionsHandler) RegisterAction(id string, a Action) + type BlockRequestAction struct + func NewBlockRequestAction(status int, template string) BlockRequestAction + type BodyMonitoringError struct + func NewBodyMonitoringError(msg string) *BodyMonitoringError + type HandlerOperationArgs struct + ClientIP netip.Addr + Cookies map[string][]string + Headers map[string][]string + Method string + PathParams map[string]string + Query map[string][]string + RequestURI string + func MakeHandlerOperationArgs(r *http.Request, clientIP netip.Addr, pathParams map[string]string) HandlerOperationArgs + type HandlerOperationRes struct + Status int + type OnHandlerOperationFinish func(*Operation, HandlerOperationRes) + func (OnHandlerOperationFinish) ListenedType() reflect.Type + func (f OnHandlerOperationFinish) Call(op dyngo.Operation, v interface{}) + type OnHandlerOperationStart func(*Operation, HandlerOperationArgs) + func (OnHandlerOperationStart) ListenedType() reflect.Type + func (f OnHandlerOperationStart) Call(op dyngo.Operation, v interface{}) + type OnSDKBodyOperationFinish func(*SDKBodyOperation, SDKBodyOperationRes) + func (OnSDKBodyOperationFinish) ListenedType() reflect.Type + func (f OnSDKBodyOperationFinish) Call(op dyngo.Operation, v interface{}) + type OnSDKBodyOperationStart func(*SDKBodyOperation, SDKBodyOperationArgs) + func (OnSDKBodyOperationStart) ListenedType() reflect.Type + func (f OnSDKBodyOperationStart) Call(op dyngo.Operation, v interface{}) + type Operation struct + func StartOperation(ctx context.Context, args HandlerOperationArgs) (context.Context, *Operation) + func (op *Operation) Actions() []Action + func (op *Operation) AddAction(a Action) + func (op *Operation) ClearActions() + func (op *Operation) Finish(res HandlerOperationRes) []json.RawMessage + type SDKBodyOperation struct + Error error + func StartSDKBodyOperation(parent *Operation, args SDKBodyOperationArgs) *SDKBodyOperation + func (op *SDKBodyOperation) Finish() + type SDKBodyOperationArgs struct + Body interface{} + type SDKBodyOperationRes struct