Skip to main content
All Python modules · Import and compatibility guidance

Exports

BusinessFilter

Select authored steps and scalar attributes; discard all events and links.
Fields (— means no declared default):

BusinessFilter.sanitize

Build a separate span so filtering cannot affect another destination.

Threadify

Opt-in SDK/OTLP integration, configured without import-time credentials or I/O.

Threadify.native_class

Expose the actual SDK factory only when explicitly requested.

Threadify.native

Return the native connection on the application’s async event loop.

Threadify.telemetry_exporter

Construct the filtered destination once; Harnest owns batch processing.

Threadify.aenter

Connect only during runtime startup and install session correlation.

Threadify.aexit

Flush while the SDK loop is alive, then release the connection.

Threadify.session

Reuse a session thread and recover its durable reference after restart.

Threadify.annotate

Attach only an already verified session binding to a recording span.

Threadify.session_created

Link a committed new session without forwarding state or metadata.

Threadify.before_invocation

Recover sessions opened before integration and link every agent turn.

Threadify.request_scope

Keep one payload-free business request span alive through streaming.

Threadify.after_http

Capture handled HTTP failures without exporting URL paths or headers.

Threadify.current_thread

Expose the native thread for the active, owner-checked invocation.

Threadify.workflow

Open a shared contract thread for an application-verified business key. This path is strict: an unavailable Engine must stop a governed action, even though passive session telemetry remains best effort.

Threadify.join_workflow

Join an authorized business thread whose ID came from a trusted service.

Threadify.step

Record an explicit business step with the destination’s attribute policy.

Threadify.tool_completed

Record only named business tools, without arguments or return values.

Threadify.tool_failed

Record failure categories without exception text or framework internals.

Threadify.export_spans

Translate sanitized spans using public SDK APIs and stable event keys.