Documentation ¶
Index ¶
- Constants
- func BackwardTransformIfSystem(key string) string
- func GetContextFromRequest(c *fasthttp.RequestCtx) context.Context
- func PrepareExpirationHeader(ctx context.Context, epochFetcher EpochInfoFetcher, headers map[string]string, ...) error
- func SetContextToRequest(ctx context.Context, c *fasthttp.RequestCtx)
- func SetHTTPTraceInfo(ctx context.Context, span trace.Span, req *fasthttp.RequestCtx)
- func StartHTTPServerSpan(ctx context.Context, req *fasthttp.RequestCtx, operationName string, ...) (context.Context, trace.Span)
- func TransformIfSystem(key []byte) []byte
- type EpochDurations
- type EpochInfoFetcher
Constants ¶
View Source
const (
UserAttributeHeaderPrefix = "X-Attribute-"
)
Variables ¶
This section is empty.
Functions ¶
func GetContextFromRequest ¶ added in v0.28.0
func GetContextFromRequest(c *fasthttp.RequestCtx) context.Context
GetContextFromRequest returns main context from fasthttp request context.
func PrepareExpirationHeader ¶
func SetContextToRequest ¶ added in v0.28.0
func SetContextToRequest(ctx context.Context, c *fasthttp.RequestCtx)
SetContextToRequest adds new context to fasthttp request.
func SetHTTPTraceInfo ¶ added in v0.28.0
SetHTTPTraceInfo saves trace headers to response.
func StartHTTPServerSpan ¶ added in v0.28.0
func StartHTTPServerSpan(ctx context.Context, req *fasthttp.RequestCtx, operationName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)
StartHTTPServerSpan starts root HTTP server span.
func TransformIfSystem ¶
Types ¶
type EpochDurations ¶
type EpochInfoFetcher ¶ added in v0.30.0
type EpochInfoFetcher interface {
GetEpochDurations(context.Context) (*EpochDurations, error)
}
Click to show internal directories.
Click to hide internal directories.