telemetry.errors

telemetry.errors

Telemetry utilities for exception and traceback information.

Functions

Name Description
exception_properties Collect frame metadata without formatting messages or reading source code.
sanitize_filename Keep package-relative paths or a local file’s basename.
sanitize_stack_trace Retain only sanitized frame locations from a formatted traceback.
send_errors Report each exception once within a nested chain of decorated calls.

exception_properties

telemetry.errors.exception_properties(exception)

Collect frame metadata without formatting messages or reading source code.

sanitize_filename

telemetry.errors.sanitize_filename(filename)

Keep package-relative paths or a local file’s basename.

sanitize_stack_trace

telemetry.errors.sanitize_stack_trace(stack_trace)

Retain only sanitized frame locations from a formatted traceback.

send_errors

telemetry.errors.send_errors(func)

Report each exception once within a nested chain of decorated calls.