Documentation
¶
Overview ¶
Package telemetry is used to track test phase to provide telemetry metrics for the Tast tests.
Index ¶
Constants ¶
const ( Test string = "test" Framework string = "framework" Fixture string = "fixt" Precondition string = "pre" )
entity types to mark phases
Variables ¶
This section is empty.
Functions ¶
func SetPhase ¶
SetPhase starts a new Phase on the provided Context. If a Phase is currently set on the Context, then the current Phase will be ended before the new one is started. To use SetPhase to unset the current Phase, pass in "" for any of the string arguments.
phaseName: The name of the phase without entity information, e.g., "setup" for "tast setup" entityType: The type of entity being logged, e.g., telemetry.Framework for "tast setup" entityName: The name of the entity for this phase, e.g., "tast" for "tast setup"
Returns a new Context with the new Phase set.
Types ¶
type PhaseInfo ¶
PhaseInfo tracks metadata for the testing phase