contextx

package
v0.0.0-...-4f74a72 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contextx

type Contextx struct {
	context.Context
	*zap.Logger
}

Contextx is a struct that holds the context of the request

func SpanFromContext

func SpanFromContext(c context.Context, spanName string, opts ...trace.SpanStartOption) (Contextx, trace.Span)

SpanFromContext is a function that returns a new Contextx with the context of the request

func WithContext

func WithContext(c context.Context) Contextx

WithContext is a function that returns a new Contextx with the context of the request

Jump to

Keyboard shortcuts

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