zaptrace

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context(ctx context.Context) zap.Field

Context constructs traceId and spanId field from context.Context if a trace.SpanContext is present in the context value.

func SpanContext

func SpanContext(spanCtx trace.SpanContext) zap.Field

SpanContext constructs traceId and spanId field from a trace.SpanContext if it has valid traceId and spanId.

Types

This section is empty.

Jump to

Keyboard shortcuts

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