trace

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package trace provides conditional runtime tracing support controlled by build tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRegion

func WithRegion(_ context.Context, _ string, fn func())

WithRegion calls fn directly without tracing when the tracing build tag is disabled.

Types

type Region

type Region struct{}

Region is a no-op implementation of a tracing region.

func StartRegion

func StartRegion(context.Context, string) Region

StartRegion returns a no-op Region when the tracing build tag is disabled.

func (Region) End

func (Region) End()

End is a no-op that satisfies the tracing region interface.

type Task

type Task struct{}

Task is a no-op implementation of a tracing task.

func NewTask

func NewTask(ctx context.Context, _ string) (context.Context, Task)

NewTask returns a no-op tracing task when the tracing build tag is disabled.

func (Task) End

func (Task) End()

End is a no-op that satisfies the tracing task interface.

Jump to

Keyboard shortcuts

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