tracer

package
v0.0.0-...-8c45bc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush()

Flush calls the function from SetFlush once and then forgets it, so every exit path can call Flush without sending spans twice. A concurrent caller waits for the first flush to finish before it returns.

func SetFlush

func SetFlush(f func())

SetFlush sets the function that Flush calls to finish and send spans.

func SetTraceHeaders

func SetTraceHeaders(ctx context.Context, header http.Header)

The sampled header is always "0" so the Slack API doesn't sample requests from the CLI.

func SetupTracer

func SetupTracer(isDev bool) io.Closer

SetupTracer sets up the tracer to send data to honeycomb with OpenTelemetry

func Start

func Start(ctx context.Context, name string) (context.Context, trace.Span)

Start starts an OpenTelemetry span named name as a child of the span in ctx, and returns a context that holds the new span. End the span when done.

Types

This section is empty.

Jump to

Keyboard shortcuts

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