otel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package otel carries W3C trace context across fabriq's async hop: the command executor stamps the active traceparent into the event envelope, and consumers (relay, projections) restore it so ONE trace spans command -> outbox -> relay -> projection apply.

Wire it as fabriq.WithTraceparent(otel.TraceparentFromContext).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithTraceparent

func ContextWithTraceparent(ctx context.Context, traceparent string) context.Context

ContextWithTraceparent restores a traceparent (from an event envelope) onto a context, so consumer-side spans join the original trace. Invalid values are ignored.

func TraceparentFromContext

func TraceparentFromContext(ctx context.Context) string

TraceparentFromContext renders the active span as a W3C traceparent header value, or "" when no span is recording.

Types

This section is empty.

Jump to

Keyboard shortcuts

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