Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerOperationArgs ¶
type HandlerOperationArgs struct { // ClientIP corresponds to the address `http.client_ip` ClientIP netip.Addr // Headers corresponds to the address `server.request.headers.no_cookies` Headers map[string][]string // Cookies corresponds to the address `server.request.cookies` Cookies map[string][]string // Query corresponds to the address `server.request.query` Query map[string][]string // PathParams corresponds to the address `server.request.path_params` PathParams map[string]string // Method is the http method verb of the request, address is `server.request.method` Method string // RequestURI corresponds to the address `server.request.uri.raw` RequestURI string }
HandlerOperationArgs is the HTTP handler operation arguments.
func (HandlerOperationArgs) IsArgOf ¶
func (HandlerOperationArgs) IsArgOf(*Operation)
type HandlerOperationRes ¶
type HandlerOperationRes struct { Headers map[string][]string // Status corresponds to the address `server.response.status`. Status int }
HandlerOperationRes is the HTTP handler operation results.
func (HandlerOperationRes) IsResultOf ¶
func (HandlerOperationRes) IsResultOf(*Operation)
type Operation ¶
type Operation struct { dyngo.Operation trace.TagsHolder trace.SecurityEventsHolder // contains filtered or unexported fields }
Operation type representing an HTTP operation. It must be created with StartOperation() and finished with its Finish().
func (*Operation) Finish ¶
func (op *Operation) Finish(res HandlerOperationRes) []any
Finish the HTTP handler operation, along with the given results and emits a finish event up in the operation stack.
type RoundTripOperation ¶ added in v1.65.0
Operation type representing an HTTP operation. It must be created with StartOperation() and finished with its Finish().
type RoundTripOperationArgs ¶ added in v1.65.0
type RoundTripOperationArgs struct { // URL corresponds to the address `server.io.net.url`. URL string }
RoundTripOperationArgs is the round trip operation arguments.
func (RoundTripOperationArgs) IsArgOf ¶ added in v1.65.0
func (RoundTripOperationArgs) IsArgOf(*RoundTripOperation)
type RoundTripOperationRes ¶ added in v1.65.0
type RoundTripOperationRes struct{}
RoundTripOperationRes is the round trip operation results.
func (RoundTripOperationRes) IsResultOf ¶ added in v1.65.0
func (RoundTripOperationRes) IsResultOf(*RoundTripOperation)
type SDKBodyOperation ¶
SDKBodyOperation type representing an SDK body
func (*SDKBodyOperation) Finish ¶
func (op *SDKBodyOperation) Finish()
Finish finishes the SDKBody operation and emits a finish event
type SDKBodyOperationArgs ¶
type SDKBodyOperationArgs struct { // Body corresponds to the address `server.request.body`. Body any }
SDKBodyOperationArgs is the SDK body operation arguments.
func (SDKBodyOperationArgs) IsArgOf ¶
func (SDKBodyOperationArgs) IsArgOf(*SDKBodyOperation)
type SDKBodyOperationRes ¶
type SDKBodyOperationRes struct{}
SDKBodyOperationRes is the SDK body operation results.
func (SDKBodyOperationRes) IsResultOf ¶
func (SDKBodyOperationRes) IsResultOf(*SDKBodyOperation)