mctx

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxId

func CtxId(ctx context.Context) string

CtxId retrieves and returns the context id from context.

func New

func New() context.Context

New creates and returns a context which contains context id. The created context has a new isolated trace id for tracing functionality.

func WithSpan

func WithSpan(ctx context.Context, spanName string) context.Context

WithSpan creates and returns a context containing span upon given parent context `ctx`.

Types

type Ctx

type Ctx = context.Context

Ctx is a short name alias for context.Context.

Jump to

Keyboard shortcuts

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