utils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertActivity

func AssertActivity(name string, id api.InstanceID, taskID int64, optionalAsserts ...spanAttributeValidator) spanValidator

func AssertExternalEvent

func AssertExternalEvent(eventName string, payloadSize int) spanEventValidator

func AssertOrchestratorCreated

func AssertOrchestratorCreated(name string, id api.InstanceID, optionalAsserts ...spanAttributeValidator) spanValidator

assertOrchestratorCreated validates a create_orchestration span

func AssertOrchestratorExecuted

func AssertOrchestratorExecuted(name string, id api.InstanceID, status string, optionalAsserts ...spanAttributeValidator) spanValidator

assertOrchestratorCreated validates an orchestration span

func AssertResumedEvent

func AssertResumedEvent() spanEventValidator

func AssertSpan

func AssertSpan(name string, optionalAsserts ...spanAttributeValidator) spanValidator

func AssertSpanEvents

func AssertSpanEvents(eventAsserts ...spanEventValidator) spanAttributeValidator

func AssertSpanSequence

func AssertSpanSequence(t assert.TestingT, spans []trace.ReadOnlySpan, spanAsserts ...spanValidator)

func AssertSuspendedEvent

func AssertSuspendedEvent() spanEventValidator

func AssertTaskID

func AssertTaskID(expectedTaskID int64) spanAttributeValidator

func AssertTimer

func AssertTimer(id api.InstanceID, optionalAsserts ...spanAttributeValidator) spanValidator

func InitTracing

func InitTracing() *tracetest.InMemoryExporter

initTracing configures in-memory OTel tracing and returns an exporter which can be used to examine the exported traces. We only want to look at exported traces because we do tricks to mark certain spans as non-exported (i.e. orchestration replays), and want to ensure that those spans are never actually exported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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