tracing

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tracing gives the root module its own instrumentation scope. Spans the root starts (the relay, the worker's background units, admin jobs) carry github.com/xraph/fabriq; spans core starts carry github.com/xraph/fabriq/core. Both use the global tracer provider forge.New installs. The span helpers (Detach, Fail, links) come from core/telemetry.

Index

Constants

View Source
const ScopeName = "github.com/xraph/fabriq"

ScopeName is the instrumentation scope of every span the root starts.

Variables

This section is empty.

Functions

func StartConsumer

func StartConsumer(ctx context.Context, name, traceparent string, attrs ...attribute.KeyValue) (context.Context, trace.Span)

StartConsumer starts the span for one consumed message under the root's scope: a new root of kind Consumer, linked (not parented) to the producer context stored in traceparent.

func StartRoot

func StartRoot(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

StartRoot starts a new root span for one unit of background work, from a copy of ctx with any inherited span removed.

func Tracer

func Tracer() trace.Tracer

Tracer returns the root's tracer from the global provider, looked up per call so a provider installed later (forge.New, a test) is the one used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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