eg []string{"machId:StateName", "StateName2"} against "machId:StateName" if true, only Healthcheck and Heartbeat will be skippedLogffunc(format string, args ...any) if true, auto transitions won't be traced if true, transition traces won't include [am.Machine.GetLogArgs] SkipStates take preceding before [AllowStates]
eg []string{"machId:StateName", "StateName2"} against "machId:StateName" if true, only state changes will be traced
func NewOtelMachTracer(rootMach am.Api, rootSpan trace.Span, otelTracer trace.Tracer, opts *OtelMachTracerOpts) *OtelMachTracer
BindLokiEnv bind Loki logger to [mach], based on environment vars:
- AM_SERVICE (required)
- AM_LOKI_ADDR (required)
This tracer is NOT inherited by submachines.
BindOtelLogger binds an OpenTelemetry logger to a machine.
MachBindOtelEnv bind an OpenTelemetry tracer to [mach], based on environment
variables:
- AM_SERVICE (required)
- AM_OTEL_TRACE (required)
- AM_OTEL_TRACE_TXS
- OTEL_EXPORTER_OTLP_ENDPOINT
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
This tracer is inherited by submachines, and this function applies only to
top-level machines.
NewOtelLoggerProvider creates a new OpenTelemetry logger provider bound to
the given exporter.
NewOtelMachTracer creates a new machine tracer from an OpenTelemetry tracer.
Requires OtelMachTracer.Dispose to be called at the end.
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.