Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Setup

set_trace_provider

set_trace_provider(provider:TraceProvider)->None

Set the global trace provider used by tracing utilities.

Source code insrc/agents/tracing/setup.py
defset_trace_provider(provider:TraceProvider)->None:"""Set the global trace provider used by tracing utilities."""globalGLOBAL_TRACE_PROVIDERGLOBAL_TRACE_PROVIDER=provider

get_trace_provider

get_trace_provider()->TraceProvider

Get the global trace provider used by tracing utilities.

Source code insrc/agents/tracing/setup.py
defget_trace_provider()->TraceProvider:"""Get the global trace provider used by tracing utilities."""ifGLOBAL_TRACE_PROVIDERisNone:raiseRuntimeError("Trace provider not set")returnGLOBAL_TRACE_PROVIDER

[8]ページ先頭

©2009-2025 Movatter.jp