Categorygithub.com/getlantern/ops
modulepackage
0.0.0-20231025133620-f368ab734534
Repository: https://github.com/getlantern/ops.git
Documentation: pkg.go.dev

# Functions

AsMap mimics the method from context.Manager.
Begin marks the beginning of a new Op.
EnableOpenTelemetry enables exporting of traces to OpenTelemetry under the given tracerName.
Go mimics the method from context.Manager.
RegisterReporter registers the given reporter.
Resume begins a new op within the scope of an existing trace.
SetGlobal puts a key->value pair into the global context, which is inherited by all Ops.
SetGlobalDynamic is like SetGlobal but uses a function to derive the value at read time.

# Interfaces

Op represents an operation that's being performed.

# Type aliases

Reporter is a function that reports the success or failure of an Op.