otel

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package otel provides lightweight wrapper functions to record OpenTelemetry metrics using Temporal activities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementCounter

func IncrementCounter(ctx workflow.Context, name string, incr int64, attrs map[string]string)

IncrementCounter increments a metric counter. Attributes are optional.

func InitMetrics

func InitMetrics(ctx context.Context, cmd *cli.Command) (*metric.MeterProvider, error)

InitMetrics initializes OpenTelemetry metrics exporting using OTLP over HTTP.

func SignalReceived

func SignalReceived(ctx workflow.Context, name string, draining bool)

SignalReceived increments a metric that a Temporal signal was received from Timpani, triggered by an incoming webhook event.

Types

This section is empty.

Jump to

Keyboard shortcuts

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