Tracy v0.1.0 Tracy View Source
Documentation for Tracy.
Link to this section Summary
Functions
Check to start a trace with the given identifier
Link to this section Functions
Check to start a trace with the given identifier.
This does a lookup in the background to the global TracyWeb.Coordinator process, to see whether the given definition id exists. When it does, it will start tracing the current process.
Optionally, a session id can be passed in to override the otherwise auto-generated session id.
metadata
can be a function which will be called when the tracing
is started. It needs to return a map which will contain the trace
metadata.
Link to this function
check_start_trace(definition_id, session_id, metadata_fn)
View Source
check_start_trace(definition_id :: binary, session_id :: binary | nil, metadata :: (... -> any) :: map | nil) :: :started | :not_started | {:error, term}