server

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTrackingHandler

func NewTrackingHandler(next http.Handler) http.Handler

func SetEndpointPattern

func SetEndpointPattern(ctx context.Context, endpointPattern string)

SetEndpointPattern allows to set the endpoint attribute once it has been matched down the http handling pipeline.

func SetStaticAttributtes added in v0.6.0

func SetStaticAttributtes(ctx context.Context, metricAttrs, tracesAttrs []attribute.KeyValue)

SetStaticAttributtes allows to set metrics and traces static attributes in the request context

Types

type KrakenDContextTrackingTypeKey

type KrakenDContextTrackingTypeKey string

type TrackingResponseWriter

type TrackingResponseWriter struct {
	// contains filtered or unexported fields
}

func (*TrackingResponseWriter) Flush

func (w *TrackingResponseWriter) Flush()

func (*TrackingResponseWriter) Header

func (w *TrackingResponseWriter) Header() http.Header

func (*TrackingResponseWriter) Hijack

func (*TrackingResponseWriter) Write

func (w *TrackingResponseWriter) Write(b []byte) (int, error)

func (*TrackingResponseWriter) WriteHeader

func (w *TrackingResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL