SYMBOL INDEX (3911 symbols across 503 files) FILE: packages/opentelemetry-instrumentation-agno/opentelemetry/instrumentation/agno/__init__.py function _get_agno_version (line 35) | def _get_agno_version(): class AgnoInstrumentor (line 42) | class AgnoInstrumentor(BaseInstrumentor): method __init__ (line 45) | def __init__(self, exception_logger=None, enrich_token_usage: bool = F... method instrumentation_dependencies (line 50) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 53) | def _instrument(self, **kwargs): method _uninstrument (line 121) | def _uninstrument(self, **kwargs): class _AgentRunWrapper (line 136) | class _AgentRunWrapper: method __init__ (line 139) | def __init__(self, tracer, duration_histogram, token_histogram): method __call__ (line 146) | def __call__(self, wrapped, instance, args, kwargs): class _AgentARunWrapper (line 285) | class _AgentARunWrapper: method __init__ (line 288) | def __init__(self, tracer, duration_histogram, token_histogram): method __call__ (line 295) | def __call__(self, wrapped, instance, args, kwargs): class _TeamRunWrapper (line 437) | class _TeamRunWrapper: method __init__ (line 440) | def __init__(self, tracer, duration_histogram, token_histogram): method __call__ (line 447) | def __call__(self, wrapped, instance, args, kwargs): class _TeamARunWrapper (line 510) | class _TeamARunWrapper: method __init__ (line 513) | def __init__(self, tracer, duration_histogram, token_histogram): method __call__ (line 520) | async def __call__(self, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-agno/opentelemetry/instrumentation/agno/_tool_wrappers.py class _FunctionCallExecuteWrapper (line 14) | class _FunctionCallExecuteWrapper: method __init__ (line 17) | def __init__(self, tracer, duration_histogram, token_histogram): method __call__ (line 24) | def __call__(self, wrapped, instance, args, kwargs): class _FunctionCallAExecuteWrapper (line 83) | class _FunctionCallAExecuteWrapper: method __init__ (line 86) | def __init__(self, tracer, duration_histogram, token_histogram): method __call__ (line 93) | async def __call__(self, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-agno/opentelemetry/instrumentation/agno/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-agno/opentelemetry/instrumentation/agno/streaming.py class AgnoAsyncStream (line 16) | class AgnoAsyncStream(ObjectProxy): method __init__ (line 19) | def __init__( method __aiter__ (line 39) | def __aiter__(self): method __anext__ (line 42) | async def __anext__(self): method _complete_instrumentation (line 65) | def _complete_instrumentation(self): class AgnoStream (line 119) | class AgnoStream(ObjectProxy): method __init__ (line 122) | def __init__( method __iter__ (line 142) | def __iter__(self): method __next__ (line 145) | def __next__(self): method _complete_instrumentation (line 168) | def _complete_instrumentation(self): FILE: packages/opentelemetry-instrumentation-agno/opentelemetry/instrumentation/agno/utils.py function dont_throw (line 10) | def dont_throw(func): function set_span_attribute (line 30) | def set_span_attribute(span: Span, name: str, value: Any) -> None: function should_send_prompts (line 43) | def should_send_prompts() -> bool: FILE: packages/opentelemetry-instrumentation-agno/tests/conftest.py function fixture_span_exporter (line 21) | def fixture_span_exporter(): function fixture_tracer_provider (line 27) | def fixture_tracer_provider(span_exporter): function fixture_reader (line 34) | def fixture_reader(): function fixture_meter_provider (line 42) | def fixture_meter_provider(reader): function instrument (line 49) | def instrument(reader, tracer_provider, meter_provider): function environment (line 62) | def environment(): function vcr_config (line 68) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-agno/tests/test_agent.py function test_agent_run_basic (line 11) | def test_agent_run_basic(instrument, span_exporter, reader): function test_agent_arun_basic (line 39) | async def test_agent_arun_basic(instrument, span_exporter, reader): function test_agent_with_tools (line 62) | def test_agent_with_tools(instrument, span_exporter, reader): function test_agent_metrics (line 95) | def test_agent_metrics(instrument, span_exporter, reader): function test_agent_run_streaming (line 123) | def test_agent_run_streaming(instrument, span_exporter, reader): function test_agent_run_streaming_with_tools (line 151) | def test_agent_run_streaming_with_tools(instrument, span_exporter, reader): function test_agent_arun_streaming (line 187) | async def test_agent_arun_streaming(instrument, span_exporter, reader): function test_agent_arun_streaming_with_tools (line 216) | async def test_agent_arun_streaming_with_tools(instrument, span_exporter... FILE: packages/opentelemetry-instrumentation-agno/tests/test_team.py function test_team_discussion (line 12) | def test_team_discussion(instrument, span_exporter, reader): function test_team_basic (line 57) | def test_team_basic(instrument, span_exporter, reader): FILE: packages/opentelemetry-instrumentation-alephalpha/opentelemetry/instrumentation/alephalpha/__init__.py function should_send_prompts (line 53) | def should_send_prompts(): function should_emit_events (line 59) | def should_emit_events(): function _set_span_attribute (line 63) | def _set_span_attribute(span, name, value): function _handle_message_event (line 71) | def _handle_message_event( function _handle_completion_event (line 83) | def _handle_completion_event(event: CompletionEvent, span, event_logger,... function _with_tracer_wrapper (line 102) | def _with_tracer_wrapper(func): function _llm_request_type_by_method (line 114) | def _llm_request_type_by_method(method_name): function _parse_prompt_event (line 121) | def _parse_prompt_event(args, kwargs) -> PromptEvent: function _parse_completion_event (line 130) | def _parse_completion_event(response) -> List[CompletionEvent]: function _wrap (line 142) | def _wrap( class AlephAlphaInstrumentor (line 182) | class AlephAlphaInstrumentor(BaseInstrumentor): method __init__ (line 185) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 190) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 193) | def _instrument(self, **kwargs): method _uninstrument (line 215) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-alephalpha/opentelemetry/instrumentation/alephalpha/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-alephalpha/opentelemetry/instrumentation/alephalpha/event_emitter.py class Roles (line 14) | class Roles(Enum): function emit_event (line 28) | def emit_event(event: Union[PromptEvent, CompletionEvent], event_logger)... function _emit_prompt_event (line 50) | def _emit_prompt_event(event: PromptEvent, event_logger) -> None: function _emit_completion_event (line 90) | def _emit_completion_event(event: CompletionEvent, event_logger) -> None: FILE: packages/opentelemetry-instrumentation-alephalpha/opentelemetry/instrumentation/alephalpha/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class PromptEvent (line 26) | class PromptEvent: class CompletionEvent (line 35) | class CompletionEvent: method total_tokens (line 44) | def total_tokens(self) -> Optional[int]: FILE: packages/opentelemetry-instrumentation-alephalpha/opentelemetry/instrumentation/alephalpha/span_utils.py function set_prompt_attributes (line 11) | def set_prompt_attributes(event: PromptEvent, span: Span): function set_completion_attributes (line 29) | def set_completion_attributes(event: CompletionEvent, span: Span): FILE: packages/opentelemetry-instrumentation-alephalpha/opentelemetry/instrumentation/alephalpha/utils.py function dont_throw (line 7) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-alephalpha/tests/conftest.py function fixture_span_exporter (line 24) | def fixture_span_exporter(): function fixture_tracer_provider (line 30) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 37) | def fixture_log_exporter(): function fixture_logger_provider (line 43) | def fixture_logger_provider(log_exporter): function aleph_alpha_client (line 50) | def aleph_alpha_client(): function instrument_legacy (line 55) | def instrument_legacy(tracer_provider): function instrument_with_content (line 67) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 83) | def instrument_with_no_content(tracer_provider, logger_provider): function environment (line 99) | def environment(): function vcr_config (line 105) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-alephalpha/tests/test_completion.py function test_alephalpha_completion (line 10) | def test_alephalpha_completion( function test_alephalpha_completion_with_events_with_content (line 49) | def test_alephalpha_completion_with_events_with_content( function test_alephalpha_completion_with_events_with_no_content (line 99) | def test_alephalpha_completion_with_events_with_no_content( function assert_message_in_logs (line 139) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/__init__.py function is_streaming_response (line 163) | def is_streaming_response(response): function is_stream_manager (line 167) | def is_stream_manager(response): function _aset_token_usage (line 185) | async def _aset_token_usage( function _set_token_usage (line 302) | def _set_token_usage( function _with_chat_telemetry_wrapper (line 415) | def _with_chat_telemetry_wrapper(func): function _create_metrics (line 447) | def _create_metrics(meter: Meter): function _handle_input (line 476) | def _handle_input(span: Span, event_logger: Optional[Logger], kwargs): function _ahandle_input (line 486) | async def _ahandle_input(span: Span, event_logger: Optional[Logger], kwa... function _ahandle_response (line 496) | async def _ahandle_response(span: Span, event_logger: Optional[Logger], ... function _handle_response (line 510) | def _handle_response(span: Span, event_logger: Optional[Logger], response): function _wrap (line 520) | def _wrap( function _awrap (line 644) | async def _awrap( function is_metrics_enabled (line 761) | def is_metrics_enabled() -> bool: class AnthropicInstrumentor (line 765) | class AnthropicInstrumentor(BaseInstrumentor): method __init__ (line 768) | def __init__( method instrumentation_dependencies (line 785) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 788) | def _instrument(self, **kwargs): method _uninstrument (line 869) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/config.py class Config (line 6) | class Config: FILE: packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/event_emitter.py class Roles (line 21) | class Roles(Enum): function emit_input_events (line 37) | def emit_input_events(event_logger: Optional[Logger], kwargs): function emit_response_events (line 60) | def emit_response_events(event_logger: Optional[Logger], response): function emit_streaming_response_events (line 127) | def emit_streaming_response_events( function emit_event (line 167) | def emit_event( function _emit_message_event (line 187) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 219) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/span_utils.py function _is_base64_image (line 21) | def _is_base64_image(item: Dict[str, Any]) -> bool: function _process_image_item (line 34) | async def _process_image_item(item, trace_id, span_id, message_index, co... function _dump_content (line 46) | async def _dump_content(message_index, content, span): function aset_input_attributes (line 74) | async def aset_input_attributes(span, kwargs): function _aset_span_completions (line 182) | async def _aset_span_completions(span, response): function _set_span_completions (line 251) | def _set_span_completions(span, response): function aset_response_attributes (line 320) | async def aset_response_attributes(span, response): function set_response_attributes (line 345) | def set_response_attributes(span, response): function set_streaming_response_attributes (line 369) | def set_streaming_response_attributes(span, complete_response_events): FILE: packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/streaming.py function _process_response_item (line 33) | def _process_response_item(item, complete_response): function _set_token_usage (line 72) | def _set_token_usage( function _handle_streaming_response (line 139) | def _handle_streaming_response(span, event_logger, complete_response): class AnthropicStream (line 148) | class AnthropicStream(ObjectProxy): method __init__ (line 151) | def __init__( method __getattr__ (line 179) | def __getattr__(self, name): method _instrumented_get_final_message (line 190) | def _instrumented_get_final_message(self): method _instrumented_text_stream (line 198) | def _instrumented_text_stream(self): method _instrumented_until_done (line 209) | def _instrumented_until_done(self): method __iter__ (line 214) | def __iter__(self): method __next__ (line 217) | def __next__(self): method _handle_completion (line 233) | def _handle_completion(self): method _complete_instrumentation (line 296) | def _complete_instrumentation(self): class AnthropicAsyncStream (line 303) | class AnthropicAsyncStream(ObjectProxy): method __init__ (line 306) | def __init__( method __getattr__ (line 334) | def __getattr__(self, name): method _instrumented_get_final_message (line 345) | async def _instrumented_get_final_message(self): method _instrumented_text_stream (line 356) | def _instrumented_text_stream(self): method _instrumented_until_done (line 367) | async def _instrumented_until_done(self): method __aiter__ (line 372) | def __aiter__(self): method __anext__ (line 375) | async def __anext__(self): method _complete_instrumentation (line 399) | def _complete_instrumentation(self): class WrappedMessageStreamManager (line 457) | class WrappedMessageStreamManager: method __init__ (line 460) | def __init__( method __enter__ (line 484) | def __enter__(self): method __exit__ (line 501) | def __exit__(self, exc_type, exc_val, exc_tb): method __getattr__ (line 504) | def __getattr__(self, name): method _complete_instrumentation (line 509) | def _complete_instrumentation(self): class WrappedAsyncMessageStreamManager (line 514) | class WrappedAsyncMessageStreamManager: method __init__ (line 517) | def __init__( method __aenter__ (line 541) | async def __aenter__(self): method __aexit__ (line 558) | async def __aexit__(self, exc_type, exc_val, exc_tb): method __getattr__ (line 561) | def __getattr__(self, name): method _complete_instrumentation (line 566) | def _complete_instrumentation(self): FILE: packages/opentelemetry-instrumentation-anthropic/opentelemetry/instrumentation/anthropic/utils.py function set_span_attribute (line 21) | def set_span_attribute(span, name, value): function should_send_prompts (line 28) | def should_send_prompts(): function dont_throw (line 34) | def dont_throw(func): function _aextract_response_data (line 65) | async def _aextract_response_data(response): function _extract_response_data (line 103) | def _extract_response_data(response): function ashared_metrics_attributes (line 139) | async def ashared_metrics_attributes(response): function shared_metrics_attributes (line 182) | def shared_metrics_attributes(response): function error_metrics_attributes (line 222) | def error_metrics_attributes(exception): function count_prompt_tokens_from_request (line 230) | def count_prompt_tokens_from_request(anthropic, request): function acount_prompt_tokens_from_request (line 252) | async def acount_prompt_tokens_from_request(anthropic, request): function run_async (line 273) | def run_async(method): function should_emit_events (line 287) | def should_emit_events() -> bool: class JSONEncoder (line 295) | class JSONEncoder(json.JSONEncoder): method default (line 296) | def default(self, o): function model_as_dict (line 311) | def model_as_dict(model): FILE: packages/opentelemetry-instrumentation-anthropic/tests/conftest.py function fixture_span_exporter (line 28) | def fixture_span_exporter(): function fixture_tracer_provider (line 34) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 41) | def fixture_log_exporter(): function fixture_logger_provider (line 47) | def fixture_logger_provider(log_exporter): function fixture_reader (line 54) | def fixture_reader(): function fixture_meter_provider (line 62) | def fixture_meter_provider(reader): function anthropic_client (line 70) | def anthropic_client(): function async_anthropic_client (line 75) | def async_anthropic_client(): function instrument_legacy (line 80) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 99) | def instrument_with_content( function instrument_with_no_content (line 125) | def instrument_with_no_content( function environment (line 151) | def environment(): function vcr_config (line 157) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-anthropic/tests/test_bedrock_with_raw_response.py function async_anthropic_bedrock_client (line 15) | def async_anthropic_bedrock_client(instrument_legacy): function test_async_anthropic_bedrock_with_raw_response (line 34) | async def test_async_anthropic_bedrock_with_raw_response( function test_async_anthropic_bedrock_regular_create (line 89) | async def test_async_anthropic_bedrock_regular_create( function test_async_anthropic_bedrock_beta_with_raw_response (line 138) | async def test_async_anthropic_bedrock_beta_with_raw_response( FILE: packages/opentelemetry-instrumentation-anthropic/tests/test_completion.py function test_anthropic_completion_legacy (line 12) | def test_anthropic_completion_legacy( function test_anthropic_completion_with_events_with_content (line 56) | def test_anthropic_completion_with_events_with_content( function test_anthropic_completion_with_events_with_no_content (line 101) | def test_anthropic_completion_with_events_with_no_content( function assert_message_in_logs (line 143) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-anthropic/tests/test_messages.py function test_anthropic_message_create_legacy (line 68) | def test_anthropic_message_create_legacy( function test_anthropic_message_create_with_events_with_content (line 128) | def test_anthropic_message_create_with_events_with_content( function test_anthropic_message_create_with_events_with_no_content (line 193) | def test_anthropic_message_create_with_events_with_no_content( function test_anthropic_multi_modal_legacy (line 246) | def test_anthropic_multi_modal_legacy( function test_anthropic_multi_modal_with_events_with_content (line 306) | def test_anthropic_multi_modal_with_events_with_content( function test_anthropic_multi_modal_with_events_with_no_content (line 366) | def test_anthropic_multi_modal_with_events_with_no_content( function test_anthropic_image_with_history (line 428) | def test_anthropic_image_with_history( function test_anthropic_async_multi_modal_legacy (line 527) | async def test_anthropic_async_multi_modal_legacy( function test_anthropic_async_multi_modal_with_events_with_content (line 588) | async def test_anthropic_async_multi_modal_with_events_with_content( function test_anthropic_async_multi_modal_with_events_with_no_content (line 649) | async def test_anthropic_async_multi_modal_with_events_with_no_content( function test_anthropic_message_streaming_legacy (line 710) | def test_anthropic_message_streaming_legacy( function test_anthropic_message_streaming_with_events_with_content (line 777) | def test_anthropic_message_streaming_with_events_with_content( function test_anthropic_message_streaming_with_events_with_no_content (line 842) | def test_anthropic_message_streaming_with_events_with_no_content( function test_async_anthropic_message_create_legacy (line 903) | async def test_async_anthropic_message_create_legacy( function test_async_anthropic_message_create_with_events_with_content (line 964) | async def test_async_anthropic_message_create_with_events_with_content( function test_async_anthropic_message_create_with_events_with_no_content (line 1017) | async def test_async_anthropic_message_create_with_events_with_no_content( function test_async_anthropic_message_streaming_legacy (line 1075) | async def test_async_anthropic_message_streaming_legacy( function test_async_anthropic_message_streaming_with_events_with_content (line 1142) | async def test_async_anthropic_message_streaming_with_events_with_content( function test_async_anthropic_message_streaming_with_events_with_no_content (line 1202) | async def test_async_anthropic_message_streaming_with_events_with_no_con... function test_anthropic_tools_legacy (line 1265) | def test_anthropic_tools_legacy( function test_anthropic_tools_with_events_with_content (line 1406) | def test_anthropic_tools_with_events_with_content( function test_anthropic_tools_with_events_with_no_content (line 1507) | def test_anthropic_tools_with_events_with_no_content( function test_anthropic_tools_history_legacy (line 1603) | def test_anthropic_tools_history_legacy( function test_anthropic_tools_history_with_events_with_content (line 1761) | def test_anthropic_tools_history_with_events_with_content( function test_anthropic_tools_history_with_events_with_no_content (line 1863) | def test_anthropic_tools_history_with_events_with_no_content( function test_anthropic_tools_streaming_legacy (line 1963) | def test_anthropic_tools_streaming_legacy( function test_anthropic_tools_streaming_with_events_with_content (line 2090) | def test_anthropic_tools_streaming_with_events_with_content( function test_anthropic_tools_streaming_with_events_with_no_content (line 2202) | def test_anthropic_tools_streaming_with_events_with_no_content( function test_with_asyncio_run_legacy (line 2303) | def test_with_asyncio_run_legacy( function test_with_asyncio_run_with_events_with_content (line 2337) | def test_with_asyncio_run_with_events_with_content( function test_with_asyncio_run_with_events_with_no_content (line 2395) | def test_with_asyncio_run_with_events_with_no_content( function assert_message_in_logs (line 2442) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... function test_anthropic_message_stream_manager_legacy (line 2457) | def test_anthropic_message_stream_manager_legacy( function test_anthropic_message_stream_manager_with_events_with_content (line 2523) | def test_anthropic_message_stream_manager_with_events_with_content( function test_anthropic_message_stream_manager_with_events_with_no_content (line 2587) | def test_anthropic_message_stream_manager_with_events_with_no_content( function test_async_anthropic_message_stream_manager_legacy (line 2647) | async def test_async_anthropic_message_stream_manager_legacy( function test_async_anthropic_message_stream_manager_with_events_with_content (line 2713) | async def test_async_anthropic_message_stream_manager_with_events_with_c... function test_async_anthropic_message_stream_manager_with_events_with_no_content (line 2772) | async def test_async_anthropic_message_stream_manager_with_events_with_n... function test_anthropic_streaming_helper_methods_legacy (line 2835) | async def test_anthropic_streaming_helper_methods_legacy( function test_anthropic_text_stream_helper_method_legacy (line 2866) | async def test_anthropic_text_stream_helper_method_legacy( function test_anthropic_sync_streaming_helper_methods_legacy (line 2892) | def test_anthropic_sync_streaming_helper_methods_legacy( function test_async_anthropic_beta_message_stream_manager_legacy (line 2919) | async def test_async_anthropic_beta_message_stream_manager_legacy( FILE: packages/opentelemetry-instrumentation-anthropic/tests/test_prompt_caching.py function _verify_caching_attributes (line 13) | def _verify_caching_attributes( function test_anthropic_prompt_caching_legacy (line 51) | def test_anthropic_prompt_caching_legacy( function test_anthropic_prompt_caching_with_events_with_content (line 142) | def test_anthropic_prompt_caching_with_events_with_content( function test_anthropic_prompt_caching_with_events_with_no_content (line 304) | def test_anthropic_prompt_caching_with_events_with_no_content( function test_anthropic_prompt_caching_async_legacy (line 388) | async def test_anthropic_prompt_caching_async_legacy( function test_anthropic_prompt_caching_async_with_events_with_content (line 475) | async def test_anthropic_prompt_caching_async_with_events_with_content( function test_anthropic_prompt_caching_async_with_events_with_no_content (line 639) | async def test_anthropic_prompt_caching_async_with_events_with_no_content( function test_anthropic_prompt_caching_stream_legacy (line 731) | def test_anthropic_prompt_caching_stream_legacy( function test_anthropic_prompt_caching_stream_with_events_with_content (line 821) | def test_anthropic_prompt_caching_stream_with_events_with_content( function test_anthropic_prompt_caching_stream_with_events_with_no_content (line 994) | def test_anthropic_prompt_caching_stream_with_events_with_no_content( function test_anthropic_prompt_caching_async_stream_legacy (line 1082) | async def test_anthropic_prompt_caching_async_stream_legacy( function test_anthropic_prompt_caching_async_stream_with_events_with_content (line 1172) | async def test_anthropic_prompt_caching_async_stream_with_events_with_co... function test_anthropic_prompt_caching_async_stream_with_events_with_no_content (line 1352) | async def test_anthropic_prompt_caching_async_stream_with_events_with_no... function assert_message_in_logs (line 1442) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-anthropic/tests/test_structured_outputs.py function test_anthropic_structured_outputs_legacy (line 32) | def test_anthropic_structured_outputs_legacy( function test_anthropic_structured_outputs_with_events_with_content (line 89) | def test_anthropic_structured_outputs_with_events_with_content( function test_anthropic_structured_outputs_with_events_with_no_content (line 118) | def test_anthropic_structured_outputs_with_events_with_no_content( FILE: packages/opentelemetry-instrumentation-anthropic/tests/test_thinking.py function test_anthropic_thinking_legacy (line 11) | def test_anthropic_thinking_legacy( function test_anthropic_thinking_with_events_with_content (line 73) | def test_anthropic_thinking_with_events_with_content( function test_anthropic_thinking_with_events_with_no_content (line 147) | def test_anthropic_thinking_with_events_with_no_content( function test_async_anthropic_thinking_legacy (line 214) | async def test_async_anthropic_thinking_legacy( function test_async_anthropic_thinking_with_events_with_content (line 277) | async def test_async_anthropic_thinking_with_events_with_content( function test_async_anthropic_thinking_with_events_with_no_content (line 351) | async def test_async_anthropic_thinking_with_events_with_no_content( function test_anthropic_thinking_streaming_legacy (line 421) | def test_anthropic_thinking_streaming_legacy( function test_anthropic_thinking_streaming_with_events_with_content (line 488) | def test_anthropic_thinking_streaming_with_events_with_content( function test_anthropic_thinking_streaming_with_events_with_no_content (line 580) | def test_anthropic_thinking_streaming_with_events_with_no_content( function test_async_anthropic_thinking_streaming_legacy (line 659) | async def test_async_anthropic_thinking_streaming_legacy( function test_async_anthropic_thinking_streaming_with_events_with_content (line 727) | async def test_async_anthropic_thinking_streaming_with_events_with_content( function test_async_anthropic_thinking_streaming_with_events_with_no_content (line 821) | async def test_async_anthropic_thinking_streaming_with_events_with_no_co... function assert_message_in_logs (line 902) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-anthropic/tests/utils.py function verify_metrics (line 7) | def verify_metrics( FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/__init__.py class MetricParams (line 59) | class MetricParams: method __init__ (line 60) | def __init__( function is_metrics_enabled (line 111) | def is_metrics_enabled() -> bool: function _with_tracer_wrapper (line 115) | def _with_tracer_wrapper(func): function _wrap (line 142) | def _wrap( function _instrumented_model_invoke (line 197) | def _instrumented_model_invoke(fn, tracer, metric_params, event_logger): function _instrumented_model_invoke_with_response_stream (line 213) | def _instrumented_model_invoke_with_response_stream( function _instrumented_converse (line 231) | def _instrumented_converse(fn, tracer, metric_params, event_logger): function _instrumented_converse_stream (line 251) | def _instrumented_converse_stream(fn, tracer, metric_params, event_logger): function _handle_stream_call (line 268) | def _handle_stream_call(span, kwargs, response, metric_params, event_log... function _handle_call (line 314) | def _handle_call(span: Span, kwargs, response, metric_params, event_logg... function _handle_converse (line 354) | def _handle_converse(span, kwargs, response, metric_params, event_logger): function _handle_converse_stream (line 371) | def _handle_converse_stream(span, kwargs, response, metric_params, event... function _get_vendor_model (line 420) | def _get_vendor_model(modelId): function _cross_region_check (line 440) | def _cross_region_check(value): class GuardrailMeters (line 452) | class GuardrailMeters: class PromptCaching (line 462) | class PromptCaching: function _create_metrics (line 467) | def _create_metrics(meter: Meter): class BedrockInstrumentor (line 559) | class BedrockInstrumentor(BaseInstrumentor): method __init__ (line 562) | def __init__( method instrumentation_dependencies (line 573) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 576) | def _instrument(self, **kwargs): method _uninstrument (line 652) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/event_emitter.py class Roles (line 17) | class Roles(Enum): function emit_message_events (line 33) | def emit_message_events(event_logger: Optional[Logger], kwargs): function emit_choice_events (line 64) | def emit_choice_events(event_logger: Optional[Logger], response): function emit_input_events_converse (line 157) | def emit_input_events_converse(kwargs, event_logger): function emit_response_event_converse (line 179) | def emit_response_event_converse(response, event_logger): function emit_streaming_response_event (line 193) | def emit_streaming_response_event(response_body, event_logger): function emit_streaming_converse_response_event (line 209) | def emit_streaming_converse_response_event( function emit_event (line 226) | def emit_event( function _emit_message_event (line 246) | def _emit_message_event( function _emit_choice_event (line 280) | def _emit_choice_event(event: ChoiceEvent, event_logger: Optional[Logger... FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/guardrail.py class Type (line 8) | class Type(Enum): class GuardrailAttributes (line 13) | class GuardrailAttributes: function is_guardrail_activated (line 24) | def is_guardrail_activated(response): function handle_invoke_metrics (line 34) | def handle_invoke_metrics(t: Type, guardrail, attrs, metric_params): function handle_sensitive (line 57) | def handle_sensitive(t: Type, guardrail, attrs, metric_params): function handle_topic (line 91) | def handle_topic(t: Type, guardrail, attrs, metric_params): function handle_content (line 108) | def handle_content(t: Type, guardrail, attrs, metric_params): function handle_words (line 126) | def handle_words(t: Type, guardrail, attrs, metric_params): function guardrail_converse (line 155) | def guardrail_converse(span, response, vendor, model, metric_params): function guardrail_handling (line 181) | def guardrail_handling(span, response_body, vendor, model, metric_params): function _handle (line 211) | def _handle(t: Type, guardrail_info, attrs, metric_params): FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/prompt_caching.py class CachingHeaders (line 4) | class CachingHeaders: class CacheSpanAttrs (line 9) | class CacheSpanAttrs: # TODO: move it under SemConv pkg function prompt_caching_handling (line 14) | def prompt_caching_handling(headers, vendor, model, metric_params): FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/reusable_streaming_body.py class ReusableStreamingBody (line 10) | class ReusableStreamingBody(StreamingBody): method __init__ (line 13) | def __init__(self, raw_stream, content_length): method read (line 18) | def read(self, amt=None): FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/span_utils.py function _set_span_attribute (line 24) | def _set_span_attribute(span, name, value): function set_model_message_span_attributes (line 31) | def set_model_message_span_attributes(model_vendor, span, request_body): function set_model_choice_span_attributes (line 61) | def set_model_choice_span_attributes(model_vendor, span, response_body): function set_model_span_attributes (line 78) | def set_model_span_attributes( function _guardrail_value (line 124) | def _guardrail_value(request_body): function set_guardrail_attributes (line 132) | def set_guardrail_attributes(span, input_filters, output_filters): function _set_prompt_span_attributes (line 147) | def _set_prompt_span_attributes(span, request_body): function _set_cohere_span_attributes (line 153) | def _set_cohere_span_attributes(span, request_body, response_body, metri... function _set_generations_span_attributes (line 185) | def _set_generations_span_attributes(span, response_body): function _set_anthropic_completion_span_attributes (line 194) | def _set_anthropic_completion_span_attributes( function _set_anthropic_response_span_attributes (line 249) | def _set_anthropic_response_span_attributes(span, response_body): function _set_anthropic_messages_span_attributes (line 267) | def _set_anthropic_messages_span_attributes( function _count_anthropic_tokens (line 322) | def _count_anthropic_tokens(messages: list[str]): function _set_ai21_span_attributes (line 349) | def _set_ai21_span_attributes(span, request_body, response_body, metric_... function _set_span_completions_attributes (line 371) | def _set_span_completions_attributes(span, response_body): function _set_llama_span_attributes (line 380) | def _set_llama_span_attributes(span, request_body, response_body, metric... function _set_llama_prompt_span_attributes (line 402) | def _set_llama_prompt_span_attributes(span, request_body): function _set_llama_response_span_attributes (line 409) | def _set_llama_response_span_attributes(span, response_body): function _set_amazon_span_attributes (line 429) | def _set_amazon_span_attributes( function _set_amazon_input_span_attributes (line 485) | def _set_amazon_input_span_attributes(span, request_body): function _set_amazon_response_span_attributes (line 520) | def _set_amazon_response_span_attributes(span, response_body): function _set_imported_model_span_attributes (line 544) | def _set_imported_model_span_attributes( function _set_imported_model_response_span_attributes (line 576) | def _set_imported_model_response_span_attributes(span, response_body): function _set_imported_model_prompt_span_attributes (line 584) | def _set_imported_model_prompt_span_attributes(span, request_body): function _record_usage_to_span (line 590) | def _record_usage_to_span(span, prompt_tokens, completion_tokens, metric... function _metric_shared_attributes (line 644) | def _metric_shared_attributes( function set_converse_model_span_attributes (line 655) | def set_converse_model_span_attributes(span, provider, model, kwargs): function set_converse_input_prompt_span_attributes (line 679) | def set_converse_input_prompt_span_attributes(kwargs, span): function set_converse_response_span_attributes (line 710) | def set_converse_response_span_attributes(response, span): function set_converse_streaming_response_span_attributes (line 726) | def set_converse_streaming_response_span_attributes(response, role, span): function converse_usage_record (line 735) | def converse_usage_record(span, response, metric_params): FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/streaming_wrapper.py class StreamingWrapper (line 9) | class StreamingWrapper(ObjectProxy): method __init__ (line 10) | def __init__( method __iter__ (line 20) | def __iter__(self): method _process_event (line 34) | def _process_event(self, event): method _accumulate_events (line 58) | def _accumulate_events(self, event): FILE: packages/opentelemetry-instrumentation-bedrock/opentelemetry/instrumentation/bedrock/utils.py function dont_throw (line 11) | def dont_throw(func): function should_send_prompts (line 36) | def should_send_prompts(): function should_emit_events (line 42) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-bedrock/tests/conftest.py function environment (line 28) | def environment(): function brt (line 35) | def brt(): function fixture_span_exporter (line 45) | def fixture_span_exporter(): function fixture_tracer_provider (line 51) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 58) | def fixture_log_exporter(): function fixture_logger_provider (line 64) | def fixture_logger_provider(log_exporter): function fixture_reader (line 71) | def fixture_reader(): function fixture_meter_provider (line 79) | def fixture_meter_provider(reader): function instrument_legacy (line 87) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 103) | def instrument_with_content( function instrument_with_no_content (line 124) | def instrument_with_no_content( function vcr_config (line 145) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-bedrock/tests/metrics/conftest.py function environment (line 18) | def environment(): function brt (line 25) | def brt(): function test_context (line 35) | def test_context(): function instrument (line 51) | def instrument(test_context): function clear_test_context (line 64) | def clear_test_context(test_context): FILE: packages/opentelemetry-instrumentation-bedrock/tests/metrics/test_bedrock_guardrails_metrics.py function test_titan_invoke_model_guardrail (line 12) | def test_titan_invoke_model_guardrail(test_context, brt): function test_titan_invoke_stream_guardrail (line 26) | def test_titan_invoke_stream_guardrail(test_context, brt): function test_titan_converse_guardrail (line 42) | def test_titan_converse_guardrail(test_context, brt): function test_titan_converse_stream_guardrail (line 61) | def test_titan_converse_stream_guardrail(test_context, brt): function assert_guardrails (line 83) | def assert_guardrails(reader): FILE: packages/opentelemetry-instrumentation-bedrock/tests/metrics/test_bedrock_metrics.py function test_invoke_model_metrics (line 11) | def test_invoke_model_metrics(test_context, brt): FILE: packages/opentelemetry-instrumentation-bedrock/tests/metrics/test_bedrock_prompt_caching_metrics.py function call (line 9) | def call(brt): function get_metric (line 41) | def get_metric(resource_metrics, name): function assert_metric (line 50) | def assert_metric(reader, usage): function test_prompt_cache (line 68) | def test_prompt_cache(test_context, brt): FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_ai21.py function test_ai21_j2_completion_string_content (line 12) | def test_ai21_j2_completion_string_content( function test_ai21_j2_completion_string_content_with_events_with_content (line 65) | def test_ai21_j2_completion_string_content_with_events_with_content( function test_ai21_j2_completion_string_content_with_events_with_no_content (line 128) | def test_ai21_j2_completion_string_content_with_events_with_no_content( function assert_message_in_logs (line 186) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_anthropic.py function test_anthropic_2_completion (line 13) | def test_anthropic_2_completion(instrument_legacy, brt, span_exporter, l... function test_anthropic_2_completion_with_events_with_content (line 61) | def test_anthropic_2_completion_with_events_with_content( function test_anthropic_2_completion_with_events_with_no_content (line 117) | def test_anthropic_2_completion_with_events_with_no_content( function test_anthropic_3_completion_complex_content (line 169) | def test_anthropic_3_completion_complex_content( function test_anthropic_3_completion_complex_content_with_events_with_content (line 233) | def test_anthropic_3_completion_complex_content_with_events_with_content( function test_anthropic_3_completion_complex_content_with_events_with_no_content (line 303) | def test_anthropic_3_completion_complex_content_with_events_with_no_cont... function test_anthropic_3_completion_streaming (line 365) | def test_anthropic_3_completion_streaming( function test_anthropic_3_completion_streaming_with_events_with_content (line 436) | def test_anthropic_3_completion_streaming_with_events_with_content( function test_anthropic_3_completion_streaming_with_events_with_no_content (line 507) | def test_anthropic_3_completion_streaming_with_events_with_no_content( function test_anthropic_3_completion_string_content (line 574) | def test_anthropic_3_completion_string_content( function test_anthropic_3_completion_string_content_with_events_with_content (line 635) | def test_anthropic_3_completion_string_content_with_events_with_content( function test_anthropic_3_completion_string_content_with_events_with_no_content (line 699) | def test_anthropic_3_completion_string_content_with_events_with_no_content( function test_anthropic_cross_region (line 758) | def test_anthropic_cross_region(instrument_legacy, brt, span_exporter, l... function test_anthropic_cross_region_with_events_with_content (line 813) | def test_anthropic_cross_region_with_events_with_content( function test_anthropic_cross_region_with_events_with_no_content (line 879) | def test_anthropic_cross_region_with_events_with_no_content( function test_prompt_cache (line 937) | def test_prompt_cache(instrument_legacy, brt, span_exporter, log_exporter): function test_anthropic_converse_stream_with_tool_use (line 978) | def test_anthropic_converse_stream_with_tool_use( function assert_message_in_logs (line 1063) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_cohere.py function test_cohere_completion (line 12) | def test_cohere_completion(instrument_legacy, brt, span_exporter, log_ex... function test_cohere_completion_with_events_with_no_content (line 76) | def test_cohere_completion_with_events_with_no_content( function test_cohere_completion_with_events_with_content (line 140) | def test_cohere_completion_with_events_with_content( function assert_message_in_logs (line 208) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_guardrails.py function test_guardrail_invoke (line 15) | def test_guardrail_invoke(instrument_legacy, brt, span_exporter, log_exp... function test_guardrail_invoke_stream (line 83) | def test_guardrail_invoke_stream(instrument_legacy, brt, span_exporter, ... function test_guardrail_converse (line 145) | def test_guardrail_converse( function test_guardrail_converse_stream (line 223) | def test_guardrail_converse_stream( FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_imported_model.py function test_imported_model_completion (line 12) | def test_imported_model_completion(instrument_legacy, brt, span_exporter... function test_imported_model_completion_with_events_with_content (line 52) | def test_imported_model_completion_with_events_with_content( function test_imported_model_completion_with_events_with_no_content (line 100) | def test_imported_model_completion_with_events_with_no_content( function assert_message_in_logs (line 147) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_meta.py function test_meta_llama2_completion_string_content (line 12) | def test_meta_llama2_completion_string_content( function test_meta_llama2_completion_string_content_with_events_with_content (line 59) | def test_meta_llama2_completion_string_content_with_events_with_content( function test_meta_llama2_completion_string_content_with_events_with_no_content (line 116) | def test_meta_llama2_completion_string_content_with_events_with_no_content( function test_meta_llama3_completion (line 173) | def test_meta_llama3_completion(instrument_legacy, brt, span_exporter, l... function test_meta_llama3_completion_with_events_with_content (line 215) | def test_meta_llama3_completion_with_events_with_content( function test_meta_llama3_completion_with_events_with_no_content (line 264) | def test_meta_llama3_completion_with_events_with_no_content( function test_meta_converse (line 313) | def test_meta_converse(instrument_legacy, brt, span_exporter, log_export... function test_meta_converse_with_events_with_content (line 376) | def test_meta_converse_with_events_with_content( function test_meta_converse_with_events_with_no_content (line 444) | def test_meta_converse_with_events_with_no_content( function test_meta_converse_stream (line 505) | def test_meta_converse_stream(instrument_legacy, brt, span_exporter, log... function test_meta_converse_stream_with_events_with_content (line 583) | def test_meta_converse_stream_with_events_with_content( function test_meta_converse_stream_with_events_with_no_content (line 663) | def test_meta_converse_stream_with_events_with_no_content( function assert_message_in_logs (line 740) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_nova.py function test_nova_completion (line 12) | def test_nova_completion(instrument_legacy, brt, span_exporter, log_expo... function test_nova_completion_with_events_with_content (line 87) | def test_nova_completion_with_events_with_content( function test_nova_completion_with_events_with_no_content (line 168) | def test_nova_completion_with_events_with_no_content( function test_nova_invoke_stream (line 236) | def test_nova_invoke_stream(instrument_legacy, brt, span_exporter, log_e... function test_nova_invoke_stream_with_events_with_content (line 327) | def test_nova_invoke_stream_with_events_with_content( function test_nova_invoke_stream_with_events_with_no_content (line 425) | def test_nova_invoke_stream_with_events_with_no_content( function test_nova_converse (line 512) | def test_nova_converse(instrument_legacy, brt, span_exporter, log_export... function test_nova_converse_with_events_with_content (line 604) | def test_nova_converse_with_events_with_content( function test_nova_converse_with_events_with_no_content (line 700) | def test_nova_converse_with_events_with_no_content( function test_nova_converse_stream (line 789) | def test_nova_converse_stream(instrument_legacy, brt, span_exporter, log... function test_nova_converse_stream_with_events_with_content (line 917) | def test_nova_converse_stream_with_events_with_content( function test_nova_converse_stream_with_events_with_no_content (line 1042) | def test_nova_converse_stream_with_events_with_no_content( function test_nova_cross_region_invoke (line 1161) | def test_nova_cross_region_invoke(instrument_legacy, brt, span_exporter,... function test_nova_cross_region_invoke_with_events_with_content (line 1230) | def test_nova_cross_region_invoke_with_events_with_content( function test_nova_cross_region_invoke_with_events_with_no_content (line 1299) | def test_nova_cross_region_invoke_with_events_with_no_content( function assert_message_in_logs (line 1362) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-bedrock/tests/traces/test_titan.py function test_titan_completion (line 12) | def test_titan_completion(instrument_legacy, brt, span_exporter, log_exp... function test_titan_completion_with_events_with_content (line 85) | def test_titan_completion_with_events_with_content( function test_titan_completion_with_events_with_no_content (line 161) | def test_titan_completion_with_events_with_no_content( function test_titan_invoke_stream (line 225) | def test_titan_invoke_stream(instrument_legacy, brt, span_exporter, log_... function test_titan_invoke_stream_with_events_with_content (line 308) | def test_titan_invoke_stream_with_events_with_content( function test_titan_invoke_stream_with_events_with_no_content (line 393) | def test_titan_invoke_stream_with_events_with_no_content( function test_titan_converse (line 471) | def test_titan_converse(instrument_legacy, brt, span_exporter, log_expor... function test_titan_converse_with_events_with_content (line 547) | def test_titan_converse_with_events_with_content( function test_titan_converse_with_events_with_no_content (line 624) | def test_titan_converse_with_events_with_no_content( function test_titan_converse_stream (line 698) | def test_titan_converse_stream(instrument_legacy, brt, span_exporter, lo... function test_titan_converse_stream_with_events_with_content (line 812) | def test_titan_converse_stream_with_events_with_content( function test_titan_converse_stream_with_events_with_no_content (line 920) | def test_titan_converse_stream_with_events_with_no_content( function assert_message_in_logs (line 1025) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-chromadb/opentelemetry/instrumentation/chromadb/__init__.py class ChromaInstrumentor (line 81) | class ChromaInstrumentor(BaseInstrumentor): method __init__ (line 84) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 88) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 91) | def _instrument(self, **kwargs): method _uninstrument (line 105) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-chromadb/opentelemetry/instrumentation/chromadb/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-chromadb/opentelemetry/instrumentation/chromadb/utils.py function dont_throw (line 6) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-chromadb/opentelemetry/instrumentation/chromadb/wrapper.py function _with_tracer_wrapper (line 14) | def _with_tracer_wrapper(func): function _set_span_attribute (line 26) | def _set_span_attribute(span, name, value): function _wrap (line 34) | def _wrap(tracer, to_wrap, wrapped, instance, args, kwargs): function _encode_where (line 71) | def _encode_where(where): function _encode_where_document (line 79) | def _encode_where_document(where_document): function _encode_include (line 87) | def _encode_include(include): function count_or_none (line 95) | def count_or_none(obj): function _set_add_attributes (line 103) | def _set_add_attributes(span, kwargs): function _set_get_attributes (line 125) | def _set_get_attributes(span, kwargs): function _set_peek_attributes (line 149) | def _set_peek_attributes(span, kwargs): function _set_query_attributes (line 154) | def _set_query_attributes(span, kwargs): function _set_segment_query_attributes (line 184) | def _set_segment_query_attributes(span, kwargs, args=None): function _add_segment_query_embeddings_events (line 197) | def _add_segment_query_embeddings_events(span, kwargs, args=None): function _add_query_result_events (line 214) | def _add_query_result_events(span, kwargs): function _set_modify_attributes (line 281) | def _set_modify_attributes(span, kwargs): function _set_update_attributes (line 287) | def _set_update_attributes(span, kwargs): function _set_upsert_attributes (line 311) | def _set_upsert_attributes(span, kwargs): function _set_delete_attributes (line 330) | def _set_delete_attributes(span, kwargs): FILE: packages/opentelemetry-instrumentation-chromadb/tests/conftest.py function exporter (line 14) | def exporter(): function clear_exporter (line 28) | def clear_exporter(exporter): FILE: packages/opentelemetry-instrumentation-chromadb/tests/test_query.py function collection (line 12) | def collection(): function add_documents (line 17) | def add_documents(collection, with_metadata=False): function test_chroma_add (line 55) | def test_chroma_add(exporter, collection): function test_chroma_query (line 68) | def test_chroma_query(exporter, collection): function test_chroma_query_with_metadata (line 100) | def test_chroma_query_with_metadata(exporter, collection): function test_chroma_query_segment_query (line 137) | def test_chroma_query_segment_query(exporter, collection): FILE: packages/opentelemetry-instrumentation-cohere/opentelemetry/instrumentation/cohere/__init__.py function _with_tracer_wrapper (line 167) | def _with_tracer_wrapper(func): function _llm_request_type_by_method (line 179) | def _llm_request_type_by_method(method_name): function _handle_input_content (line 193) | def _handle_input_content(span, event_logger, llm_request_type, kwargs): function _handle_response_content (line 200) | def _handle_response_content(span, event_logger, llm_request_type, respo... function _wrap (line 207) | def _wrap( function _awrap (line 256) | async def _awrap( class CohereInstrumentor (line 299) | class CohereInstrumentor(BaseInstrumentor): method __init__ (line 302) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 307) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 310) | def _instrument(self, **kwargs): method _uninstrument (line 346) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-cohere/opentelemetry/instrumentation/cohere/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-cohere/opentelemetry/instrumentation/cohere/event_emitter.py class Roles (line 19) | class Roles(Enum): function emit_input_event (line 35) | def emit_input_event(event_logger, llm_request_type: str, kwargs): function emit_response_events (line 56) | def emit_response_events(event_logger, llm_request_type: str, response): function emit_event (line 70) | def emit_event( function _emit_message_event (line 90) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 122) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: function _parse_response_event (line 147) | def _parse_response_event(index: int, llm_request_type: str, response) -... FILE: packages/opentelemetry-instrumentation-cohere/opentelemetry/instrumentation/cohere/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-cohere/opentelemetry/instrumentation/cohere/span_utils.py function _set_span_attribute (line 18) | def _set_span_attribute(span, name, value): function set_input_content_attributes (line 26) | def set_input_content_attributes(span, llm_request_type, kwargs): function set_response_content_attributes (line 117) | def set_response_content_attributes(span, llm_request_type, response): function set_span_request_attributes (line 132) | def set_span_request_attributes(span, kwargs): function set_span_response_attributes (line 159) | def set_span_response_attributes(span, response): function _set_span_chat_response (line 242) | def _set_span_chat_response(span, response): function _set_span_generations_response (line 286) | def _set_span_generations_response(span, response): function _set_span_rerank_response (line 299) | def _set_span_rerank_response(span, response): FILE: packages/opentelemetry-instrumentation-cohere/opentelemetry/instrumentation/cohere/streaming.py function process_chat_v1_streaming_response (line 22) | def process_chat_v1_streaming_response(span, event_logger, llm_request_t... function aprocess_chat_v1_streaming_response (line 47) | async def aprocess_chat_v1_streaming_response(span, event_logger, llm_re... function process_chat_v2_streaming_response (line 71) | def process_chat_v2_streaming_response(span, event_logger, llm_request_t... function aprocess_chat_v2_streaming_response (line 111) | async def aprocess_chat_v2_streaming_response(span, event_logger, llm_re... function _accumulate_stream_item (line 148) | def _accumulate_stream_item(item, current_content_item, current_tool_cal... FILE: packages/opentelemetry-instrumentation-cohere/opentelemetry/instrumentation/cohere/utils.py function dont_throw (line 13) | def dont_throw(func): function should_send_prompts (line 38) | def should_send_prompts(): function should_emit_events (line 44) | def should_emit_events() -> bool: function dump_object (line 52) | def dump_object(obj): function to_dict (line 64) | def to_dict(obj): FILE: packages/opentelemetry-instrumentation-cohere/tests/conftest.py function fixture_span_exporter (line 22) | def fixture_span_exporter(): function fixture_tracer_provider (line 28) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 35) | def fixture_log_exporter(): function fixture_logger_provider (line 41) | def fixture_logger_provider(log_exporter): function cohere_client (line 48) | def cohere_client(): function async_cohere_client (line 53) | def async_cohere_client(): function cohere_client_v2 (line 58) | def cohere_client_v2(): function async_cohere_client_v2 (line 63) | def async_cohere_client_v2(): function instrument_legacy (line 68) | def instrument_legacy(tracer_provider): function instrument_with_content (line 80) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 96) | def instrument_with_no_content(tracer_provider, logger_provider): function environment (line 112) | def environment(): function vcr_config (line 118) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-cohere/tests/test_chat.py function test_cohere_chat_legacy (line 49) | def test_cohere_chat_legacy( function test_cohere_v2_chat_legacy (line 86) | def test_cohere_v2_chat_legacy( function test_cohere_chat_legacy_with_streaming (line 130) | def test_cohere_chat_legacy_with_streaming( function test_cohere_v2_chat_legacy_with_streaming (line 172) | def test_cohere_v2_chat_legacy_with_streaming( function test_cohere_v2_chat_legacy_with_tool_calls_and_history (line 222) | def test_cohere_v2_chat_legacy_with_tool_calls_and_history( function test_cohere_v2_chat_legacy_with_tool_calls_and_streaming (line 414) | def test_cohere_v2_chat_legacy_with_tool_calls_and_streaming( function test_cohere_chat_with_events_with_content (line 515) | def test_cohere_chat_with_events_with_content( function test_cohere_chat_with_events_with_no_content (line 544) | def test_cohere_chat_with_events_with_no_content( function test_cohere_chat_legacy_async (line 574) | async def test_cohere_chat_legacy_async( function test_cohere_chat_with_events_with_content_async (line 612) | async def test_cohere_chat_with_events_with_content_async( function test_cohere_chat_with_events_with_no_content_async (line 642) | async def test_cohere_chat_with_events_with_no_content_async( function test_cohere_chat_legacy_with_streaming_async (line 672) | async def test_cohere_chat_legacy_with_streaming_async( function test_cohere_v2_chat_legacy_with_streaming_async (line 715) | async def test_cohere_v2_chat_legacy_with_streaming_async( function test_cohere_v2_chat_legacy_with_tool_calls_and_history_async (line 766) | async def test_cohere_v2_chat_legacy_with_tool_calls_and_history_async( function test_cohere_v2_chat_legacy_with_tool_calls_and_streaming_async (line 918) | async def test_cohere_v2_chat_legacy_with_tool_calls_and_streaming_async( function assert_message_in_logs (line 1018) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-cohere/tests/test_completion.py function test_cohere_completion_legacy (line 10) | def test_cohere_completion_legacy( function test_cohere_completion_with_events_with_content (line 41) | def test_cohere_completion_with_events_with_content( function test_cohere_completion_with_events_with_no_content (line 70) | def test_cohere_completion_with_events_with_no_content( function assert_message_in_logs (line 97) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-cohere/tests/test_embed.py function test_cohere_v2_embed_legacy (line 7) | def test_cohere_v2_embed_legacy( function test_cohere_v2_embed_legacy_async (line 66) | async def test_cohere_v2_embed_legacy_async( FILE: packages/opentelemetry-instrumentation-cohere/tests/test_rerank.py function test_cohere_rerank_legacy (line 10) | def test_cohere_rerank_legacy( function test_cohere_rerank_with_events_with_content (line 90) | def test_cohere_rerank_with_events_with_content( function test_cohere_rerank_with_events_with_no_content (line 154) | def test_cohere_rerank_with_events_with_no_content( function test_cohere_v2_rerank_legacy (line 205) | def test_cohere_v2_rerank_legacy( function test_cohere_v2_rerank_legacy_async (line 286) | async def test_cohere_v2_rerank_legacy_async( function assert_message_in_logs (line 365) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-crewai/opentelemetry/instrumentation/crewai/crewai_span_attributes.py function set_span_attribute (line 6) | def set_span_attribute(span: Span, name, value): class CrewAISpanAttributes (line 13) | class CrewAISpanAttributes: method __init__ (line 14) | def __init__(self, span: Span, instance) -> None: method process_instance (line 20) | def process_instance(self): method _process_crew (line 32) | def _process_crew(self): method _process_agent (line 37) | def _process_agent(self): method _process_task (line 42) | def _process_task(self): method _process_llm (line 47) | def _process_llm(self): method _populate_crew_attributes (line 80) | def _populate_crew_attributes(self): method _populate_agent_attributes (line 91) | def _populate_agent_attributes(self): method _populate_task_attributes (line 94) | def _populate_task_attributes(self): method _populate_llm_attributes (line 100) | def _populate_llm_attributes(self): method _parse_agents (line 103) | def _parse_agents(self, agents): method _parse_tasks (line 108) | def _parse_tasks(self, tasks): method _extract_agent_data (line 122) | def _extract_agent_data(self, agent): method _extract_attributes (line 142) | def _extract_attributes(self, obj): method _serialize_tools (line 153) | def _serialize_tools(self, tools): method _set_attribute (line 161) | def _set_attribute(self, key, value): FILE: packages/opentelemetry-instrumentation-crewai/opentelemetry/instrumentation/crewai/instrumentation.py class CrewAIInstrumentor (line 21) | class CrewAIInstrumentor(BaseInstrumentor): method instrumentation_dependencies (line 23) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 26) | def _instrument(self, **kwargs): method _uninstrument (line 47) | def _uninstrument(self, **kwargs): function with_tracer_wrapper (line 54) | def with_tracer_wrapper(func): function wrap_kickoff (line 65) | def wrap_kickoff(tracer: Tracer, duration_histogram: Histogram, token_hi... function wrap_agent_execute_task (line 92) | def wrap_agent_execute_task(tracer, duration_histogram, token_histogram,... function wrap_task_execute (line 132) | def wrap_task_execute(tracer, duration_histogram, token_histogram, wrapp... function wrap_llm_call (line 154) | def wrap_llm_call(tracer, duration_histogram, token_histogram, wrapped, ... function is_metrics_enabled (line 184) | def is_metrics_enabled() -> bool: function _create_metrics (line 188) | def _create_metrics(meter: Meter): FILE: packages/opentelemetry-instrumentation-crewai/tests/test_crewai_instrumentation.py function mock_instrumentor (line 9) | def mock_instrumentor(): function mock_crew (line 17) | def mock_crew(): function test_crewai_instrumentation (line 44) | def test_crewai_instrumentation(mock_crew, mock_instrumentor): function test_trace_status (line 57) | def test_trace_status(mock_crew, mock_instrumentor): FILE: packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai/__init__.py function is_streaming_response (line 73) | def is_streaming_response(response): function is_async_streaming_response (line 77) | def is_async_streaming_response(response): function _build_from_streaming_response (line 81) | def _build_from_streaming_response( function _abuild_from_streaming_response (line 107) | async def _abuild_from_streaming_response( function _handle_request (line 130) | def _handle_request(span, args, kwargs, llm_model, event_logger): function _handle_response (line 140) | def _handle_response(span, response, llm_model, event_logger, token_hist... function _with_tracer_wrapper (line 149) | def _with_tracer_wrapper(func): function _awrap (line 174) | async def _awrap( function _wrap (line 250) | def _wrap( function is_metrics_enabled (line 326) | def is_metrics_enabled() -> bool: function _create_metrics (line 330) | def _create_metrics(meter: Meter): class GoogleGenerativeAiInstrumentor (line 346) | class GoogleGenerativeAiInstrumentor(BaseInstrumentor): method __init__ (line 349) | def __init__( method instrumentation_dependencies (line 361) | def instrumentation_dependencies(self) -> Collection[str]: method _wrapped_methods (line 364) | def _wrapped_methods(self): method _instrument (line 367) | def _instrument(self, **kwargs): method _uninstrument (line 412) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai/config.py class Config (line 4) | class Config: FILE: packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai/event_emitter.py class Roles (line 21) | class Roles(Enum): function emit_message_events (line 35) | def emit_message_events(args, kwargs, event_logger: Logger): function emit_choice_events (line 57) | def emit_choice_events( function emit_event (line 74) | def emit_event( function _emit_message_event (line 94) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 127) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai/span_utils.py function _set_span_attribute (line 23) | def _set_span_attribute(span, name, value): function _is_image_part (line 30) | def _is_image_part(item): function _process_image_part (line 47) | async def _process_image_part(item, trace_id, span_id, content_index): function run_async (line 75) | def run_async(method): function _process_image_part_sync (line 90) | def _process_image_part_sync(item, trace_id, span_id, content_index): function _process_content_item (line 123) | async def _process_content_item(content_item, span): function _process_content_part (line 150) | async def _process_content_part(part, span, part_index): function _set_prompt_attributes (line 163) | def _set_prompt_attributes(span, prompt_index, processed_content, conten... function _process_argument (line 177) | async def _process_argument(argument, span): function set_input_attributes (line 208) | async def set_input_attributes(span, args, kwargs, llm_model): function set_input_attributes_sync (line 263) | def set_input_attributes_sync(span, args, kwargs, llm_model): function set_model_request_attributes (line 376) | def set_model_request_attributes(span, kwargs, llm_model): function set_response_attributes (line 418) | def set_response_attributes(span, response, llm_model): function set_model_response_attributes (line 449) | def set_model_response_attributes(span, response, llm_model, token_histo... FILE: packages/opentelemetry-instrumentation-google-generativeai/opentelemetry/instrumentation/google_generativeai/utils.py function dont_throw (line 13) | def dont_throw(func): function should_send_prompts (line 38) | def should_send_prompts(): function should_emit_events (line 44) | def should_emit_events() -> bool: function part_to_dict (line 53) | def part_to_dict(part): function is_package_installed (line 74) | def is_package_installed(package_name: str) -> bool: FILE: packages/opentelemetry-instrumentation-google-generativeai/tests/conftest.py function exporter (line 37) | def exporter(metrics_test_context): function tracer_provider (line 52) | def tracer_provider(): function fixture_log_exporter (line 58) | def fixture_log_exporter(): function fixture_logger_provider (line 64) | def fixture_logger_provider(log_exporter): function genai_client (line 71) | def genai_client(): function instrument_legacy (line 77) | def instrument_legacy(tracer_provider): function metrics_test_context (line 89) | def metrics_test_context(): function clear_metrics_test_context (line 98) | def clear_metrics_test_context(metrics_test_context): function instrument_with_content (line 106) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 122) | def instrument_with_no_content(tracer_provider, logger_provider): function vcr_config (line 138) | def vcr_config(): function environment (line 143) | def environment(): FILE: packages/opentelemetry-instrumentation-google-generativeai/tests/test_generate_content.py function assert_message_in_logs (line 14) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... function test_client_spans (line 26) | def test_client_spans(exporter, genai_client): function test_generate_metrics (line 60) | def test_generate_metrics(metrics_test_context, genai_client): FILE: packages/opentelemetry-instrumentation-google-generativeai/tests/test_new_library_instrumentation.py function _is_instrumented (line 9) | def _is_instrumented(func): function test_google_genai_instrumentation_lifecycle (line 20) | def test_google_genai_instrumentation_lifecycle(): function test_instrumentation_dependencies (line 54) | def test_instrumentation_dependencies(): function test_wrapped_methods (line 63) | def test_wrapped_methods(): FILE: packages/opentelemetry-instrumentation-groq/opentelemetry/instrumentation/groq/__init__.py function is_streaming_response (line 71) | def is_streaming_response(response): function _with_chat_telemetry_wrapper (line 75) | def _with_chat_telemetry_wrapper(func): function _create_metrics (line 105) | def _create_metrics(meter: Meter): function _process_streaming_chunk (line 127) | def _process_streaming_chunk(chunk): function _handle_streaming_response (line 144) | def _handle_streaming_response( function _create_stream_processor (line 156) | def _create_stream_processor(response, span, event_logger): function _create_async_stream_processor (line 182) | async def _create_async_stream_processor(response, span, event_logger): function _handle_input (line 208) | def _handle_input(span, kwargs, event_logger): function _handle_response (line 216) | def _handle_response(span, response, token_histogram, event_logger): function _wrap (line 225) | def _wrap( function _awrap (line 307) | async def _awrap( function is_metrics_enabled (line 382) | def is_metrics_enabled() -> bool: class GroqInstrumentor (line 386) | class GroqInstrumentor(BaseInstrumentor): method __init__ (line 389) | def __init__( method instrumentation_dependencies (line 400) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 403) | def _instrument(self, **kwargs): method _uninstrument (line 472) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-groq/opentelemetry/instrumentation/groq/config.py class Config (line 4) | class Config: FILE: packages/opentelemetry-instrumentation-groq/opentelemetry/instrumentation/groq/event_emitter.py class Roles (line 19) | class Roles(Enum): function emit_message_events (line 37) | def emit_message_events(kwargs: dict, event_logger): function emit_choice_events (line 48) | def emit_choice_events(response: ChatCompletion, event_logger): function emit_streaming_response_events (line 64) | def emit_streaming_response_events( function emit_event (line 78) | def emit_event( function _emit_message_event (line 98) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 130) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-groq/opentelemetry/instrumentation/groq/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-groq/opentelemetry/instrumentation/groq/span_utils.py function set_input_attributes (line 23) | def set_input_attributes(span, kwargs): function set_model_input_attributes (line 46) | def set_model_input_attributes(span, kwargs): function set_streaming_response_attributes (line 69) | def set_streaming_response_attributes( function set_model_streaming_response_attributes (line 83) | def set_model_streaming_response_attributes(span, usage): function set_model_response_attributes (line 100) | def set_model_response_attributes(span, response, token_histogram): function set_response_attributes (line 146) | def set_response_attributes(span, response): function _set_completions (line 154) | def _set_completions(span, choices): function _dump_content (line 215) | def _dump_content(content): FILE: packages/opentelemetry-instrumentation-groq/opentelemetry/instrumentation/groq/utils.py function set_span_attribute (line 20) | def set_span_attribute(span, name, value): function should_send_prompts (line 25) | def should_send_prompts(): function dont_throw (line 31) | def dont_throw(func): function shared_metrics_attributes (line 57) | def shared_metrics_attributes(response): function error_metrics_attributes (line 70) | def error_metrics_attributes(exception): function model_as_dict (line 77) | def model_as_dict(model): function should_emit_events (line 88) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-groq/tests/traces/conftest.py function fixture_span_exporter (line 26) | def fixture_span_exporter(): function fixture_tracer_provider (line 32) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 39) | def fixture_log_exporter(): function fixture_logger_provider (line 45) | def fixture_logger_provider(log_exporter): function fixture_reader (line 52) | def fixture_reader(): function fixture_meter_provider (line 60) | def fixture_meter_provider(reader): function groq_client (line 68) | def groq_client(): function async_groq_client (line 75) | def async_groq_client(): function instrument_legacy (line 82) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 95) | def instrument_with_content( function instrument_with_no_content (line 116) | def instrument_with_no_content( function environment (line 137) | def environment(): function vcr_config (line 143) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-groq/tests/traces/test_chat_tracing.py function test_chat_legacy (line 10) | def test_chat_legacy(instrument_legacy, groq_client, span_exporter, log_... function test_chat_with_events_with_content (line 43) | def test_chat_with_events_with_content( function test_chat_with_events_with_no_content (line 90) | def test_chat_with_events_with_no_content( function test_async_chat_legacy (line 131) | async def test_async_chat_legacy( function test_async_chat_with_events_with_content (line 167) | async def test_async_chat_with_events_with_content( function test_async_chat_with_events_with_no_content (line 216) | async def test_async_chat_with_events_with_no_content( function test_chat_streaming_legacy (line 256) | def test_chat_streaming_legacy( function test_chat_streaming_with_events_with_content (line 296) | def test_chat_streaming_with_events_with_content( function test_chat_streaming_with_events_with_no_content (line 346) | def test_chat_streaming_with_events_with_no_content( function assert_message_in_logs (line 387) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-haystack/opentelemetry/instrumentation/haystack/__init__.py class HaystackInstrumentor (line 43) | class HaystackInstrumentor(BaseInstrumentor): method __init__ (line 46) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 50) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 53) | def _instrument(self, **kwargs): method _uninstrument (line 67) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-haystack/opentelemetry/instrumentation/haystack/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-haystack/opentelemetry/instrumentation/haystack/utils.py class EnhancedJSONEncoder (line 12) | class EnhancedJSONEncoder(json.JSONEncoder): method default (line 13) | def default(self, o): function should_send_prompts (line 21) | def should_send_prompts(): function dont_throw (line 27) | def dont_throw(func): function process_request (line 51) | def process_request(span, args, kwargs): function process_response (line 67) | def process_response(span, response): function set_span_attribute (line 75) | def set_span_attribute(span, name, value): function with_tracer_wrapper (line 82) | def with_tracer_wrapper(func): function dont_throw (line 98) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-haystack/opentelemetry/instrumentation/haystack/wrap_node.py function wrap (line 14) | def wrap(tracer, to_wrap, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-haystack/opentelemetry/instrumentation/haystack/wrap_openai.py function _set_input_attributes (line 22) | def _set_input_attributes(span, llm_request_type, kwargs): function _set_span_completions (line 67) | def _set_span_completions(span, llm_request_type, choices): function _set_response_attributes (line 83) | def _set_response_attributes(span, llm_request_type, response): function _llm_request_type_by_object (line 87) | def _llm_request_type_by_object(object_name): function wrap (line 97) | def wrap(tracer, to_wrap, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-haystack/opentelemetry/instrumentation/haystack/wrap_pipeline.py function wrap (line 18) | def wrap(tracer, to_wrap, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-haystack/tests/conftest.py function exporter (line 15) | def exporter(): function environment (line 29) | def environment(): function clear_exporter (line 35) | def clear_exporter(exporter): function vcr_config (line 40) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-haystack/tests/test_placeholder.py function test_placeholder (line 1) | def test_placeholder(): FILE: packages/opentelemetry-instrumentation-haystack/tests/test_simple_pipeline.py function test_haystack (line 12) | def test_haystack(exporter): FILE: packages/opentelemetry-instrumentation-lancedb/opentelemetry/instrumentation/lancedb/__init__.py class LanceInstrumentor (line 44) | class LanceInstrumentor(BaseInstrumentor): method __init__ (line 47) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 51) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 54) | def _instrument(self, **kwargs): method _uninstrument (line 68) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-lancedb/opentelemetry/instrumentation/lancedb/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-lancedb/opentelemetry/instrumentation/lancedb/utils.py function dont_throw (line 6) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-lancedb/opentelemetry/instrumentation/lancedb/wrapper.py function _with_tracer_wrapper (line 11) | def _with_tracer_wrapper(func): function _set_span_attribute (line 23) | def _set_span_attribute(span, name, value): function _wrap (line 31) | def _wrap(tracer, to_wrap, wrapped, instance, args, kwargs): function _encode_query (line 53) | def _encode_query(_query): function _count_or_none (line 61) | def _count_or_none(obj): function _set_add_attributes (line 69) | def _set_add_attributes(span, kwargs): function _set_search_attributes (line 76) | def _set_search_attributes(span, kwargs): function _set_delete_attributes (line 83) | def _set_delete_attributes(span, kwargs): FILE: packages/opentelemetry-instrumentation-lancedb/tests/conftest.py function exporter (line 14) | def exporter(): function clear_exporter (line 28) | def clear_exporter(exporter): FILE: packages/opentelemetry-instrumentation-lancedb/tests/test_query.py function collection (line 9) | def collection(): function add_data (line 18) | def add_data(collection): function test_lancedb_add (line 27) | def test_lancedb_add(exporter, collection): function test_lancedb_search (line 39) | def test_lancedb_search(exporter, collection): function test_lancedb_delete (line 52) | def test_lancedb_delete(exporter, collection): FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/__init__.py class LangchainInstrumentor (line 39) | class LangchainInstrumentor(BaseInstrumentor): method __init__ (line 42) | def __init__( method instrumentation_dependencies (line 66) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 69) | def _instrument(self, **kwargs): method _wrap_openai_functions_for_tracing (line 112) | def _wrap_openai_functions_for_tracing(self, traceloopCallbackHandler): method _wrap_langgraph_components (line 192) | def _wrap_langgraph_components(self, tracer): method _wrap_agent_factories (line 227) | def _wrap_agent_factories(self, tracer): method _wrap_middleware_hooks (line 273) | def _wrap_middleware_hooks(self, tracer): method _uninstrument (line 299) | def _uninstrument(self, **kwargs): class _BaseCallbackManagerInitWrapper (line 363) | class _BaseCallbackManagerInitWrapper: method __init__ (line 364) | def __init__(self, callback_handler: "TraceloopCallbackHandler"): method __call__ (line 367) | def __call__( class _OpenAITracingWrapper (line 393) | class _OpenAITracingWrapper: method __init__ (line 394) | def __init__(self, callback_manager: "TraceloopCallbackHandler"): method __call__ (line 397) | def __call__( FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/callback_handler.py function _extract_class_name_from_serialized (line 89) | def _extract_class_name_from_serialized(serialized: Optional[dict[str, A... function _sanitize_metadata_value (line 108) | def _sanitize_metadata_value(value: Any) -> Any: function valid_role (line 120) | def valid_role(role: str) -> bool: function get_message_role (line 124) | def get_message_role(message: Type[BaseMessage]) -> str: function _extract_tool_call_data (line 137) | def _extract_tool_call_data( class TraceloopCallbackHandler (line 163) | class TraceloopCallbackHandler(BaseCallbackHandler): method __init__ (line 164) | def __init__( method _get_name_from_callback (line 176) | def _get_name_from_callback( method _get_span (line 194) | def _get_span(self, run_id: UUID) -> Span: method _end_span (line 197) | def _end_span(self, span: Span, run_id: UUID) -> None: method _safe_attach_context (line 210) | def _safe_attach_context(self, span: Span): method _safe_detach_context (line 224) | def _safe_detach_context(self, token): method _create_span (line 257) | def _create_span( method _create_task_span (line 340) | def _create_task_span( method _create_llm_span (line 428) | def _create_llm_span( method on_chain_start (line 477) | def on_chain_start( method on_chain_end (line 568) | def on_chain_end( method on_chat_model_start (line 609) | def on_chat_model_start( method on_llm_start (line 640) | def on_llm_start( method on_llm_end (line 671) | def on_llm_end( method on_tool_start (line 783) | def on_tool_start( method on_tool_end (line 831) | def on_tool_end( method on_retriever_start (line 860) | def on_retriever_start( method on_retriever_end (line 919) | def on_retriever_end( method get_parent_span (line 959) | def get_parent_span(self, parent_run_id: Optional[str] = None): method get_workflow_name (line 964) | def get_workflow_name(self, parent_run_id: str): method get_entity_path (line 972) | def get_entity_path(self, parent_run_id: str): method _handle_error (line 987) | def _handle_error( method on_llm_error (line 1006) | def on_llm_error( method on_chain_error (line 1018) | def on_chain_error( method on_tool_error (line 1030) | def on_tool_error( method on_agent_error (line 1044) | def on_agent_error( method on_retriever_error (line 1056) | def on_retriever_error( method _emit_chat_input_events (line 1067) | def _emit_chat_input_events(self, messages): method _emit_llm_end_events (line 1082) | def _emit_llm_end_events(self, response): method _emit_generation_choice_event (line 1087) | def _emit_generation_choice_event( FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/config.py class Config (line 7) | class Config: FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/event_emitter.py class Roles (line 21) | class Roles(Enum): function emit_event (line 35) | def emit_event(event: Union[MessageEvent, ChoiceEvent]) -> None: function _emit_message_event (line 53) | def _emit_message_event(event: MessageEvent) -> None: function _emit_choice_event (line 85) | def _emit_choice_event(event: ChoiceEvent) -> None: FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/langgraph_utils.py function extract_graph_structure (line 6) | def extract_graph_structure(graph_instance: Any) -> tuple[list[str], lis... FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/patch.py function _get_current_node_contextvar (line 18) | def _get_current_node_contextvar(): function _set_graph_span_attributes (line 31) | def _set_graph_span_attributes( function _get_graph_name (line 79) | def _get_graph_name(instance, args, kwargs) -> str: function create_graph_invocation_wrapper (line 110) | def create_graph_invocation_wrapper(tracer: Tracer, is_async: bool = Fal... function create_command_init_wrapper (line 208) | def create_command_init_wrapper(tracer: Tracer): function _extract_goto_destinations (line 268) | def _extract_goto_destinations(goto: Any) -> list[str]: function _set_middleware_span_attributes (line 300) | def _set_middleware_span_attributes( function create_middleware_hook_wrapper (line 327) | def create_middleware_hook_wrapper(tracer: Tracer, hook_name: str): function create_async_middleware_hook_wrapper (line 361) | def create_async_middleware_hook_wrapper(tracer: Tracer, hook_name: str): function _extract_tool_definition (line 391) | def _extract_tool_definition(tool: Any) -> dict | None: function create_agent_wrapper (line 437) | def create_agent_wrapper(tracer: Tracer, provider_name: str = "langchain"): FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/span_utils.py class SpanHolder (line 29) | class SpanHolder: function _message_type_to_role (line 41) | def _message_type_to_role(message_type: str) -> str: function _set_span_attribute (line 54) | def _set_span_attribute(span: Span, key: str, value: Any) -> None: function set_request_params (line 62) | def set_request_params(span, kwargs, span_holder: SpanHolder): function set_llm_request (line 119) | def set_llm_request( function set_chat_request (line 142) | def set_chat_request( function set_chat_response (line 206) | def set_chat_response(span: Span, response: LLMResult) -> None: function set_chat_response_usage (line 287) | def set_chat_response_usage( function extract_model_name_from_response_metadata (line 383) | def extract_model_name_from_response_metadata(response: LLMResult) -> str: function _extract_model_name_from_association_metadata (line 394) | def _extract_model_name_from_association_metadata(metadata: Optional[dic... function _set_chat_tool_calls (line 400) | def _set_chat_tool_calls( FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/utils.py class CallbackFilteredJSONEncoder (line 22) | class CallbackFilteredJSONEncoder(json.JSONEncoder): method default (line 23) | def default(self, o): function should_send_prompts (line 49) | def should_send_prompts(): function dont_throw (line 55) | def dont_throw(func): function should_emit_events (line 80) | def should_emit_events() -> bool: function is_package_available (line 90) | def is_package_available(package_name): FILE: packages/opentelemetry-instrumentation-langchain/opentelemetry/instrumentation/langchain/vendor_detection.py class VendorRule (line 6) | class VendorRule: method matches (line 11) | def matches(self, class_name: str) -> bool: function _get_vendor_rules (line 18) | def _get_vendor_rules() -> List[VendorRule]: function detect_vendor_from_class (line 100) | def detect_vendor_from_class(class_name: str) -> str: FILE: packages/opentelemetry-instrumentation-langchain/tests/conftest.py function fixture_span_exporter (line 31) | def fixture_span_exporter(): function fixture_tracer_provider (line 37) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 44) | def fixture_log_exporter(): function fixture_logger_provider (line 50) | def fixture_logger_provider(log_exporter): function fixture_reader (line 57) | def fixture_reader(): function fixture_meter_provider (line 65) | def fixture_meter_provider(reader): function instrument_legacy (line 73) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 95) | def instrument_with_content(instrument_legacy, logger_provider): function instrument_with_no_content (line 112) | def instrument_with_no_content(instrument_legacy, logger_provider): function clear_exporter (line 129) | def clear_exporter(span_exporter): function environment (line 134) | def environment(): function vcr_config (line 146) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-langchain/tests/metrics/test_langchain_metrics.py function openai_client (line 16) | def openai_client(): function llm (line 21) | def llm(): function chain (line 26) | def chain(llm): function test_llm_chain_metrics (line 35) | def test_llm_chain_metrics(instrument_legacy, reader, chain): function test_llm_chain_streaming_metrics (line 80) | def test_llm_chain_streaming_metrics(instrument_legacy, reader, llm): function verify_token_metrics (line 131) | def verify_token_metrics(data_points): function verify_duration_metrics (line 141) | def verify_duration_metrics(data_points): function verify_langchain_metrics (line 148) | def verify_langchain_metrics(reader): function test_llm_chain_metrics_with_none_llm_output (line 173) | def test_llm_chain_metrics_with_none_llm_output(instrument_legacy, reade... function test_langgraph_metrics (line 197) | def test_langgraph_metrics(instrument_legacy, reader, openai_client): FILE: packages/opentelemetry-instrumentation-langchain/tests/test_agents.py function test_agents (line 25) | def test_agents(instrument_legacy, span_exporter, log_exporter): function test_agents_with_events_with_content (line 66) | def test_agents_with_events_with_content( function test_agents_with_events_with_no_content (line 161) | def test_agents_with_events_with_no_content( function assert_message_in_logs (line 245) | def assert_message_in_logs( FILE: packages/opentelemetry-instrumentation-langchain/tests/test_batch_metadata.py function test_batch_metadata_in_span_attributes (line 8) | def test_batch_metadata_in_span_attributes(instrument_legacy, span_expor... function test_async_batch_metadata_in_span_attributes (line 58) | async def test_async_batch_metadata_in_span_attributes(instrument_legacy... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_chains.py function test_sequential_chain (line 17) | def test_sequential_chain(instrument_legacy, span_exporter, log_exporter): function test_sequential_chain_with_events_with_content (line 139) | def test_sequential_chain_with_events_with_content( function test_sequential_chain_with_events_with_no_content (line 260) | def test_sequential_chain_with_events_with_no_content( function test_asequential_chain (line 362) | async def test_asequential_chain(instrument_legacy, span_exporter, log_e... function test_asequential_chain_with_events_with_content (line 448) | async def test_asequential_chain_with_events_with_content( function test_asequential_chain_with_events_with_no_content (line 533) | async def test_asequential_chain_with_events_with_no_content( function test_stream (line 601) | def test_stream(instrument_legacy, span_exporter, log_exporter): function test_stream_with_events_with_content (line 628) | def test_stream_with_events_with_content( function test_stream_with_events_with_no_content (line 671) | def test_stream_with_events_with_no_content( function test_astream (line 710) | async def test_astream(instrument_legacy, span_exporter, log_exporter): function test_astream_with_events_with_content (line 740) | async def test_astream_with_events_with_content( function test_astream_with_events_with_no_content (line 784) | async def test_astream_with_events_with_no_content( function assert_message_in_logs (line 819) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_documents_chains.py function test_sequential_chain (line 38) | def test_sequential_chain(instrument_legacy, span_exporter, log_exporter): function test_sequential_chain_with_events_with_content (line 73) | def test_sequential_chain_with_events_with_content( function test_sequential_chain_with_events_with_no_content (line 119) | def test_sequential_chain_with_events_with_no_content( function assert_message_in_logs (line 156) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_generation_role_extraction.py class TestCompletionRoleExtraction (line 17) | class TestCompletionRoleExtraction: method mock_span (line 21) | def mock_span(self): method test_chat_generation_with_ai_message_role (line 33) | def test_chat_generation_with_ai_message_role(self, mock_span, monkeyp... method test_chat_generation_with_tool_message_role (line 53) | def test_chat_generation_with_tool_message_role(self, mock_span, monke... method test_generation_without_message_defaults_to_assistant (line 75) | def test_generation_without_message_defaults_to_assistant(self, mock_s... method test_multiple_generations_with_different_roles (line 95) | def test_multiple_generations_with_different_roles(self, mock_span, mo... method test_generation_type_attribute_is_not_used (line 118) | def test_generation_type_attribute_is_not_used(self, mock_span, monkey... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_langgraph.py function test_langgraph_invoke (line 17) | def test_langgraph_invoke(instrument_legacy, span_exporter): function test_langgraph_ainvoke (line 84) | async def test_langgraph_ainvoke(instrument_legacy, span_exporter): function test_langgraph_double_invoke (line 126) | def test_langgraph_double_invoke(instrument_legacy, span_exporter): function test_langgraph_double_ainvoke (line 177) | async def test_langgraph_double_ainvoke(instrument_legacy, span_exporter): function test_nesting_of_langgraph_spans (line 223) | def test_nesting_of_langgraph_spans(instrument_legacy, span_exporter, tr... function test_context_detachment_error_handling (line 386) | def test_context_detachment_error_handling( function test_create_react_agent_span (line 527) | def test_create_react_agent_span(instrument_legacy, span_exporter): function test_retriever_span_attributes (line 561) | def test_retriever_span_attributes(instrument_legacy, span_exporter): function test_middleware_hook_span_attributes (line 586) | def test_middleware_hook_span_attributes(instrument_legacy, span_exporter): function test_langgraph_custom_name (line 606) | def test_langgraph_custom_name(instrument_legacy, span_exporter): function test_command_with_goto (line 635) | def test_command_with_goto(instrument_legacy, span_exporter): function test_send_extraction (line 679) | def test_send_extraction(): function test_create_agent_with_system_prompt (line 708) | def test_create_agent_with_system_prompt(instrument_legacy, span_exporter): function test_async_middleware_hook (line 749) | async def test_async_middleware_hook(instrument_legacy, span_exporter): function test_middleware_super_call_succeeds_despite_outer_failure (line 771) | def test_middleware_super_call_succeeds_despite_outer_failure(instrument... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_lcel.py function test_simple_lcel (line 21) | def test_simple_lcel(instrument_legacy, span_exporter, log_exporter): function test_simple_lcel_with_events_with_content (line 137) | def test_simple_lcel_with_events_with_content( function test_simple_lcel_with_events_with_no_content (line 221) | def test_simple_lcel_with_events_with_no_content( function test_async_lcel (line 292) | async def test_async_lcel(instrument_legacy, span_exporter, log_exporter): function test_async_lcel_with_events_with_content (line 349) | async def test_async_lcel_with_events_with_content( function test_async_lcel_with_events_with_no_content (line 407) | async def test_async_lcel_with_events_with_no_content( function test_invoke (line 459) | def test_invoke(instrument_legacy, span_exporter, log_exporter): function test_invoke_with_events_with_content (line 488) | def test_invoke_with_events_with_content( function test_invoke_with_events_with_no_content (line 531) | def test_invoke_with_events_with_no_content( function test_stream (line 571) | def test_stream(instrument_legacy, span_exporter, log_exporter): function test_stream_with_events_with_content (line 604) | def test_stream_with_events_with_content( function test_stream_with_events_with_no_content (line 650) | def test_stream_with_events_with_no_content( function test_async_invoke (line 695) | async def test_async_invoke(instrument_legacy, span_exporter, log_export... function test_async_invoke_with_events_with_content (line 725) | async def test_async_invoke_with_events_with_content( function test_async_invoke_with_events_with_no_content (line 769) | async def test_async_invoke_with_events_with_no_content( function test_lcel_with_datetime (line 809) | def test_lcel_with_datetime(instrument_legacy, span_exporter, log_export... function test_lcel_with_datetime_with_events_with_content (line 867) | def test_lcel_with_datetime_with_events_with_content( function test_lcel_with_datetime_with_events_with_no_content (line 943) | def test_lcel_with_datetime_with_events_with_no_content( function assert_message_in_logs (line 1004) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_llms.py function open_ai_prompt (line 42) | def open_ai_prompt(): function test_custom_llm (line 127) | def test_custom_llm(instrument_legacy, span_exporter, log_exporter): function test_custom_llm_with_events_with_content (line 170) | def test_custom_llm_with_events_with_content( function test_custom_llm_with_events_with_no_content (line 221) | def test_custom_llm_with_events_with_no_content( function test_openai (line 265) | def test_openai(instrument_legacy, span_exporter, log_exporter): function test_openai_with_events_with_content (line 318) | def test_openai_with_events_with_content( function test_openai_with_events_with_no_content (line 369) | def test_openai_with_events_with_no_content( function test_openai_functions (line 418) | def test_openai_functions(instrument_legacy, span_exporter, log_exporter): function test_openai_functions_with_events_with_content (line 506) | def test_openai_functions_with_events_with_content( function test_openai_functions_with_events_with_no_content (line 579) | def test_openai_functions_with_events_with_no_content( function test_anthropic (line 639) | def test_anthropic(instrument_legacy, span_exporter, log_exporter): function test_anthropic_with_events_with_content (line 707) | def test_anthropic_with_events_with_content( function test_anthropic_with_events_with_no_content (line 763) | def test_anthropic_with_events_with_no_content( function test_bedrock (line 815) | def test_bedrock(instrument_legacy, span_exporter, log_exporter): function test_bedrock_with_events_with_content (line 887) | def test_bedrock_with_events_with_content( function test_bedrock_with_events_with_no_content (line 950) | def test_bedrock_with_events_with_no_content( function spy_decorator (line 1008) | def spy_decorator(method_to_decorate): function assert_request_contains_tracecontext (line 1019) | def assert_request_contains_tracecontext(request: httpx.Request, expecte... function test_trace_propagation (line 1031) | def test_trace_propagation(instrument_legacy, span_exporter, log_exporte... function test_trace_propagation_with_events_with_content (line 1068) | def test_trace_propagation_with_events_with_content( function test_trace_propagation_with_events_with_no_content (line 1145) | def test_trace_propagation_with_events_with_no_content( function test_trace_propagation_stream (line 1209) | def test_trace_propagation_stream(instrument_legacy, span_exporter, log_... function test_trace_propagation_stream_with_events_with_content (line 1243) | def test_trace_propagation_stream_with_events_with_content( function test_trace_propagation_stream_with_events_with_no_content (line 1297) | def test_trace_propagation_stream_with_events_with_no_content( function test_trace_propagation_async (line 1345) | async def test_trace_propagation_async( function test_trace_propagation_async_with_events_with_content (line 1378) | async def test_trace_propagation_async_with_events_with_content( function test_trace_propagation_async_with_events_with_no_content (line 1457) | async def test_trace_propagation_async_with_events_with_no_content( function test_trace_propagation_stream_async (line 1522) | async def test_trace_propagation_stream_async( function test_trace_propagation_stream_async_with_events_with_content (line 1559) | async def test_trace_propagation_stream_async_with_events_with_content( function test_trace_propagation_stream_async_with_events_with_no_content (line 1614) | async def test_trace_propagation_stream_async_with_events_with_no_content( function assert_message_in_logs (line 1659) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_non_ascii_content.py function enable_content_tracing (line 14) | def enable_content_tracing(monkeypatch): function callback_handler (line 19) | def callback_handler(tracer_provider): function _start_chain (line 24) | def _start_chain(handler, run_id, inputs=None, parent_run_id=None, name=... function test_chain_start_preserves_non_ascii_in_entity_input (line 35) | def test_chain_start_preserves_non_ascii_in_entity_input(callback_handle... function test_chain_end_preserves_non_ascii_in_entity_output (line 48) | def test_chain_end_preserves_non_ascii_in_entity_output(callback_handler... function test_chain_with_cjk_characters (line 61) | def test_chain_with_cjk_characters(callback_handler, span_exporter): function test_tool_start_preserves_non_ascii_in_entity_input (line 78) | def test_tool_start_preserves_non_ascii_in_entity_input(callback_handler... function test_tool_end_preserves_non_ascii_in_entity_output (line 100) | def test_tool_end_preserves_non_ascii_in_entity_output(callback_handler,... function test_tool_with_arabic_characters (line 122) | def test_tool_with_arabic_characters(callback_handler, span_exporter): function test_chain_with_mixed_ascii_and_non_ascii (line 148) | def test_chain_with_mixed_ascii_and_non_ascii(callback_handler, span_exp... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_structured_output.py class FoodAnalysis (line 13) | class FoodAnalysis(BaseModel): function test_structured_output (line 21) | def test_structured_output(instrument_legacy, span_exporter, log_exporter): function test_structured_output_with_events_with_content (line 44) | def test_structured_output_with_events_with_content( function test_structured_output_with_events_with_no_content (line 76) | def test_structured_output_with_events_with_no_content( function assert_message_in_logs (line 105) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-langchain/tests/test_tool_call_content.py function test_assistant_message_with_tool_calls_includes_content (line 17) | def test_assistant_message_with_tool_calls_includes_content(): function test_assistant_message_with_only_tool_calls_no_content (line 98) | def test_assistant_message_with_only_tool_calls_no_content(): function test_assistant_message_with_only_content_no_tool_calls (line 136) | def test_assistant_message_with_only_content_no_tool_calls(): FILE: packages/opentelemetry-instrumentation-langchain/tests/test_tool_calls.py function food_analysis (line 21) | def food_analysis( function test_tool_calls (line 28) | def test_tool_calls(instrument_legacy, span_exporter, log_exporter): function test_tool_calls_with_events_with_content (line 81) | def test_tool_calls_with_events_with_content( function test_tool_calls_with_events_with_no_content (line 127) | def test_tool_calls_with_events_with_no_content( function test_tool_calls_with_history (line 165) | def test_tool_calls_with_history(instrument_legacy, span_exporter, log_e... function test_tool_calls_with_history_with_events_with_content (line 278) | def test_tool_calls_with_history_with_events_with_content( function test_tool_calls_with_history_with_events_with_no_content (line 377) | def test_tool_calls_with_history_with_events_with_no_content( function test_tool_calls_anthropic_text_block (line 458) | def test_tool_calls_anthropic_text_block( function test_tool_calls_anthropic_text_block_with_events_with_content (line 538) | def test_tool_calls_anthropic_text_block_with_events_with_content( function test_tool_calls_anthropic_text_block_with_events_with_no_content (line 598) | def test_tool_calls_anthropic_text_block_with_events_with_no_content( function test_tool_calls_anthropic_text_block_and_history (line 649) | def test_tool_calls_anthropic_text_block_and_history( function test_tool_calls_anthropic_text_block_and_history_with_events_with_content (line 781) | def test_tool_calls_anthropic_text_block_and_history_with_events_with_co... function test_tool_message_with_tool_call_id (line 887) | def test_tool_message_with_tool_call_id(instrument_legacy, span_exporter... function test_tool_calls_anthropic_text_block_and_history_with_events_with_no_content (line 932) | def test_tool_calls_anthropic_text_block_and_history_with_events_with_no... function test_parallel_tool_calls (line 1027) | def test_parallel_tool_calls(instrument_legacy, span_exporter, log_expor... function test_parallel_tool_calls_with_events_with_content (line 1112) | def test_parallel_tool_calls_with_events_with_content( function test_parallel_tool_calls_with_events_with_no_content (line 1175) | def test_parallel_tool_calls_with_events_with_no_content( function assert_message_in_logs (line 1227) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/__init__.py class LlamaIndexInstrumentor (line 49) | class LlamaIndexInstrumentor(BaseInstrumentor): method __init__ (line 52) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 57) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 60) | def _instrument(self, **kwargs): method _uninstrument (line 69) | def _uninstrument(self, **kwargs): method apply_instrumentation (line 74) | def apply_instrumentation(name, **kwargs): class LlamaIndexInstrumentorCore (line 103) | class LlamaIndexInstrumentorCore(BaseInstrumentor): method __init__ (line 106) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 110) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 113) | def _instrument(self, **kwargs): method _uninstrument (line 116) | def _uninstrument(self, **kwargs): class LlamaIndexInstrumentorFull (line 120) | class LlamaIndexInstrumentorFull(BaseInstrumentor): method __init__ (line 123) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 127) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 130) | def _instrument(self, **kwargs): method _uninstrument (line 133) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/base_agent_instrumentor.py class BaseAgentInstrumentor (line 28) | class BaseAgentInstrumentor: method __init__ (line 29) | def __init__(self, tracer): method instrument (line 32) | def instrument(self): method _instrument_module (line 42) | def _instrument_module(self, module_name, class_name): function query_wrapper (line 52) | def query_wrapper(tracer, wrapped, instance, args, kwargs): function aquery_wrapper (line 68) | async def aquery_wrapper(tracer, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/base_embedding_instrumentor.py class BaseEmbeddingInstrumentor (line 19) | class BaseEmbeddingInstrumentor: method __init__ (line 20) | def __init__(self, tracer): method instrument (line 23) | def instrument(self): method _instrument_module (line 32) | def _instrument_module(self, module_name): function get_query_embedding_wrapper (line 46) | def get_query_embedding_wrapper(tracer, wrapped, instance, args, kwargs): function aget_query_embedding_wrapper (line 58) | async def aget_query_embedding_wrapper(tracer, wrapped, instance, args, ... FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/base_retriever_instrumentor.py class BaseRetrieverInstrumentor (line 22) | class BaseRetrieverInstrumentor: method __init__ (line 23) | def __init__(self, tracer): method instrument (line 26) | def instrument(self): method _instrument_module (line 35) | def _instrument_module(self, module_name): function retrieve_wrapper (line 45) | def retrieve_wrapper(tracer, wrapped, instance, args, kwargs): function aretrieve_wrapper (line 60) | async def aretrieve_wrapper(tracer, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/base_synthesizer_instrumentor.py class BaseSynthesizerInstrumentor (line 21) | class BaseSynthesizerInstrumentor: method __init__ (line 22) | def __init__(self, tracer): method instrument (line 25) | def instrument(self): method _instrument_module (line 34) | def _instrument_module(self, module_name): function synthesize_wrapper (line 44) | def synthesize_wrapper(tracer, wrapped, instance, args, kwargs): function asynthesize_wrapper (line 59) | async def asynthesize_wrapper(tracer, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/base_tool_instrumentor.py class BaseToolInstrumentor (line 30) | class BaseToolInstrumentor: method __init__ (line 31) | def __init__(self, tracer): method instrument (line 34) | def instrument(self): method _instrument_module (line 44) | def _instrument_module(self, module_name, class_name): function query_wrapper (line 54) | def query_wrapper(tracer, wrapped, instance, args, kwargs): function aquery_wrapper (line 70) | async def aquery_wrapper(tracer, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/config.py class Config (line 6) | class Config: FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/custom_llm_instrumentor.py class CustomLLMInstrumentor (line 33) | class CustomLLMInstrumentor: method __init__ (line 34) | def __init__(self, tracer): method instrument (line 37) | def instrument(self): method unistrument (line 67) | def unistrument(self): function _set_span_attribute (line 71) | def _set_span_attribute(span, name, value): function chat_wrapper (line 79) | def chat_wrapper(tracer, wrapped, instance: CustomLLM, args, kwargs): function achat_wrapper (line 96) | async def achat_wrapper(tracer, wrapped, instance: CustomLLM, args, kwar... function complete_wrapper (line 113) | def complete_wrapper(tracer, wrapped, instance: CustomLLM, args, kwargs): function acomplete_wrapper (line 130) | async def acomplete_wrapper(tracer, wrapped, instance: CustomLLM, args, ... function _handle_request (line 147) | def _handle_request(span, llm_request_type, args, kwargs, instance: Cust... function _handle_response (line 175) | def _handle_response(span, llm_request_type, instance, response): function snake_case_class_name (line 189) | def snake_case_class_name(instance): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/dispatcher_wrapper.py function instrument_with_dispatcher (line 73) | def instrument_with_dispatcher(tracer: Tracer): class SpanHolder (line 81) | class SpanHolder: method process_event (line 91) | def process_event(self, event: BaseEvent) -> List["SpanHolder"]: method notify_parent (line 100) | def notify_parent(self) -> List["SpanHolder"]: method end (line 106) | def end(self, should_detach_context: bool = True): method update_span_for_event (line 117) | def update_span_for_event(self, event: BaseEvent): method _ (line 121) | def _(self, event: LLMChatStartEvent): method _ (line 129) | def _(self, event: LLMChatEndEvent): method _ (line 137) | def _(self, event: LLMPredictEndEvent): method _ (line 142) | def _(self, event: EmbeddingStartEvent): method _ (line 146) | def _(self, event: ReRankStartEvent): method _ (line 154) | def _(self, event: AgentToolCallEvent): class OpenLLMetrySpanHandler (line 158) | class OpenLLMetrySpanHandler(BaseSpanHandler[SpanHolder]): method __init__ (line 162) | def __init__(self, tracer: Tracer): method new_span (line 166) | def new_span( method prepare_to_exit_span (line 248) | def prepare_to_exit_span( method prepare_to_drop_span (line 284) | def prepare_to_drop_span( class OpenLLMetryEventHandler (line 295) | class OpenLLMetryEventHandler(BaseEventHandler): method __init__ (line 298) | def __init__(self, span_handler: OpenLLMetrySpanHandler): method handle (line 302) | def handle(self, event: BaseEvent, **kwargs) -> Any: FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/event_emitter.py class Roles (line 27) | class Roles(Enum): function emit_chat_message_events (line 41) | def emit_chat_message_events(event: LLMChatStartEvent): function emit_chat_response_events (line 46) | def emit_chat_response_events(event: LLMChatEndEvent): function emit_rerank_message_event (line 62) | def emit_rerank_message_event(event: ReRankStartEvent): function emit_message_event (line 70) | def emit_message_event(*, content, role: str): function emit_choice_event (line 74) | def emit_choice_event( function emit_event (line 90) | def emit_event(event: Union[MessageEvent, ChoiceEvent]) -> None: function _emit_message_event (line 108) | def _emit_message_event(event: MessageEvent) -> None: function _emit_choice_event (line 140) | def _emit_choice_event(event: ChoiceEvent) -> None: FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/llamaparse_instrumentor.py class LlamaParseInstrumentor (line 16) | class LlamaParseInstrumentor: method __init__ (line 17) | def __init__(self, tracer): method instrument (line 20) | def instrument(self): function get_json_wrapper (line 45) | def get_json_wrapper(tracer, wrapped, instance, args, kwargs): function aget_json_wrapper (line 60) | async def aget_json_wrapper(tracer, wrapped, instance, args, kwargs): function get_images_wrapper (line 77) | def get_images_wrapper(tracer, wrapped, instance, args, kwargs): function aget_images_wrapper (line 92) | async def aget_images_wrapper(tracer, wrapped, instance, args, kwargs): function get_charts_wrapper (line 109) | def get_charts_wrapper(tracer, wrapped, instance, args, kwargs): function aget_charts_wrapper (line 124) | async def aget_charts_wrapper(tracer, wrapped, instance, args, kwargs): function load_data_wrapper (line 141) | def load_data_wrapper(tracer, wrapped, instance, args, kwargs): function aload_data_wrapper (line 156) | async def aload_data_wrapper(tracer, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/query_pipeline_instrumentor.py class QueryPipelineInstrumentor (line 21) | class QueryPipelineInstrumentor: method __init__ (line 22) | def __init__(self, tracer): method instrument (line 25) | def instrument(self): method _instrument_module (line 34) | def _instrument_module(self, module_name): function set_workflow_context (line 43) | def set_workflow_context(): function run_wrapper (line 48) | def run_wrapper(tracer, wrapped, instance, args, kwargs): function arun_wrapper (line 65) | async def arun_wrapper(tracer, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/retriever_query_engine_instrumentor.py class RetrieverQueryEngineInstrumentor (line 22) | class RetrieverQueryEngineInstrumentor: method __init__ (line 23) | def __init__(self, tracer): method instrument (line 26) | def instrument(self): method _instrument_module (line 35) | def _instrument_module(self, module_name): function set_workflow_context (line 44) | def set_workflow_context(): function query_wrapper (line 49) | def query_wrapper(tracer, wrapped, instance, args, kwargs): function aquery_wrapper (line 66) | async def aquery_wrapper(tracer, wrapped, instance, args, kwargs): FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/span_utils.py function set_llm_chat_request (line 16) | def set_llm_chat_request(event, span) -> None: function set_llm_chat_request_model_attributes (line 31) | def set_llm_chat_request_model_attributes(event, span): function set_llm_chat_response (line 49) | def set_llm_chat_response(event, span) -> None: function set_llm_chat_response_model_attributes (line 73) | def set_llm_chat_response_model_attributes(event, span): function set_llm_predict_response (line 155) | def set_llm_predict_response(event, span) -> None: function set_embedding (line 168) | def set_embedding(event, span) -> None: function set_rerank (line 177) | def set_rerank(event, span) -> None: function set_rerank_model_attributes (line 188) | def set_rerank_model_attributes(event, span): function set_tool (line 202) | def set_tool(event, span) -> None: FILE: packages/opentelemetry-instrumentation-llamaindex/opentelemetry/instrumentation/llamaindex/utils.py function _with_tracer_wrapper (line 16) | def _with_tracer_wrapper(func): function start_as_current_span_async (line 27) | async def start_as_current_span_async(tracer, *args, **kwargs): function should_send_prompts (line 32) | def should_send_prompts(): function dont_throw (line 38) | def dont_throw(func): class JSONEncoder (line 63) | class JSONEncoder(json.JSONEncoder): method default (line 64) | def default(self, o): function process_request (line 75) | def process_request(span, args, kwargs): function process_response (line 84) | def process_response(span, res): function is_role_valid (line 92) | def is_role_valid(role: str) -> bool: function should_emit_events (line 96) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-llamaindex/tests/conftest.py function fixture_span_exporter (line 26) | def fixture_span_exporter(): function fixture_tracer_provider (line 32) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 39) | def fixture_log_exporter(): function fixture_logger_provider (line 45) | def fixture_logger_provider(log_exporter): function instrument_legacy (line 52) | def instrument_legacy(tracer_provider): function instrument_with_content (line 72) | def instrument_with_content(instrument_legacy, logger_provider): function instrument_with_no_content (line 89) | def instrument_with_no_content(instrument_legacy, logger_provider): function clear_exporter (line 106) | def clear_exporter(span_exporter): function environment (line 111) | def environment(): function vcr_config (line 122) | def vcr_config(): function pytest_collection_modifyitems (line 129) | def pytest_collection_modifyitems(items): FILE: packages/opentelemetry-instrumentation-llamaindex/tests/test_agents.py function make_sql_table (line 15) | def make_sql_table(): function test_agents_and_tools (line 41) | async def test_agents_and_tools(instrument_legacy, span_exporter, log_ex... function test_agent_with_multiple_tools (line 122) | async def test_agent_with_multiple_tools( FILE: packages/opentelemetry-instrumentation-llamaindex/tests/test_chroma_vector_store.py function test_rag_with_chroma (line 19) | def test_rag_with_chroma(instrument_legacy, span_exporter): FILE: packages/opentelemetry-instrumentation-llamaindex/tests/test_instrumentation.py function test_instrumentation_llamaindex (line 4) | def test_instrumentation_llamaindex(): function test_instrumentation_llamaindex_core (line 17) | def test_instrumentation_llamaindex_core(monkeypatch): FILE: packages/opentelemetry-instrumentation-llamaindex/tests/test_llamaparse.py function test_llamaparse_load_data_instrumentation (line 13) | def test_llamaparse_load_data_instrumentation(instrument_legacy, span_ex... function test_llamaparse_aload_data_instrumentation (line 36) | async def test_llamaparse_aload_data_instrumentation(instrument_legacy, ... function test_llamaparse_api_methods_exist (line 57) | def test_llamaparse_api_methods_exist(): function test_llamaparse_parse_methods_exist (line 76) | def test_llamaparse_parse_methods_exist(): FILE: packages/opentelemetry-instrumentation-llamaindex/tests/test_structured_llm.py class Invoice (line 8) | class Invoice(BaseModel): function test_structured_llm_model_attributes (line 17) | def test_structured_llm_model_attributes(instrument_with_content, span_e... function test_structured_llm_achat_model_attributes (line 63) | async def test_structured_llm_achat_model_attributes( FILE: packages/opentelemetry-instrumentation-marqo/opentelemetry/instrumentation/marqo/__init__.py class MarqoInstrumentor (line 44) | class MarqoInstrumentor(BaseInstrumentor): method __init__ (line 47) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 51) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 54) | def _instrument(self, **kwargs): method _uninstrument (line 68) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-marqo/opentelemetry/instrumentation/marqo/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-marqo/opentelemetry/instrumentation/marqo/utils.py function dont_throw (line 6) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-marqo/opentelemetry/instrumentation/marqo/wrapper.py function _with_tracer_wrapper (line 12) | def _with_tracer_wrapper(func): function _set_span_attribute (line 24) | def _set_span_attribute(span, name, value): function _wrap (line 32) | def _wrap(tracer, to_wrap, wrapped, instance, args, kwargs): function count_or_none (line 60) | def count_or_none(obj): function _set_add_documents_attributes (line 68) | def _set_add_documents_attributes(span, kwargs): function _set_search_attributes (line 84) | def _set_search_attributes(span, kwargs): function _set_delete_documents_attributes (line 89) | def _set_delete_documents_attributes(span, kwargs): function _set_search_result_attributes (line 96) | def _set_search_result_attributes(span, kwargs): function _set_delete_documents_response_attributes (line 107) | def _set_delete_documents_response_attributes(span, kwargs): FILE: packages/opentelemetry-instrumentation-marqo/tests/conftest.py function exporter (line 14) | def exporter(): function clear_exporter (line 28) | def clear_exporter(exporter): FILE: packages/opentelemetry-instrumentation-marqo/tests/test_query.py function collection (line 10) | def collection(): function add_documents (line 16) | def add_documents(collection): function test_marqo_add_documents (line 35) | def test_marqo_add_documents(exporter, collection): function test_marqo_search (line 47) | def test_marqo_search(exporter, collection): function test_marqo_delete_documents (line 83) | def test_marqo_delete_documents(exporter, collection): FILE: packages/opentelemetry-instrumentation-mcp/opentelemetry/instrumentation/mcp/fastmcp_instrumentation.py class FastMCPInstrumentor (line 15) | class FastMCPInstrumentor: method __init__ (line 18) | def __init__(self): method instrument (line 22) | def instrument(self, tracer: Tracer): method uninstrument (line 42) | def uninstrument(self): method _fastmcp_init_wrapper (line 48) | def _fastmcp_init_wrapper(self): method _fastmcp_tool_wrapper (line 63) | def _fastmcp_tool_wrapper(self): method _should_send_prompts (line 156) | def _should_send_prompts(self): method _get_json_encoder (line 162) | def _get_json_encoder(self): method _truncate_json_if_needed (line 166) | def _truncate_json_if_needed(self, json_str: str) -> str: FILE: packages/opentelemetry-instrumentation-mcp/opentelemetry/instrumentation/mcp/instrumentation.py class McpInstrumentor (line 26) | class McpInstrumentor(BaseInstrumentor): method __init__ (line 27) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 32) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 35) | def _instrument(self, **kwargs): method _uninstrument (line 116) | def _uninstrument(self, **kwargs): method _transport_wrapper (line 121) | def _transport_wrapper(self, tracer): method _base_session_init_wrapper (line 159) | def _base_session_init_wrapper(self, tracer): method patch_mcp_client (line 180) | def patch_mcp_client(self, tracer: Tracer): method _fastmcp_client_enter_wrapper (line 213) | def _fastmcp_client_enter_wrapper(self, tracer): method _fastmcp_client_exit_wrapper (line 241) | def _fastmcp_client_exit_wrapper(self, tracer): method _handle_tool_call (line 269) | async def _handle_tool_call(self, tracer, method, params, args, kwargs... method _handle_mcp_method (line 308) | async def _handle_mcp_method(self, tracer, method, args, kwargs, wrapp... method _execute_and_handle_result (line 318) | async def _execute_and_handle_result( method _extract_clean_input (line 357) | def _extract_clean_input(self, method: str, params: Any) -> dict: method _extract_clean_output (line 399) | def _extract_clean_output(self, method: str, result: Any) -> dict: function serialize (line 450) | def serialize(request, depth=0, max_depth=4): class InstrumentedStreamReader (line 492) | class InstrumentedStreamReader(ObjectProxy): # type: ignore method __init__ (line 494) | def __init__(self, wrapped, tracer): method __aenter__ (line 498) | async def __aenter__(self) -> Any: method __aexit__ (line 501) | async def __aexit__(self, exc_type: Any, exc_value: Any, traceback: An... method __aiter__ (line 505) | async def __aiter__(self) -> AsyncGenerator[Any, None]: class InstrumentedStreamWriter (line 538) | class InstrumentedStreamWriter(ObjectProxy): # type: ignore method __init__ (line 540) | def __init__(self, wrapped, tracer): method __aenter__ (line 544) | async def __aenter__(self) -> Any: method __aexit__ (line 547) | async def __aexit__(self, exc_type: Any, exc_value: Any, traceback: An... method send (line 551) | async def send(self, item: Any) -> Any: class ItemWithContext (line 593) | class ItemWithContext: class ContextSavingStreamWriter (line 598) | class ContextSavingStreamWriter(ObjectProxy): # type: ignore method __init__ (line 600) | def __init__(self, wrapped, tracer): method __aenter__ (line 604) | async def __aenter__(self) -> Any: method __aexit__ (line 607) | async def __aexit__(self, exc_type: Any, exc_value: Any, traceback: An... method send (line 611) | async def send(self, item: Any) -> Any: class ContextAttachingStreamReader (line 617) | class ContextAttachingStreamReader(ObjectProxy): # type: ignore method __init__ (line 619) | def __init__(self, wrapped, tracer): method __aenter__ (line 623) | async def __aenter__(self) -> Any: method __aexit__ (line 626) | async def __aexit__(self, exc_type: Any, exc_value: Any, traceback: An... method __aiter__ (line 629) | async def __aiter__(self) -> AsyncGenerator[Any, None]: FILE: packages/opentelemetry-instrumentation-mcp/opentelemetry/instrumentation/mcp/utils.py class Config (line 8) | class Config: function dont_throw (line 12) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-mcp/tests/conftest.py function fixture_span_exporter (line 11) | def fixture_span_exporter(): function fixture_tracer_provider (line 17) | def fixture_tracer_provider(span_exporter): function instrument_mcp (line 25) | def instrument_mcp(tracer_provider, span_exporter): FILE: packages/opentelemetry-instrumentation-mcp/tests/test_fastmcp.py function test_fastmcp_instrumentor (line 1) | async def test_fastmcp_instrumentor(span_exporter, tracer_provider) -> N... FILE: packages/opentelemetry-instrumentation-mcp/tests/test_fastmcp_attributes.py function test_fastmcp_comprehensive_attributes (line 6) | async def test_fastmcp_comprehensive_attributes(span_exporter, tracer_pr... function test_fastmcp_error_handling (line 126) | async def test_fastmcp_error_handling(span_exporter, tracer_provider) ->... FILE: packages/opentelemetry-instrumentation-mcp/tests/test_fastmcp_server_span.py function test_fastmcp_server_mcp_parent_span (line 1) | async def test_fastmcp_server_mcp_parent_span(span_exporter, tracer_prov... FILE: packages/opentelemetry-instrumentation-milvus/opentelemetry/instrumentation/milvus/__init__.py class MilvusInstrumentor (line 77) | class MilvusInstrumentor(BaseInstrumentor): method __init__ (line 80) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 84) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 87) | def _instrument(self, **kwargs): method _uninstrument (line 147) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-milvus/opentelemetry/instrumentation/milvus/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-milvus/opentelemetry/instrumentation/milvus/utils.py function dont_throw (line 7) | def dont_throw(func): function is_metrics_enabled (line 32) | def is_metrics_enabled() -> bool: FILE: packages/opentelemetry-instrumentation-milvus/opentelemetry/instrumentation/milvus/wrapper.py function _with_tracer_wrapper (line 24) | def _with_tracer_wrapper(func): function _set_span_attribute (line 53) | def _set_span_attribute(span, name, value): function _wrap (line 61) | def _wrap( function _encode_filter (line 140) | def _encode_filter(_filter): function _encode_partition_name (line 148) | def _encode_partition_name(partition_name): function _encode_include (line 156) | def _encode_include(include): function count_or_none (line 164) | def count_or_none(obj): function _set_response_attributes (line 172) | def _set_response_attributes( function _set_create_collection_attributes (line 196) | def _set_create_collection_attributes(span, kwargs): function _set_insert_attributes (line 235) | def _set_insert_attributes(span, kwargs): function _set_get_attributes (line 257) | def _set_get_attributes(span, kwargs): function _set_search_attributes (line 280) | def _set_search_attributes(span, kwargs): function _set_hybrid_search_attributes (line 332) | def _set_hybrid_search_attributes(span, kwargs): function _set_query_attributes (line 384) | def _set_query_attributes(span, kwargs): function _add_query_result_events (line 413) | def _add_query_result_events(span, kwargs): function _add_search_result_events (line 419) | def _add_search_result_events(span, kwargs): function _set_upsert_attributes (line 472) | def _set_upsert_attributes(span, kwargs): function _set_delete_attributes (line 496) | def _set_delete_attributes(span, kwargs): function set_search_response (line 523) | def set_search_response(distance_metric, shared_attributes, response): FILE: packages/opentelemetry-instrumentation-milvus/tests/conftest.py function exporter (line 20) | def exporter(): function clear_exporter (line 32) | def clear_exporter(exporter): function reader (line 37) | def reader(): function meter_provider (line 45) | def meter_provider(reader): function instrument (line 54) | def instrument(exporter, reader, meter_provider): function clear_exporter_reader (line 64) | def clear_exporter_reader(exporter, reader): FILE: packages/opentelemetry-instrumentation-milvus/tests/test_error.py function collection (line 13) | def collection(): function insert_data (line 20) | def insert_data(collection): function test_milvus_single_vector_search (line 67) | def test_milvus_single_vector_search(exporter, collection): FILE: packages/opentelemetry-instrumentation-milvus/tests/test_hybrid_search.py function collection (line 12) | def collection(): function insert_data (line 50) | def insert_data(collection): function test_hybrid_search_with_rrf (line 76) | def test_hybrid_search_with_rrf(exporter, collection): FILE: packages/opentelemetry-instrumentation-milvus/tests/test_query.py function collection (line 14) | def collection(): function insert_data (line 21) | def insert_data(collection): function test_milvus_insert (line 68) | def test_milvus_insert(exporter, collection, reader): function test_milvus_upsert (line 85) | def test_milvus_upsert(exporter, collection, reader): function test_milvus_query_equal (line 107) | def test_milvus_query_equal(exporter, collection, reader): function test_milvus_query_like (line 140) | def test_milvus_query_like(exporter, collection): function test_milvus_query_or (line 171) | def test_milvus_query_or(exporter, collection): function test_milvus_query_and (line 202) | def test_milvus_query_and(exporter, collection): function test_milvus_get_collection (line 233) | def test_milvus_get_collection(exporter, collection): function test_milvus_delete_collection (line 254) | def test_milvus_delete_collection(exporter, collection, reader): FILE: packages/opentelemetry-instrumentation-milvus/tests/test_search.py function collection (line 14) | def collection(): function insert_data (line 21) | def insert_data(collection): function test_milvus_single_vector_search (line 68) | def test_milvus_single_vector_search(exporter, collection, reader): function test_milvus_multiple_vector_search (line 134) | def test_milvus_multiple_vector_search(exporter, collection): FILE: packages/opentelemetry-instrumentation-milvus/tests/utils.py function find_metrics_by_name (line 1) | def find_metrics_by_name(metrics_data, target_name): FILE: packages/opentelemetry-instrumentation-mistralai/opentelemetry/instrumentation/mistralai/__init__.py function _set_span_attribute (line 74) | def _set_span_attribute(span, name, value): function _set_input_attributes (line 82) | def _set_input_attributes(span, llm_request_type, to_wrap, kwargs): function _set_model_input_attributes (line 124) | def _set_model_input_attributes(span, to_wrap, kwargs): function _set_response_attributes (line 136) | def _set_response_attributes(span, llm_request_type, response): function _set_model_response_attributes (line 165) | def _set_model_response_attributes(span, llm_request_type, response): function _accumulate_streaming_response (line 200) | def _accumulate_streaming_response(span, event_logger, llm_request_type,... function _aaccumulate_streaming_response (line 242) | async def _aaccumulate_streaming_response( function _with_tracer_wrapper (line 286) | def _with_tracer_wrapper(func): function _llm_request_type_by_method (line 298) | def _llm_request_type_by_method(method_name): function _emit_message_events (line 308) | def _emit_message_events(method_wrapped: str, args, kwargs, event_logger): function _emit_choice_events (line 333) | def _emit_choice_events( function _handle_input (line 367) | def _handle_input(span, event_logger, args, kwargs, to_wrap): function _handle_response (line 379) | def _handle_response(span, event_logger, llm_request_type, response): function _wrap (line 389) | def _wrap( function _awrap (line 435) | async def _awrap( class MistralAiInstrumentor (line 483) | class MistralAiInstrumentor(BaseInstrumentor): method __init__ (line 486) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 491) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 494) | def _instrument(self, **kwargs): method _uninstrument (line 521) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-mistralai/opentelemetry/instrumentation/mistralai/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-mistralai/opentelemetry/instrumentation/mistralai/event_emitter.py class Roles (line 19) | class Roles(Enum): function emit_event (line 33) | def emit_event( function _emit_message_event (line 53) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 85) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-mistralai/opentelemetry/instrumentation/mistralai/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-mistralai/opentelemetry/instrumentation/mistralai/utils.py function should_send_prompts (line 11) | def should_send_prompts(): function dont_throw (line 17) | def dont_throw(func): function should_emit_events (line 42) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-mistralai/tests/conftest.py function fixture_span_exporter (line 22) | def fixture_span_exporter(): function fixture_tracer_provider (line 28) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 35) | def fixture_log_exporter(): function fixture_logger_provider (line 41) | def fixture_logger_provider(log_exporter): function mistralai_client (line 48) | def mistralai_client(): function mistralai_async_client (line 53) | def mistralai_async_client(): function instrument_legacy (line 58) | def instrument_legacy(tracer_provider): function instrument_with_content (line 70) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 86) | def instrument_with_no_content(tracer_provider, logger_provider): function environment (line 102) | def environment(): function vcr_config (line 108) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-mistralai/tests/test_chat.py function test_mistralai_chat_legacy (line 11) | def test_mistralai_chat_legacy( function test_mistralai_chat_with_events_with_content (line 57) | def test_mistralai_chat_with_events_with_content( function test_mistralai_chat_with_events_with_no_content (line 113) | def test_mistralai_chat_with_events_with_no_content( function test_mistralai_streaming_chat_legacy (line 162) | def test_mistralai_streaming_chat_legacy( function test_mistralai_streaming_chat_with_events_with_content (line 212) | def test_mistralai_streaming_chat_with_events_with_content( function test_mistralai_streaming_chat_with_events_with_no_content (line 271) | def test_mistralai_streaming_chat_with_events_with_no_content( function test_mistralai_async_chat_legacy (line 325) | async def test_mistralai_async_chat_legacy( function test_mistralai_async_chat_with_events_with_content (line 373) | async def test_mistralai_async_chat_with_events_with_content( function test_mistralai_async_chat_with_events_with_no_content (line 435) | async def test_mistralai_async_chat_with_events_with_no_content( function test_mistralai_async_streaming_chat_legacy (line 486) | async def test_mistralai_async_streaming_chat_legacy( function test_mistralai_async_streaming_chat_with_events_with_content (line 534) | async def test_mistralai_async_streaming_chat_with_events_with_content( function test_mistralai_async_streaming_chat_with_events_with_no_content (line 593) | async def test_mistralai_async_streaming_chat_with_events_with_no_content( function assert_message_in_logs (line 642) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-mistralai/tests/test_embeddings.py function test_mistral_embeddings_legacy (line 10) | def test_mistral_embeddings_legacy( function test_mistral_embeddings_with_events_with_content (line 46) | def test_mistral_embeddings_with_events_with_content( function test_mistral_embeddings_with_events_with_no_content (line 89) | def test_mistral_embeddings_with_events_with_no_content( function test_mistral_async_embeddings_legacy (line 133) | async def test_mistral_async_embeddings_legacy( function test_mistral_async_embeddings_with_events_with_content (line 170) | async def test_mistral_async_embeddings_with_events_with_content( function test_mistral_async_embeddings_with_events_with_no_content (line 227) | async def test_mistral_async_embeddings_with_events_with_no_content( function assert_message_in_logs (line 282) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-ollama/opentelemetry/instrumentation/ollama/__init__.py function _sanitize_copy_messages (line 66) | def _sanitize_copy_messages(wrapped, instance, args, kwargs): function _accumulate_streaming_response (line 89) | def _accumulate_streaming_response( function _aaccumulate_streaming_response (line 153) | async def _aaccumulate_streaming_response( function _with_tracer_wrapper (line 217) | def _with_tracer_wrapper(func): function _llm_request_type_by_method (line 249) | def _llm_request_type_by_method(method_name): function _handle_input (line 261) | def _handle_input(span, event_logger, llm_request_type, args, kwargs): function _handle_response (line 270) | def _handle_response(span, event_logger, llm_request_type, token_histogr... function _wrap (line 280) | def _wrap( function _awrap (line 354) | async def _awrap( function _build_metrics (line 427) | def _build_metrics(meter: Meter): function is_metrics_collection_enabled (line 455) | def is_metrics_collection_enabled() -> bool: class OllamaInstrumentor (line 459) | class OllamaInstrumentor(BaseInstrumentor): method __init__ (line 462) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 467) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 470) | def _instrument(self, **kwargs): method _uninstrument (line 541) | def _uninstrument(self, **kwargs): function _dispatch_wrap (line 555) | def _dispatch_wrap( function _dispatch_awrap (line 584) | def _dispatch_awrap( FILE: packages/opentelemetry-instrumentation-ollama/opentelemetry/instrumentation/ollama/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-ollama/opentelemetry/instrumentation/ollama/event_emitter.py class Roles (line 25) | class Roles(Enum): function emit_message_events (line 40) | def emit_message_events(llm_request_type, args, kwargs, event_logger): function emit_choice_events (line 82) | def emit_choice_events(llm_request_type, response: dict, event_logger): function emit_event (line 121) | def emit_event(event: Union[MessageEvent, ChoiceEvent], event_logger) ->... function _emit_message_event (line 139) | def _emit_message_event(event: MessageEvent, event_logger) -> None: function _emit_choice_event (line 171) | def _emit_choice_event(event: ChoiceEvent, event_logger) -> None: FILE: packages/opentelemetry-instrumentation-ollama/opentelemetry/instrumentation/ollama/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-ollama/opentelemetry/instrumentation/ollama/span_utils.py function _set_span_attribute (line 13) | def _set_span_attribute(span, name, value): function set_input_attributes (line 21) | def set_input_attributes(span, llm_request_type, kwargs): function set_model_input_attributes (line 51) | def set_model_input_attributes(span, kwargs): function set_response_attributes (line 62) | def set_response_attributes(span, token_histogram, llm_request_type, res... function set_model_response_attributes (line 88) | def set_model_response_attributes(span, token_histogram, llm_request_typ... function set_tools_attributes (line 143) | def set_tools_attributes(span, tools): function _set_prompts (line 160) | def _set_prompts(span, messages): FILE: packages/opentelemetry-instrumentation-ollama/opentelemetry/instrumentation/ollama/utils.py function should_send_prompts (line 11) | def should_send_prompts(): function dont_throw (line 17) | def dont_throw(func): function should_emit_events (line 42) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-ollama/tests/conftest.py function fixture_span_exporter (line 28) | def fixture_span_exporter(): function fixture_tracer_provider (line 34) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 41) | def fixture_log_exporter(): function fixture_logger_provider (line 47) | def fixture_logger_provider(log_exporter): function fixture_reader (line 54) | def fixture_reader(): function fixture_meter_provider (line 62) | def fixture_meter_provider(reader): function ollama_client (line 70) | def ollama_client(): function ollama_client_async (line 75) | def ollama_client_async(): function instrument_legacy (line 80) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 93) | def instrument_with_content( function instrument_with_no_content (line 112) | def instrument_with_no_content( FILE: packages/opentelemetry-instrumentation-ollama/tests/test_chat.py function test_ollama_chat_legacy (line 15) | def test_ollama_chat_legacy( function test_ollama_chat_with_events_with_content (line 57) | def test_ollama_chat_with_events_with_content( function test_ollama_chat_with_events_with_no_content (line 105) | def test_ollama_chat_with_events_with_no_content( function test_ollama_chat_tool_calls_legacy (line 149) | def test_ollama_chat_tool_calls_legacy( function test_ollama_chat_tool_calls_with_events_with_content (line 208) | def test_ollama_chat_tool_calls_with_events_with_content( function test_ollama_chat_tool_calls_with_events_with_no_content (line 283) | def test_ollama_chat_tool_calls_with_events_with_no_content( function test_ollama_streaming_chat_legacy (line 351) | def test_ollama_streaming_chat_legacy( function test_ollama_streaming_chat_with_events_with_content (line 398) | def test_ollama_streaming_chat_with_events_with_content( function test_ollama_streaming_chat_with_events_with_no_content (line 451) | def test_ollama_streaming_chat_with_events_with_no_content( function test_ollama_async_chat_legacy (line 501) | async def test_ollama_async_chat_legacy( function test_ollama_async_chat_with_events_with_content (line 545) | async def test_ollama_async_chat_with_events_with_content( function test_ollama_async_chat_with_events_with_no_content (line 595) | async def test_ollama_async_chat_with_events_with_no_content( function test_ollama_async_streaming_chat_legacy (line 641) | async def test_ollama_async_streaming_chat_legacy( function test_ollama_async_streaming_chat_with_events_with_content (line 689) | async def test_ollama_async_streaming_chat_with_events_with_content( function test_ollama_async_streaming_chat_with_events_with_no_content (line 743) | async def test_ollama_async_streaming_chat_with_events_with_no_content( function test_token_histogram_recording (line 792) | def test_token_histogram_recording(): function assert_message_in_logs (line 820) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-ollama/tests/test_embeddings.py function test_ollama_embeddings_legacy (line 10) | def test_ollama_embeddings_legacy( function test_ollama_embeddings_with_events_with_content (line 38) | def test_ollama_embeddings_with_events_with_content( function test_ollama_embeddings_with_events_with_no_content (line 76) | def test_ollama_embeddings_with_events_with_no_content( function assert_message_in_logs (line 109) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-ollama/tests/test_generation.py function test_ollama_generation_legacy (line 10) | def test_ollama_generation_legacy( function test_ollama_generation_with_events_with_content (line 48) | def test_ollama_generation_with_events_with_content( function test_ollama_generation_with_events_with_no_content (line 92) | def test_ollama_generation_with_events_with_no_content( function test_ollama_streaming_generation_legacy (line 130) | def test_ollama_streaming_generation_legacy( function test_ollama_streaming_generation_with_events_with_content (line 172) | def test_ollama_streaming_generation_with_events_with_content( function test_ollama_streaming_generation_with_events_with_no_content (line 220) | def test_ollama_streaming_generation_with_events_with_no_content( function test_ollama_async_generation_legacy (line 265) | async def test_ollama_async_generation_legacy( function test_ollama_async_generation_with_events_with_content (line 305) | async def test_ollama_async_generation_with_events_with_content( function test_ollama_async_generation_with_events_with_no_content (line 351) | async def test_ollama_async_generation_with_events_with_no_content( function test_ollama_async_streaming_generation_legacy (line 393) | async def test_ollama_async_streaming_generation_legacy( function test_ollama_async_streaming_generation_with_events_with_content (line 437) | async def test_ollama_async_streaming_generation_with_events_with_content( function test_ollama_async_streaming_generation_with_events_with_no_content (line 487) | async def test_ollama_async_streaming_generation_with_events_with_no_con... function assert_message_in_logs (line 531) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-ollama/tests/test_ollama_metrics.py function _collect_metrics (line 13) | def _collect_metrics(reader): function test_ollama_streaming_metrics (line 26) | def test_ollama_streaming_metrics(instrument_legacy, reader): function test_ollama_streaming_time_to_generate_metrics (line 54) | def test_ollama_streaming_time_to_generate_metrics(instrument_legacy, re... function test_ollama_operation_duration_includes_model_attribute (line 78) | def test_ollama_operation_duration_includes_model_attribute(instrument_l... FILE: packages/opentelemetry-instrumentation-openai-agents/opentelemetry/instrumentation/openai_agents/__init__.py class OpenAIAgentsInstrumentor (line 15) | class OpenAIAgentsInstrumentor(BaseInstrumentor): method __init__ (line 18) | def __init__(self, *, replace_existing_processors: bool = False) -> None: method instrumentation_dependencies (line 33) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 36) | def _instrument(self, **kwargs) -> None: method _uninstrument (line 79) | def _uninstrument(self, **kwargs): function is_metrics_enabled (line 88) | def is_metrics_enabled() -> bool: function _create_metrics (line 92) | def _create_metrics(meter: Meter): FILE: packages/opentelemetry-instrumentation-openai-agents/opentelemetry/instrumentation/openai_agents/_hooks.py function _extract_prompt_attributes (line 48) | def _extract_prompt_attributes(otel_span, input_data, trace_content: bool): function _extract_response_attributes (line 177) | def _extract_response_attributes(otel_span, response, trace_content: bool): class OpenTelemetryTracingProcessor (line 313) | class OpenTelemetryTracingProcessor(TracingProcessor): method __init__ (line 321) | def __init__(self, tracer: Tracer): method on_trace_start (line 330) | def on_trace_start(self, trace): method on_trace_end (line 345) | def on_trace_end(self, trace): method on_span_start (line 354) | def on_span_start(self, span): method on_span_end (line 608) | def on_span_end(self, span): method _find_agent_span (line 781) | def _find_agent_span(self, agent_name: str): method _find_current_agent_span (line 789) | def _find_current_agent_span(self): method force_flush (line 806) | def force_flush(self): method shutdown (line 810) | def shutdown(self): FILE: packages/opentelemetry-instrumentation-openai-agents/opentelemetry/instrumentation/openai_agents/_realtime_wrappers.py function _extract_content_text (line 30) | def _extract_content_text(item_content) -> Optional[str]: function _unwrap_raw_event_data (line 50) | def _unwrap_raw_event_data(data) -> Tuple[Optional[str], Any]: function _extract_response_and_usage (line 77) | def _extract_response_and_usage(data) -> Tuple[Any, Optional[dict]]: class RealtimeTracingState (line 91) | class RealtimeTracingState: method __init__ (line 94) | def __init__(self, tracer: Tracer): method start_workflow_span (line 114) | def start_workflow_span(self, agent_name: str): method end_workflow_span (line 128) | def end_workflow_span(self, error: Optional[Exception] = None): method _get_parent_context (line 138) | def _get_parent_context(self, agent_name: Optional[str] = None): method start_agent_span (line 157) | def start_agent_span(self, agent_name: str): method end_agent_span (line 187) | def end_agent_span(self, agent_name: str, error: Optional[Exception] =... method start_tool_span (line 193) | def start_tool_span(self, tool_name: str, agent_name: Optional[str] = ... method end_tool_span (line 211) | def end_tool_span( method create_handoff_span (line 226) | def create_handoff_span(self, from_agent: str, to_agent: str): method start_audio_span (line 251) | def start_audio_span(self, item_id: str, content_index: int): method end_audio_span (line 268) | def end_audio_span(self, item_id: str, content_index: int): method record_error (line 277) | def record_error(self, error: Any): method record_prompt (line 286) | def record_prompt(self, role: str, content: str): method record_usage (line 295) | def record_usage(self, usage: Any): method record_completion (line 312) | def record_completion(self, role: str, content: str): method create_llm_span (line 322) | def create_llm_span(self, completion_content: str): method cleanup (line 399) | def cleanup(self): function wrap_realtime_session (line 423) | def wrap_realtime_session(tracer: Tracer): function unwrap_realtime_session (line 683) | def unwrap_realtime_session(): FILE: packages/opentelemetry-instrumentation-openai-agents/opentelemetry/instrumentation/openai_agents/utils.py function set_span_attribute (line 16) | def set_span_attribute(span, name, value): function _is_truthy (line 23) | def _is_truthy(value): function should_send_prompts (line 27) | def should_send_prompts() -> bool: class JSONEncoder (line 37) | class JSONEncoder(json.JSONEncoder): method default (line 38) | def default(self, o): function dont_throw (line 56) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-openai-agents/tests/conftest.py function mock_set_agent_name (line 48) | def mock_set_agent_name(): function exporter (line 55) | def exporter(): function environment (line 69) | def environment(): function clear_exporter (line 77) | def clear_exporter(exporter): function metrics_test_context (line 83) | def metrics_test_context(): function clear_metrics_test_context (line 93) | def clear_metrics_test_context(metrics_test_context): function test_agent (line 100) | def test_agent(): function function_tool_agent (line 111) | def function_tool_agent(): function web_search_tool_agent (line 128) | def web_search_tool_agent(): function handoff_agent (line 138) | def handoff_agent(): function recipe_workflow_agents (line 165) | def recipe_workflow_agents(): function vcr_config (line 285) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-openai-agents/tests/test_complete_handoff_with_tools.py function analyze_data (line 8) | async def analyze_data(data_request: str) -> str: function process_results (line 14) | async def process_results(analysis_data: str) -> str: function generate_report (line 20) | async def generate_report(processed_data: str) -> str: function workflow_agents (line 26) | def workflow_agents(): function test_router_analytics_complete_workflow (line 53) | async def test_router_analytics_complete_workflow(exporter, workflow_age... FILE: packages/opentelemetry-instrumentation-openai-agents/tests/test_openai_agents.py function mock_instrumentor (line 19) | def mock_instrumentor(): function test_dict_content_serialization (line 27) | def test_dict_content_serialization(exporter): function test_agent_spans (line 75) | def test_agent_spans(exporter, test_agent): function test_agent_with_function_tool_spans (line 143) | def test_agent_with_function_tool_spans(exporter, function_tool_agent): function test_agent_with_web_search_tool_spans (line 187) | def test_agent_with_web_search_tool_spans(exporter, web_search_tool_agent): function test_agent_with_handoff_spans (line 209) | def test_agent_with_handoff_spans(exporter, handoff_agent): function test_generate_metrics (line 233) | def test_generate_metrics(metrics_test_context, test_agent): function test_recipe_workflow_agent_handoffs_with_function_tools (line 279) | async def test_recipe_workflow_agent_handoffs_with_function_tools(export... function test_music_composer_handoff_hierarchy (line 323) | async def test_music_composer_handoff_hierarchy(exporter): function test_agent_name_propagation_to_agent_spans (line 385) | def test_agent_name_propagation_to_agent_spans(exporter, test_agent): function test_tool_call_and_result_attributes (line 409) | def test_tool_call_and_result_attributes(exporter): FILE: packages/opentelemetry-instrumentation-openai-agents/tests/test_realtime.py class MockSpanData (line 20) | class MockSpanData: method __init__ (line 23) | def __init__(self, **kwargs): class MockSpeechSpanData (line 28) | class MockSpeechSpanData(MockSpanData): method __init__ (line 31) | def __init__(self, **kwargs): class MockTranscriptionSpanData (line 36) | class MockTranscriptionSpanData(MockSpanData): method __init__ (line 39) | def __init__(self, **kwargs): class MockSpeechGroupSpanData (line 44) | class MockSpeechGroupSpanData(MockSpanData): method __init__ (line 47) | def __init__(self, **kwargs): class MockAgentSpan (line 52) | class MockAgentSpan: method __init__ (line 55) | def __init__(self, span_data, trace_id="test-trace-123", error=None): function tracer_provider_and_exporter (line 62) | def tracer_provider_and_exporter(): class TestRealtimeSpeechSpans (line 70) | class TestRealtimeSpeechSpans: method test_speech_span_start_creates_otel_span (line 73) | def test_speech_span_start_creates_otel_span(self, tracer_provider_and... method test_speech_span_captures_model_and_format (line 125) | def test_speech_span_captures_model_and_format(self, tracer_provider_a... class TestRealtimeTranscriptionSpans (line 171) | class TestRealtimeTranscriptionSpans: method test_transcription_span_start_creates_otel_span (line 174) | def test_transcription_span_start_creates_otel_span(self, tracer_provi... method test_transcription_span_captures_model_and_format (line 220) | def test_transcription_span_captures_model_and_format(self, tracer_pro... class TestRealtimeSpeechGroupSpans (line 265) | class TestRealtimeSpeechGroupSpans: method test_speech_group_span_creates_otel_span (line 268) | def test_speech_group_span_creates_otel_span(self, tracer_provider_and... class TestRealtimeErrorHandling (line 315) | class TestRealtimeErrorHandling: method test_speech_span_with_error (line 318) | def test_speech_span_with_error(self, tracer_provider_and_exporter): class TestRealtimeSpanHierarchy (line 361) | class TestRealtimeSpanHierarchy: method test_realtime_spans_nested_under_workflow (line 364) | def test_realtime_spans_nested_under_workflow(self, tracer_provider_an... FILE: packages/opentelemetry-instrumentation-openai-agents/tests/test_realtime_session.py function tracer_provider (line 16) | def tracer_provider(): function tracer (line 27) | def tracer(tracer_provider): class TestRealtimeTracingState (line 33) | class TestRealtimeTracingState: method test_start_workflow_span (line 36) | def test_start_workflow_span(self, tracer, tracer_provider): method test_end_workflow_span (line 46) | def test_end_workflow_span(self, tracer, tracer_provider): method test_start_agent_span (line 59) | def test_start_agent_span(self, tracer, tracer_provider): method test_end_agent_span (line 71) | def test_end_agent_span(self, tracer, tracer_provider): method test_start_tool_span (line 93) | def test_start_tool_span(self, tracer, tracer_provider): method test_end_tool_span_with_output (line 105) | def test_end_tool_span_with_output(self, tracer, tracer_provider): method test_create_handoff_span (line 119) | def test_create_handoff_span(self, tracer, tracer_provider): method test_start_audio_span (line 133) | def test_start_audio_span(self, tracer, tracer_provider): method test_end_audio_span (line 144) | def test_end_audio_span(self, tracer, tracer_provider): method test_record_error_on_agent_span (line 157) | def test_record_error_on_agent_span(self, tracer, tracer_provider): method test_record_prompt (line 169) | def test_record_prompt(self, tracer, tracer_provider): method test_record_completion_creates_llm_span (line 181) | def test_record_completion_creates_llm_span(self, tracer, tracer_provi... method test_multiple_llm_spans (line 207) | def test_multiple_llm_spans(self, tracer, tracer_provider): method test_cleanup_ends_all_spans (line 239) | def test_cleanup_ends_all_spans(self, tracer, tracer_provider): method test_record_usage_dict (line 258) | def test_record_usage_dict(self, tracer, tracer_provider): method test_usage_attributes_on_llm_span (line 277) | def test_usage_attributes_on_llm_span(self, tracer, tracer_provider): method test_usage_cleared_after_span (line 303) | def test_usage_cleared_after_span(self, tracer, tracer_provider): method test_duplicate_completion_ignored (line 316) | def test_duplicate_completion_ignored(self, tracer, tracer_provider): class TestRealtimeSessionWrapping (line 335) | class TestRealtimeSessionWrapping: method test_wrap_and_unwrap (line 338) | def test_wrap_and_unwrap(self, tracer): class TestSpanTiming (line 345) | class TestSpanTiming: method test_llm_span_starts_after_agent_span (line 348) | def test_llm_span_starts_after_agent_span(self, tracer, tracer_provider): method test_llm_span_ends_before_agent_span (line 367) | def test_llm_span_ends_before_agent_span(self, tracer, tracer_provider): method test_tool_span_within_agent_timeframe (line 386) | def test_tool_span_within_agent_timeframe(self, tracer, tracer_provider): method test_llm_span_has_duration (line 406) | def test_llm_span_has_duration(self, tracer, tracer_provider): class TestSpanHierarchy (line 429) | class TestSpanHierarchy: method test_tool_span_parented_under_agent (line 432) | def test_tool_span_parented_under_agent(self, tracer, tracer_provider): method test_audio_span_parented_under_current_agent (line 459) | def test_audio_span_parented_under_current_agent(self, tracer, tracer_... class TestDontThrowWraps (line 481) | class TestDontThrowWraps: method test_sync_function_preserves_name (line 484) | def test_sync_function_preserves_name(self): method test_async_function_preserves_name (line 494) | def test_async_function_preserves_name(self): method test_sync_function_preserves_wrapped (line 504) | def test_sync_function_preserves_wrapped(self): method test_async_function_preserves_wrapped (line 515) | def test_async_function_preserves_wrapped(self): method test_sync_function_preserves_docstring (line 526) | def test_sync_function_preserves_docstring(self): class TestTracedPutEventHandlers (line 538) | class TestTracedPutEventHandlers: method test_history_updated_captures_assistant_completion (line 541) | def test_history_updated_captures_assistant_completion(self, tracer, t... method test_response_done_dict_captures_usage_and_completion (line 589) | def test_response_done_dict_captures_usage_and_completion(self, tracer... method test_response_done_without_usage_still_captures_completion (line 651) | def test_response_done_without_usage_still_captures_completion(self, t... FILE: packages/opentelemetry-instrumentation-openai-agents/tests/test_recipe_agents_hierarchy.py class Recipe (line 10) | class Recipe(BaseModel): class SearchResponse (line 20) | class SearchResponse(BaseModel): class EditResponse (line 28) | class EditResponse(BaseModel): class ChatContext (line 37) | class ChatContext: method __post_init__ (line 42) | def __post_init__(self): function search_recipes (line 79) | async def search_recipes(cw: RunContextWrapper[ChatContext], query: str ... function plan_and_apply_recipe_modifications (line 101) | async def plan_and_apply_recipe_modifications( function recipe_agents (line 130) | def recipe_agents(): function test_recipe_agents_hierarchy (line 168) | async def test_recipe_agents_hierarchy(exporter, recipe_agents): FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/__init__.py class OpenAIInstrumentor (line 11) | class OpenAIInstrumentor(BaseInstrumentor): method __init__ (line 14) | def __init__( method instrumentation_dependencies (line 33) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 36) | def _instrument(self, **kwargs): method _uninstrument (line 46) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/__init__.py function _set_span_attribute (line 31) | def _set_span_attribute(span, name, value): function _set_client_attributes (line 41) | def _set_client_attributes(span, instance): function _set_api_attributes (line 59) | def _set_api_attributes(span): function _set_functions_attributes (line 75) | def _set_functions_attributes(span, functions): function set_tools_attributes (line 88) | def set_tools_attributes(span, tools): function _set_request_attributes (line 105) | def _set_request_attributes(span, kwargs, instance=None): function _set_response_attributes (line 194) | def _set_response_attributes(span, response): function _log_prompt_filter (line 250) | def _log_prompt_filter(span, response_dict): function _set_span_stream_usage (line 260) | def _set_span_stream_usage(span, prompt_tokens, completion_tokens): function _get_openai_base_url (line 284) | def _get_openai_base_url(instance): function _get_vendor_from_url (line 293) | def _get_vendor_from_url(base_url): function _cross_region_check (line 309) | def _cross_region_check(value): function _extract_model_name_from_provider_format (line 325) | def _extract_model_name_from_provider_format(model_name): function is_streaming_response (line 340) | def is_streaming_response(response): function model_as_dict (line 351) | def model_as_dict(model): function _token_type (line 364) | def _token_type(token_type: str): function metric_shared_attributes (line 373) | def metric_shared_attributes( function propagate_trace_context (line 389) | def propagate_trace_context(span, kwargs): FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/chat_wrappers.py function chat_wrapper (line 68) | def chat_wrapper( function achat_wrapper (line 167) | async def achat_wrapper( function _handle_request (line 268) | async def _handle_request(span, kwargs, instance): function _handle_response (line 301) | def _handle_response( function _set_chat_metrics (line 363) | def _set_chat_metrics( function _set_choice_counter_metrics (line 394) | def _set_choice_counter_metrics(choice_counter, choices, shared_attribut... function _set_token_counter_metrics (line 405) | def _set_token_counter_metrics(token_counter, usage, shared_attributes): function _is_base64_image (line 415) | def _is_base64_image(item): function _process_image_item (line 428) | async def _process_image_item(item, trace_id, span_id, message_index, co... function _set_prompts (line 442) | async def _set_prompts(span, messages): function _set_completions (line 494) | def _set_completions(span, choices): function _set_streaming_token_metrics (line 564) | def _set_streaming_token_metrics( class ChatStream (line 601) | class ChatStream(ObjectProxy): method __init__ (line 612) | def __init__( method __del__ (line 646) | def __del__(self): method __enter__ (line 651) | def __enter__(self): method __exit__ (line 654) | def __exit__(self, exc_type, exc_val, exc_tb): method __aenter__ (line 671) | async def __aenter__(self): method __aexit__ (line 674) | async def __aexit__(self, exc_type, exc_val, exc_tb): method __iter__ (line 677) | def __iter__(self): method __aiter__ (line 680) | def __aiter__(self): method __next__ (line 683) | def __next__(self): method __anext__ (line 699) | async def __anext__(self): method _process_item (line 715) | def _process_item(self, item): method _shared_attributes (line 729) | def _shared_attributes(self): method _process_complete_response (line 740) | def _process_complete_response(self): method _ensure_cleanup (line 786) | def _ensure_cleanup(self): method _record_partial_metrics (line 824) | def _record_partial_metrics(self): function _build_from_streaming_response (line 860) | def _build_from_streaming_response( function _abuild_from_streaming_response (line 931) | async def _abuild_from_streaming_response( function _parse_tool_calls (line 1003) | def _parse_tool_calls( function _is_chat_message_function_tool_call (line 1037) | def _is_chat_message_function_tool_call(model: Union[dict, pydantic.Base... function _is_function_call (line 1057) | def _is_function_call(model: Union[dict, pydantic.BaseModel]) -> bool: function _parse_choice_event (line 1066) | def _parse_choice_event(choice) -> ChoiceEvent: function _ (line 1094) | def _(choice: dict) -> ChoiceEvent: function _accumulate_stream_items (line 1127) | def _accumulate_stream_items(item, complete_response): FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/completion_wrappers.py function completion_wrapper (line 49) | def completion_wrapper(tracer, wrapped, instance, args, kwargs): function acompletion_wrapper (line 86) | async def acompletion_wrapper(tracer, wrapped, instance, args, kwargs): function _handle_request (line 122) | def _handle_request(span, kwargs, instance): function _emit_prompts_events (line 135) | def _emit_prompts_events(kwargs): function _handle_response (line 145) | def _handle_response(response, span, instance=None): function _set_prompts (line 160) | def _set_prompts(span, prompt): function _set_completions (line 172) | def _set_completions(span, choices): function _build_from_streaming_response (line 186) | def _build_from_streaming_response(span, request_kwargs, response): function _abuild_from_streaming_response (line 207) | async def _abuild_from_streaming_response(span, request_kwargs, response): function _emit_streaming_response_events (line 227) | def _emit_streaming_response_events(complete_response): function _set_token_usage (line 239) | def _set_token_usage(span, request_kwargs, complete_response): function _accumulate_streaming_response (line 256) | def _accumulate_streaming_response(complete_response, item): function _parse_choice_event (line 281) | def _parse_choice_event(choice) -> ChoiceEvent: FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/config.py class Config (line 6) | class Config: FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/embeddings_wrappers.py function embeddings_wrapper (line 55) | def embeddings_wrapper( function aembeddings_wrapper (line 119) | async def aembeddings_wrapper( function _handle_request (line 184) | def _handle_request(span, kwargs, instance): function _handle_response (line 200) | def _handle_response( function _set_embeddings_metrics (line 230) | def _set_embeddings_metrics( function _set_prompts (line 270) | def _set_prompts(span, prompt): function _emit_embeddings_message_event (line 285) | def _emit_embeddings_message_event(embeddings) -> None: function _emit_embeddings_choice_event (line 293) | def _emit_embeddings_choice_event(response) -> None: FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/event_emitter.py class Roles (line 21) | class Roles(Enum): function emit_event (line 37) | def emit_event(event: Union[MessageEvent, ChoiceEvent]) -> None: function _emit_message_event (line 55) | def _emit_message_event(event: MessageEvent) -> None: function _emit_choice_event (line 87) | def _emit_choice_event(event: ChoiceEvent) -> None: FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/image_gen_wrappers.py function image_gen_metrics_wrapper (line 19) | def image_gen_metrics_wrapper( FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/utils.py function is_openai_v1 (line 21) | def is_openai_v1(): function is_reasoning_supported (line 25) | def is_reasoning_supported(): function is_azure_openai (line 33) | def is_azure_openai(instance): function is_metrics_enabled (line 39) | def is_metrics_enabled() -> bool: function _with_image_gen_metric_wrapper (line 43) | def _with_image_gen_metric_wrapper(func): function _with_embeddings_telemetry_wrapper (line 60) | def _with_embeddings_telemetry_wrapper(func): function _with_chat_telemetry_wrapper (line 86) | def _with_chat_telemetry_wrapper(func): function _with_tracer_wrapper (line 116) | def _with_tracer_wrapper(func): function start_as_current_span_async (line 127) | async def start_as_current_span_async(tracer, *args, **kwargs): function dont_throw (line 132) | def dont_throw(func): function run_async (line 163) | def run_async(method): function _is_truthy (line 177) | def _is_truthy(value): function should_send_prompts (line 181) | def should_send_prompts() -> bool: function should_emit_events (line 191) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v0/__init__.py class OpenAIV0Instrumentor (line 30) | class OpenAIV0Instrumentor(BaseInstrumentor): method instrumentation_dependencies (line 31) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 34) | def _instrument(self, **kwargs): method _uninstrument (line 170) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/__init__.py class OpenAIV1Instrumentor (line 52) | class OpenAIV1Instrumentor(BaseInstrumentor): method instrumentation_dependencies (line 53) | def instrumentation_dependencies(self) -> Collection[str]: method _try_wrap (line 56) | def _try_wrap(self, module, function, wrapper): method _instrument (line 72) | def _instrument(self, **kwargs): method _uninstrument (line 347) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/assistant_wrappers.py function assistants_create_wrapper (line 39) | def assistants_create_wrapper(tracer, wrapped, instance, args, kwargs): function runs_create_wrapper (line 54) | def runs_create_wrapper(tracer, wrapped, instance, args, kwargs): function runs_retrieve_wrapper (line 82) | def runs_retrieve_wrapper(tracer, wrapped, instance, args, kwargs): function messages_list_wrapper (line 113) | def messages_list_wrapper(tracer, wrapped, instance, args, kwargs): function runs_create_and_stream_wrapper (line 250) | def runs_create_and_stream_wrapper(tracer, wrapped, instance, args, kwar... FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/event_handler_wrapper.py class EventHandleWrapper (line 15) | class EventHandleWrapper(AssistantEventHandler): method __init__ (line 20) | def __init__(self, original_handler, span): method on_end (line 26) | def on_end(self): method on_event (line 41) | def on_event(self, event): method on_run_step_created (line 45) | def on_run_step_created(self, run_step): method on_run_step_delta (line 49) | def on_run_step_delta(self, delta, snapshot): method on_run_step_done (line 53) | def on_run_step_done(self, run_step): method on_tool_call_created (line 60) | def on_tool_call_created(self, tool_call): method on_tool_call_delta (line 64) | def on_tool_call_delta(self, delta, snapshot): method on_tool_call_done (line 68) | def on_tool_call_done(self, tool_call): method on_exception (line 72) | def on_exception(self, exception: Exception): method on_timeout (line 79) | def on_timeout(self): method on_message_created (line 83) | def on_message_created(self, message): method on_message_delta (line 87) | def on_message_delta(self, delta, snapshot): method on_message_done (line 91) | def on_message_done(self, message): method on_text_created (line 110) | def on_text_created(self, text): method on_text_delta (line 114) | def on_text_delta(self, delta, snapshot): method on_text_done (line 118) | def on_text_done(self, text): method on_image_file_done (line 133) | def on_image_file_done(self, image_file): FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/realtime_wrappers.py class RealtimeSessionState (line 44) | class RealtimeSessionState: method __init__ (line 47) | def __init__(self, tracer: Tracer, model: str): class RealtimeEventProcessor (line 62) | class RealtimeEventProcessor: method __init__ (line 65) | def __init__(self, state: RealtimeSessionState): method process_event (line 69) | def process_event(self, event): method handle_session_created (line 93) | def handle_session_created(self, event): method handle_session_updated (line 112) | def handle_session_updated(self, event): method handle_response_created (line 136) | def handle_response_created(self, event, start_span_if_none: bool = Fa... method handle_text_delta (line 146) | def handle_text_delta(self, event): method handle_audio_transcript_delta (line 152) | def handle_audio_transcript_delta(self, event): method handle_function_call_done (line 158) | def handle_function_call_done(self, event): method handle_response_done (line 167) | def handle_response_done(self, event): method handle_error_event (line 270) | def handle_error_event(self, event): method start_response_span (line 280) | def start_response_span(self, end_existing: bool = False, set_input: b... method reset_response_state (line 332) | def reset_response_state(self): class RealtimeConnectionWrapper (line 343) | class RealtimeConnectionWrapper: method __init__ (line 351) | def __init__(self, connection, state: RealtimeSessionState): method __getattr__ (line 357) | def __getattr__(self, name): method session (line 362) | def session(self): method conversation (line 367) | def conversation(self): method response (line 372) | def response(self): method recv (line 378) | async def recv(self): method recv_bytes (line 384) | def recv_bytes(self): method send (line 388) | async def send(self, event): method __aiter__ (line 393) | def __aiter__(self): method close (line 397) | async def close(self): method __aenter__ (line 404) | async def __aenter__(self): method __aexit__ (line 408) | async def __aexit__(self, exc_type, exc_val, exc_tb): method _process_outgoing_event (line 421) | def _process_outgoing_event(self, event): method _track_input (line 434) | def _track_input(self, event): method _handle_error (line 451) | def _handle_error(self, error): method _end_session_span (line 467) | def _end_session_span(self): class RealtimeEventIterator (line 474) | class RealtimeEventIterator: method __init__ (line 477) | def __init__( method __aiter__ (line 488) | def __aiter__(self): method __anext__ (line 491) | async def __anext__(self): method _process_event (line 497) | def _process_event(self, event): class RealtimeSessionWrapper (line 511) | class RealtimeSessionWrapper: method __init__ (line 514) | def __init__(self, session, state: RealtimeSessionState): method __getattr__ (line 518) | def __getattr__(self, name): method update (line 521) | async def update(self, **kwargs): class RealtimeConversationWrapper (line 549) | class RealtimeConversationWrapper: method __init__ (line 552) | def __init__(self, conversation, state: RealtimeSessionState): method __getattr__ (line 556) | def __getattr__(self, name): method item (line 560) | def item(self): class RealtimeConversationItemWrapper (line 565) | class RealtimeConversationItemWrapper: method __init__ (line 568) | def __init__(self, item, state: RealtimeSessionState): method __getattr__ (line 572) | def __getattr__(self, name): method create (line 575) | async def create(self, **kwargs): class RealtimeResponseWrapper (line 592) | class RealtimeResponseWrapper: method __init__ (line 595) | def __init__( method __getattr__ (line 605) | def __getattr__(self, name): method create (line 608) | async def create(self, **kwargs): method cancel (line 615) | async def cancel(self): class RealtimeConnectionManagerWrapper (line 631) | class RealtimeConnectionManagerWrapper: method __init__ (line 641) | def __init__(self, connection_manager, tracer: Tracer, model: str): method __aenter__ (line 648) | async def __aenter__(self): method __aexit__ (line 692) | async def __aexit__(self, exc_type, exc_val, exc_tb): function realtime_connect_wrapper (line 719) | def realtime_connect_wrapper(tracer: Tracer, wrapped, instance, args, kw... FILE: packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/v1/responses_wrappers.py function _get_openai_sentinel_types (line 35) | def _get_openai_sentinel_types() -> tuple: function _sanitize_sentinel_values (line 91) | def _sanitize_sentinel_values(kwargs: dict) -> dict: function prepare_input_param (line 109) | def prepare_input_param(input_param: ResponseInputItemParam) -> Response... function process_input (line 128) | def process_input(inp: ResponseInputParam) -> ResponseInputParam: function is_validator_iterator (line 134) | def is_validator_iterator(content): class ResponseOutputMessageParamWithoutId (line 148) | class ResponseOutputMessageParamWithoutId(ResponseOutputMessageParam): class TracedData (line 155) | class TracedData(pydantic.BaseModel): class Config (line 185) | class Config: function parse_response (line 192) | def parse_response(response: Union[LegacyAPIResponse, Response]) -> Resp... function get_tools_from_kwargs (line 198) | def get_tools_from_kwargs(kwargs: dict) -> list[ToolParam]: function process_content_block (line 216) | def process_content_block( function prepare_kwargs_for_shared_attributes (line 240) | def prepare_kwargs_for_shared_attributes(kwargs): function set_data_attributes (line 254) | def set_data_attributes(traced_response: TracedData, span: Span): function responses_get_or_create_wrapper (line 497) | def responses_get_or_create_wrapper(tracer: Tracer, wrapped, instance, a... function async_responses_get_or_create_wrapper (line 661) | async def async_responses_get_or_create_wrapper( function responses_cancel_wrapper (line 824) | def responses_cancel_wrapper(tracer: Tracer, wrapped, instance, args, kw... function async_responses_cancel_wrapper (line 854) | async def async_responses_cancel_wrapper( class ResponseStream (line 884) | class ResponseStream(ObjectProxy): method __init__ (line 893) | def __init__( method __del__ (line 936) | def __del__(self): method __enter__ (line 941) | def __enter__(self): method __exit__ (line 947) | def __exit__(self, exc_type, exc_val, exc_tb): method __aenter__ (line 960) | async def __aenter__(self): method __aexit__ (line 966) | async def __aexit__(self, exc_type, exc_val, exc_tb): method close (line 979) | def close(self): method aclose (line 986) | async def aclose(self): method __iter__ (line 993) | def __iter__(self): method __next__ (line 997) | def __next__(self): method __aiter__ (line 1011) | def __aiter__(self): method __anext__ (line 1015) | async def __anext__(self): method _process_chunk (line 1029) | def _process_chunk(self, chunk): method _process_complete_response (line 1046) | def _process_complete_response(self): method _handle_exception (line 1083) | def _handle_exception(self, exception): method _ensure_cleanup (line 1098) | def _ensure_cleanup(self): FILE: packages/opentelemetry-instrumentation-openai/tests/conftest.py function environment (line 31) | def environment(): function openai_client (line 41) | def openai_client(): function mock_openai_client (line 46) | def mock_openai_client(): function deepseek_client (line 54) | def deepseek_client(): function vllm_openai_client (line 62) | def vllm_openai_client(): function azure_openai_client (line 67) | def azure_openai_client(): function async_azure_openai_client (line 74) | def async_azure_openai_client(): function async_openai_client (line 81) | def async_openai_client(): function async_vllm_openai_client (line 86) | def async_vllm_openai_client(): function fixture_span_exporter (line 91) | def fixture_span_exporter(): function fixture_tracer_provider (line 97) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 104) | def fixture_log_exporter(): function fixture_logger_provider (line 110) | def fixture_logger_provider(log_exporter): function fixture_reader (line 118) | def fixture_reader(): function fixture_meter_provider (line 126) | def fixture_meter_provider(reader): function instrument_legacy (line 134) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 153) | def instrument_with_content( function instrument_with_no_content (line 173) | def instrument_with_no_content( function clear_exporter (line 193) | def clear_exporter(span_exporter): function vcr_config (line 198) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-openai/tests/metrics/conftest.py function vcr_config (line 5) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-openai/tests/metrics/test_openai_metrics.py function openai_client (line 14) | def openai_client(): function test_chat_completion_metrics (line 19) | def test_chat_completion_metrics(instrument_legacy, reader, openai_client): function test_chat_parsed_completion_metrics (line 81) | def test_chat_parsed_completion_metrics(instrument_legacy, reader, opena... function test_chat_streaming_metrics (line 137) | def test_chat_streaming_metrics(instrument_legacy, reader, deepseek_clie... function test_embeddings_metrics (line 232) | def test_embeddings_metrics(instrument_legacy, reader, openai_client): function test_image_gen_metrics (line 280) | def test_image_gen_metrics(instrument_legacy, reader, openai_client): FILE: packages/opentelemetry-instrumentation-openai/tests/traces/conftest.py function vcr_config (line 5) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_assistant.py function assistant (line 12) | def assistant(openai_client): function test_new_assistant (line 22) | def test_new_assistant( function test_new_assistant_with_events_with_content (line 116) | def test_new_assistant_with_events_with_content( function test_new_assistant_with_events_with_no_content (line 202) | def test_new_assistant_with_events_with_no_content( function test_new_assistant_with_polling (line 269) | def test_new_assistant_with_polling( function test_new_assistant_with_polling_with_events_with_content (line 349) | def test_new_assistant_with_polling_with_events_with_content( function test_new_assistant_with_polling_with_events_with_no_content (line 425) | def test_new_assistant_with_polling_with_events_with_no_content( function test_existing_assistant (line 481) | def test_existing_assistant( function test_existing_assistant_with_events_with_content (line 571) | def test_existing_assistant_with_events_with_content( function test_existing_assistant_with_events_with_no_content (line 668) | def test_existing_assistant_with_events_with_no_content( function test_streaming_new_assistant (line 739) | def test_streaming_new_assistant( function test_streaming_new_assistant_with_events_with_content (line 817) | def test_streaming_new_assistant_with_events_with_content( function test_streaming_new_assistant_with_events_with_no_content (line 920) | def test_streaming_new_assistant_with_events_with_no_content( function test_streaming_existing_assistant (line 989) | def test_streaming_existing_assistant( function test_streaming_existing_assistant_with_events_with_content (line 1066) | def test_streaming_existing_assistant_with_events_with_content( function test_streaming_existing_assistant_with_events_with_no_content (line 1154) | def test_streaming_existing_assistant_with_events_with_no_content( function assert_message_in_logs (line 1218) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_azure.py function test_chat (line 16) | def test_chat(instrument_legacy, span_exporter, log_exporter, azure_open... function test_chat_with_events_with_content (line 50) | def test_chat_with_events_with_content( function test_chat_with_events_with_no_content (line 96) | def test_chat_with_events_with_no_content( function test_chat_content_filtering (line 132) | def test_chat_content_filtering( function test_chat_content_filtering_with_events_with_content (line 184) | def test_chat_content_filtering_with_events_with_content( function test_chat_content_filtering_with_events_with_no_content (line 229) | def test_chat_content_filtering_with_events_with_no_content( function test_prompt_content_filtering (line 270) | def test_prompt_content_filtering( function test_prompt_content_filtering_with_events_with_content (line 314) | def test_prompt_content_filtering_with_events_with_content( function test_prompt_content_filtering_with_events_with_no_content (line 363) | def test_prompt_content_filtering_with_events_with_no_content( function test_chat_streaming (line 408) | def test_chat_streaming( function test_chat_streaming_with_events_with_content (line 465) | def test_chat_streaming_with_events_with_content( function test_chat_streaming_with_events_with_no_content (line 536) | def test_chat_streaming_with_events_with_no_content( function test_chat_async_streaming (line 594) | async def test_chat_async_streaming( function test_chat_async_streaming_with_events_with_content (line 647) | async def test_chat_async_streaming_with_events_with_content( function test_chat_async_streaming_with_events_with_no_content (line 713) | async def test_chat_async_streaming_with_events_with_no_content( function test_chat_reasoning (line 767) | def test_chat_reasoning(instrument_legacy, span_exporter, function assert_message_in_logs (line 788) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_chat.py function test_chat (line 21) | def test_chat(instrument_legacy, span_exporter, log_exporter, openai_cli... function test_chat_with_events_with_content (line 64) | def test_chat_with_events_with_content( function test_chat_with_events_with_no_content (line 120) | def test_chat_with_events_with_no_content( function test_chat_tool_calls (line 165) | def test_chat_tool_calls(instrument_legacy, span_exporter, log_exporter,... function test_chat_tool_calls_with_events_with_content (line 227) | def test_chat_tool_calls_with_events_with_content( function test_chat_tool_calls_with_events_with_no_content (line 306) | def test_chat_tool_calls_with_events_with_no_content( function test_chat_pydantic_based_tool_calls (line 372) | def test_chat_pydantic_based_tool_calls( function test_chat_pydantic_based_tool_calls_with_events_with_content (line 445) | def test_chat_pydantic_based_tool_calls_with_events_with_content( function test_chat_pydantic_based_tool_calls_with_events_with_no_content (line 531) | def test_chat_pydantic_based_tool_calls_with_events_with_no_content( function test_chat_streaming (line 605) | def test_chat_streaming(instrument_legacy, span_exporter, log_exporter, ... function test_chat_streaming_with_events_with_content (line 658) | def test_chat_streaming_with_events_with_content( function test_chat_streaming_with_events_with_no_content (line 725) | def test_chat_streaming_with_events_with_no_content( function test_chat_async_streaming (line 779) | async def test_chat_async_streaming( function test_chat_async_streaming_with_events_with_content (line 834) | async def test_chat_async_streaming_with_events_with_content( function test_chat_async_streaming_with_events_with_no_content (line 901) | async def test_chat_async_streaming_with_events_with_no_content( function test_with_asyncio_run (line 956) | def test_with_asyncio_run( function test_with_asyncio_run_with_events_with_content (line 985) | def test_with_asyncio_run_with_events_with_content( function test_with_asyncio_run_with_events_with_no_content (line 1033) | def test_with_asyncio_run_with_events_with_no_content( function test_chat_context_propagation (line 1068) | def test_chat_context_propagation( function test_chat_context_propagation_with_events_with_content (line 1102) | def test_chat_context_propagation_with_events_with_content( function test_chat_context_propagation_with_events_with_no_content (line 1155) | def test_chat_context_propagation_with_events_with_no_content( function test_chat_async_context_propagation (line 1196) | async def test_chat_async_context_propagation( function test_chat_async_context_propagation_with_events_with_content (line 1231) | async def test_chat_async_context_propagation_with_events_with_content( function test_chat_async_context_propagation_with_events_with_no_content (line 1285) | async def test_chat_async_context_propagation_with_events_with_no_content( function assert_message_in_logs (line 1324) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... function test_chat_history_message_dict (line 1340) | def test_chat_history_message_dict(span_exporter, openai_client): function test_chat_history_message_pydantic (line 1410) | def test_chat_history_message_pydantic(span_exporter, openai_client): function test_chat_reasoning (line 1479) | def test_chat_reasoning(instrument_legacy, span_exporter, function test_chat_with_service_tier (line 1501) | def test_chat_with_service_tier(instrument_legacy, span_exporter, openai... function test_chat_exception (line 1521) | def test_chat_exception(instrument_legacy, span_exporter, openai_client): function test_chat_async_exception (line 1561) | async def test_chat_async_exception(instrument_legacy, span_exporter, as... function test_chat_streaming_not_consumed (line 1601) | def test_chat_streaming_not_consumed(instrument_legacy, span_exporter, l... function test_chat_streaming_partial_consumption (line 1684) | def test_chat_streaming_partial_consumption(instrument_legacy, span_expo... function test_chat_streaming_exception_during_consumption (line 1760) | def test_chat_streaming_exception_during_consumption(instrument_legacy, ... function test_chat_streaming_memory_leak_prevention (line 1800) | def test_chat_streaming_memory_leak_prevention(instrument_legacy, span_e... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_chat_parse.py class StructuredAnswer (line 13) | class StructuredAnswer(BaseModel): function test_parsed_completion (line 19) | def test_parsed_completion( function test_parsed_completion_with_events_with_content (line 60) | def test_parsed_completion_with_events_with_content( function test_parsed_completion_with_events_with_no_content (line 109) | def test_parsed_completion_with_events_with_no_content( function test_parsed_refused_completion (line 150) | def test_parsed_refused_completion( function test_parsed_refused_completion_with_events_with_content (line 186) | def test_parsed_refused_completion_with_events_with_content( function test_parsed_refused_completion_with_events_with_no_content (line 229) | def test_parsed_refused_completion_with_events_with_no_content( function test_async_parsed_completion (line 267) | async def test_async_parsed_completion( function test_async_parsed_completion_with_events_with_content (line 308) | async def test_async_parsed_completion_with_events_with_content( function test_async_parsed_completion_with_events_with_no_content (line 358) | async def test_async_parsed_completion_with_events_with_no_content( function test_async_parsed_refused_completion (line 400) | async def test_async_parsed_refused_completion( function test_async_parsed_refused_completion_with_events_with_content (line 437) | async def test_async_parsed_refused_completion_with_events_with_content( function test_async_parsed_refused_completion_with_events_with_no_content (line 481) | async def test_async_parsed_refused_completion_with_events_with_no_content( function assert_message_in_logs (line 517) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... function test_parsed_completion_exception (line 531) | def test_parsed_completion_exception( function test_async_parsed_completion_exception (line 566) | async def test_async_parsed_completion_exception( FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_chat_response_format.py class Joke (line 10) | class Joke(pydantic.BaseModel): function test_chat_response_format (line 16) | def test_chat_response_format( function test_async_chat_response_format (line 54) | async def test_async_chat_response_format( FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_completions.py function test_completion (line 16) | def test_completion(instrument_legacy, span_exporter, log_exporter, open... function test_completion_with_events_with_content (line 49) | def test_completion_with_events_with_content( function test_completion_with_events_with_no_content (line 93) | def test_completion_with_events_with_no_content( function test_async_completion (line 130) | async def test_async_completion( function test_async_completion_with_events_with_content (line 161) | async def test_async_completion_with_events_with_content( function test_async_completion_with_events_with_no_content (line 203) | async def test_async_completion_with_events_with_no_content( function test_completion_langchain_style (line 238) | def test_completion_langchain_style( function test_completion_langchain_style_with_events_with_content (line 268) | def test_completion_langchain_style_with_events_with_content( function test_completion_langchain_style_with_events_with_no_content (line 309) | def test_completion_langchain_style_with_events_with_no_content( function test_completion_streaming (line 344) | def test_completion_streaming( function test_completion_streaming_with_events_with_content (line 394) | def test_completion_streaming_with_events_with_content( function test_completion_streaming_with_events_with_no_content (line 456) | def test_completion_streaming_with_events_with_no_content( function test_async_completion_streaming (line 510) | async def test_async_completion_streaming( function test_async_completion_streaming_with_events_with_content (line 549) | async def test_async_completion_streaming_with_events_with_content( function test_async_completion_streaming_with_events_with_no_content (line 599) | async def test_async_completion_streaming_with_events_with_no_content( function test_completion_context_propagation (line 638) | def test_completion_context_propagation( function test_completion_context_propagation_with_events_with_content (line 672) | def test_completion_context_propagation_with_events_with_content( function test_completion_context_propagation_with_events_with_no_content (line 722) | def test_completion_context_propagation_with_events_with_no_content( function test_async_completion_context_propagation (line 763) | async def test_async_completion_context_propagation( function test_async_completion_context_propagation_with_events_with_content (line 797) | async def test_async_completion_context_propagation_with_events_with_con... function test_async_completion_context_propagation_with_events_with_no_content (line 847) | async def test_async_completion_context_propagation_with_events_with_no_... function test_completion_exception (line 885) | def test_completion_exception(instrument_legacy, span_exporter, openai_c... function test_async_completion_exception (line 917) | async def test_async_completion_exception(instrument_legacy, span_export... function assert_message_in_logs (line 948) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_embedding_metrics_handler.py function test_set_embeddings_metrics_handles_none_values (line 7) | def test_set_embeddings_metrics_handles_none_values(): FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_embeddings.py function test_embeddings (line 17) | def test_embeddings(instrument_legacy, span_exporter, log_exporter, open... function test_embeddings_with_events_with_content (line 49) | def test_embeddings_with_events_with_content( function test_embeddings_with_events_with_no_content (line 93) | def test_embeddings_with_events_with_no_content( function test_embeddings_with_raw_response (line 129) | def test_embeddings_with_raw_response( function test_embeddings_with_raw_response_with_events_with_content (line 166) | def test_embeddings_with_raw_response_with_events_with_content( function test_embeddings_with_raw_response_with_events_with_no_content (line 213) | def test_embeddings_with_raw_response_with_events_with_no_content( function test_azure_openai_embeddings (line 252) | def test_azure_openai_embeddings(instrument_legacy, span_exporter, log_e... function test_azure_openai_embeddings_with_events_with_content (line 295) | def test_azure_openai_embeddings_with_events_with_content( function test_azure_openai_embeddings_with_events_with_no_content (line 350) | def test_azure_openai_embeddings_with_events_with_no_content( function test_embeddings_context_propagation (line 397) | def test_embeddings_context_propagation( function test_embeddings_context_propagation_with_events_with_content (line 424) | def test_embeddings_context_propagation_with_events_with_content( function test_embeddings_context_propagation_with_events_with_no_content (line 465) | def test_embeddings_context_propagation_with_events_with_no_content( function test_async_embeddings_context_propagation (line 499) | async def test_async_embeddings_context_propagation( function test_async_embeddings_context_propagation_with_events_with_content (line 527) | async def test_async_embeddings_context_propagation_with_events_with_con... function test_async_embeddings_context_propagation_with_events_with_no_content (line 569) | async def test_async_embeddings_context_propagation_with_events_with_no_... function test_embeddings_exception (line 601) | def test_embeddings_exception(instrument_legacy, span_exporter, openai_c... function test_async_embeddings_exception (line 625) | async def test_async_embeddings_exception(instrument_legacy, span_export... function assert_message_in_logs (line 648) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_exceptions.py function test_inner_exception_isnt_caught (line 6) | def test_inner_exception_isnt_caught(openai_client): function test_exception_in_instrumentation_suppressed (line 32) | def test_exception_in_instrumentation_suppressed(openai_client): FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_functions.py function openai_tools (line 10) | def openai_tools(): function test_open_ai_function_calls (line 33) | def test_open_ai_function_calls( function test_open_ai_function_calls_with_events_with_content (line 96) | def test_open_ai_function_calls_with_events_with_content( function test_open_ai_function_calls_with_events_with_no_content (line 167) | def test_open_ai_function_calls_with_events_with_no_content( function test_open_ai_function_calls_tools (line 231) | def test_open_ai_function_calls_tools( function test_open_ai_function_calls_tools_with_events_with_content (line 279) | def test_open_ai_function_calls_tools_with_events_with_content( function test_open_ai_function_calls_tools_with_events_with_no_content (line 331) | def test_open_ai_function_calls_tools_with_events_with_no_content( function test_open_ai_function_calls_tools_streaming (line 377) | async def test_open_ai_function_calls_tools_streaming( function test_open_ai_function_calls_tools_streaming_with_events_with_content (line 432) | async def test_open_ai_function_calls_tools_streaming_with_events_with_c... function test_open_ai_function_calls_tools_streaming_with_events_with_no_content (line 491) | async def test_open_ai_function_calls_tools_streaming_with_events_with_n... function test_open_ai_function_calls_tools_parallel (line 542) | def test_open_ai_function_calls_tools_parallel( function test_open_ai_function_calls_tools_parallel_with_events_with_content (line 616) | def test_open_ai_function_calls_tools_parallel_with_events_with_content( function test_open_ai_function_calls_tools_parallel_with_events_with_no_content (line 680) | def test_open_ai_function_calls_tools_parallel_with_events_with_no_content( function test_open_ai_function_calls_tools_streaming_parallel (line 735) | async def test_open_ai_function_calls_tools_streaming_parallel( function test_open_ai_function_calls_tools_streaming_parallel_with_events_with_content (line 811) | async def test_open_ai_function_calls_tools_streaming_parallel_with_even... function test_open_ai_function_calls_tools_streaming_parallel_with_events_with_no_content (line 881) | async def test_open_ai_function_calls_tools_streaming_parallel_with_even... function assert_message_in_logs (line 939) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_prompt_caching.py function test_openai_prompt_caching (line 12) | def test_openai_prompt_caching(instrument_legacy, span_exporter, log_exp... function test_openai_prompt_caching_with_events_with_content (line 80) | def test_openai_prompt_caching_with_events_with_content( function test_openai_prompt_caching_with_events_with_no_content (line 173) | def test_openai_prompt_caching_with_events_with_no_content( function test_openai_prompt_caching_async (line 255) | async def test_openai_prompt_caching_async( function test_openai_prompt_caching_async_with_events_with_content (line 325) | async def test_openai_prompt_caching_async_with_events_with_content( function test_openai_prompt_caching_async_with_events_with_no_content (line 420) | async def test_openai_prompt_caching_async_with_events_with_no_content( function assert_message_in_logs (line 500) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_realtime.py class MockRealtimeEvent (line 20) | class MockRealtimeEvent: method __init__ (line 23) | def __init__(self, event_type: str, **kwargs): class MockRealtimeSession (line 29) | class MockRealtimeSession: method __init__ (line 32) | def __init__(self, model="gpt-4o-realtime-preview", modalities=None, *... class MockRealtimeResponse (line 39) | class MockRealtimeResponse: method __init__ (line 42) | def __init__(self, response_id="resp_123", **kwargs): class MockRealtimeUsage (line 49) | class MockRealtimeUsage: method __init__ (line 52) | def __init__(self, input_tokens=10, output_tokens=20): class TestRealtimeWrappers (line 57) | class TestRealtimeWrappers: method test_realtime_session_state_initialization (line 60) | def test_realtime_session_state_initialization(self): method test_realtime_connection_manager_wrapper_init (line 76) | def test_realtime_connection_manager_wrapper_init(self): method test_realtime_event_processing_session_created (line 94) | async def test_realtime_event_processing_session_created(self): method test_realtime_event_processing_response_done (line 124) | async def test_realtime_event_processing_response_done(self): method test_realtime_event_processing_text_delta (line 160) | async def test_realtime_event_processing_text_delta(self): method test_realtime_event_processing_function_call (line 185) | async def test_realtime_event_processing_function_call(self): method test_realtime_event_processing_error (line 217) | async def test_realtime_event_processing_error(self): class TestRealtimeWrapperRegistration (line 250) | class TestRealtimeWrapperRegistration: method test_realtime_connect_wrapper_exists (line 253) | def test_realtime_connect_wrapper_exists(self): method test_realtime_wrapper_registered_in_instrumentor (line 261) | def test_realtime_wrapper_registered_in_instrumentor(self): class TestRealtimeSpanAttributes (line 271) | class TestRealtimeSpanAttributes: method test_response_span_has_correct_attributes (line 275) | async def test_response_span_has_correct_attributes(self): method test_session_span_has_correct_attributes (line 308) | async def test_session_span_has_correct_attributes(self): class TestRealtimeConnectionWrapper (line 339) | class TestRealtimeConnectionWrapper: method test_connection_wrapper_delegates_attributes (line 343) | async def test_connection_wrapper_delegates_attributes(self): method test_connection_wrapper_provides_wrapped_session (line 364) | async def test_connection_wrapper_provides_wrapped_session(self): class MockAsyncIterableConnection (line 385) | class MockAsyncIterableConnection: method __init__ (line 388) | def __init__(self, events): method __aiter__ (line 400) | def __aiter__(self): method __anext__ (line 403) | async def __anext__(self): class TestRealtimeFullFlow (line 411) | class TestRealtimeFullFlow: method tracer_provider_and_exporter (line 415) | def tracer_provider_and_exporter(self): method test_full_text_conversation_flow (line 428) | async def test_full_text_conversation_flow(self, tracer_provider_and_e... method test_response_span_is_child_of_session_span (line 489) | async def test_response_span_is_child_of_session_span(self, tracer_pro... method test_multi_turn_conversation_creates_multiple_spans (line 535) | async def test_multi_turn_conversation_creates_multiple_spans(self, tr... method test_function_call_flow (line 579) | async def test_function_call_flow(self, tracer_provider_and_exporter): method test_error_handling_in_response (line 630) | async def test_error_handling_in_response(self, tracer_provider_and_ex... method test_connection_error_handling (line 664) | async def test_connection_error_handling(self, tracer_provider_and_exp... class TestRealtimeConnectWrapper (line 693) | class TestRealtimeConnectWrapper: method test_wrapper_returns_connection_manager_wrapper (line 696) | def test_wrapper_returns_connection_manager_wrapper(self): method test_wrapper_uses_default_model (line 713) | def test_wrapper_uses_default_model(self): method test_wrapper_respects_suppress_instrumentation (line 731) | def test_wrapper_respects_suppress_instrumentation(self): class TestRealtimeSessionWrapper (line 758) | class TestRealtimeSessionWrapper: method test_session_update_tracks_config (line 762) | async def test_session_update_tracks_config(self): class TestRealtimeConversationWrapper (line 794) | class TestRealtimeConversationWrapper: method test_item_create_tracks_input (line 798) | async def test_item_create_tracks_input(self): class TestRealtimeResponseWrapper (line 824) | class TestRealtimeResponseWrapper: method test_response_cancel_ends_span (line 828) | async def test_response_cancel_ends_span(self): FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_responses.py function test_responses (line 12) | def test_responses( function test_responses_with_request_params (line 33) | def test_responses_with_request_params( function test_responses_with_service_tier (line 58) | def test_responses_with_service_tier( function test_responses_with_input_history (line 75) | def test_responses_with_input_history( function test_responses_tool_calls (line 130) | def test_responses_tool_calls( function test_responses_reasoning (line 202) | def test_responses_reasoning( function test_responses_reasoning_dict_issue (line 230) | def test_responses_reasoning_dict_issue( function test_responses_streaming (line 262) | def test_responses_streaming( function test_responses_streaming_async (line 300) | async def test_responses_streaming_async( function test_responses_streaming_with_content (line 335) | def test_responses_streaming_with_content( function test_responses_streaming_with_context_manager (line 368) | def test_responses_streaming_with_context_manager( function test_responses_streaming_async_with_context_manager (line 400) | async def test_responses_streaming_async_with_context_manager( function test_get_tools_from_kwargs_with_none (line 434) | def test_get_tools_from_kwargs_with_none(): function test_response_stream_init_with_none_tools (line 465) | def test_response_stream_init_with_none_tools(): function test_responses_trace_context_propagation_unit (line 510) | def test_responses_trace_context_propagation_unit(): function test_responses_streaming_with_parent_span (line 592) | def test_responses_streaming_with_parent_span( function test_responses_streaming_async_with_parent_span (line 664) | async def test_responses_streaming_async_with_parent_span( function test_response_stream_init_with_not_given_reasoning (line 734) | def test_response_stream_init_with_not_given_reasoning(): function test_response_stream_init_with_omit_reasoning (line 782) | def test_response_stream_init_with_omit_reasoning(): FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_span_context_propagation.py function assert_event_has_span_context (line 10) | def assert_event_has_span_context(log: ReadableLogRecord, expected_trace... function test_span_context_propagation_with_mock_client (line 26) | def test_span_context_propagation_with_mock_client( FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_streaming_with_api_usage.py function api_usage_provider_client (line 11) | def api_usage_provider_client(): function test_streaming_with_api_usage_capture (line 20) | def test_streaming_with_api_usage_capture( function test_streaming_with_api_usage_and_events (line 52) | def test_streaming_with_api_usage_and_events( FILE: packages/opentelemetry-instrumentation-openai/tests/traces/test_vision.py function test_vision (line 14) | def test_vision(instrument_legacy, span_exporter, log_exporter, openai_c... function test_vision_with_events_with_content (line 68) | def test_vision_with_events_with_content( function test_vision_with_events_with_no_content (line 139) | def test_vision_with_events_with_no_content( function test_vision_base64 (line 190) | def test_vision_base64(instrument_legacy, span_exporter, log_exporter, o... function test_vision_base64_with_events_with_content (line 254) | def test_vision_base64_with_events_with_content( function test_vision_base64_with_events_with_no_content (line 333) | def test_vision_base64_with_events_with_no_content( function assert_message_in_logs (line 393) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-openai/tests/traces/utils.py function spy_decorator (line 9) | def spy_decorator(method_to_decorate): function assert_request_contains_tracecontext (line 20) | def assert_request_contains_tracecontext(request: httpx.Request, expecte... FILE: packages/opentelemetry-instrumentation-pinecone/opentelemetry/instrumentation/pinecone/__init__.py function _set_input_attributes (line 73) | def _set_input_attributes(span, instance, kwargs): function _set_response_attributes (line 78) | def _set_response_attributes( function _with_wrapper (line 92) | def _with_wrapper(func): function _wrap (line 123) | def _wrap( class PineconeInstrumentor (line 182) | class PineconeInstrumentor(BaseInstrumentor): method __init__ (line 185) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 189) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 192) | def _instrument(self, **kwargs): method _uninstrument (line 295) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-pinecone/opentelemetry/instrumentation/pinecone/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-pinecone/opentelemetry/instrumentation/pinecone/query_handlers.py function set_query_input_attributes (line 8) | def set_query_input_attributes(span, kwargs): function set_query_response (line 77) | def set_query_response(span, scores_metric, shared_attributes, response): FILE: packages/opentelemetry-instrumentation-pinecone/opentelemetry/instrumentation/pinecone/utils.py function dont_throw (line 7) | def dont_throw(func): function set_span_attribute (line 32) | def set_span_attribute(span, name, value): function is_metrics_enabled (line 39) | def is_metrics_enabled() -> bool: FILE: packages/opentelemetry-instrumentation-pinecone/tests/conftest.py function traces_exporter (line 19) | def traces_exporter(): function metrics_reader (line 33) | def metrics_reader(): function instrument (line 44) | def instrument(traces_exporter, metrics_reader): function environment (line 50) | def environment(): function vcr_config (line 60) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-pinecone/tests/test_query.py function openai_client (line 10) | def openai_client(): function retrieve (line 14) | def retrieve(openai_client, index, query): function complete (line 38) | def complete(openai_client, prompt): function run_query (line 52) | def run_query(openai_client, index, query: str): function test_pinecone_grpc_retrieval (line 61) | def test_pinecone_grpc_retrieval(traces_exporter, openai_client): function test_pinecone_retrieval (line 83) | def test_pinecone_retrieval(traces_exporter, metrics_reader, openai_clie... FILE: packages/opentelemetry-instrumentation-qdrant/opentelemetry/instrumentation/qdrant/__init__.py class QdrantInstrumentor (line 38) | class QdrantInstrumentor(BaseInstrumentor): method __init__ (line 41) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 45) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 48) | def _instrument(self, **kwargs): method _uninstrument (line 62) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-qdrant/opentelemetry/instrumentation/qdrant/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-qdrant/opentelemetry/instrumentation/qdrant/utils.py function dont_throw (line 6) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-qdrant/opentelemetry/instrumentation/qdrant/wrapper.py function _set_span_attribute (line 11) | def _set_span_attribute(span, name, value): function _with_tracer_wrapper (line 18) | def _with_tracer_wrapper(func): function _wrap (line 31) | def _wrap(tracer, to_wrap, wrapped, instance, args, kwargs): function _set_collection_name_attribute (line 80) | def _set_collection_name_attribute(span, method, args, kwargs): function _set_upsert_attributes (line 95) | def _set_upsert_attributes(span, args, kwargs): function _set_upload_attributes (line 107) | def _set_upload_attributes(span, args, kwargs, method_name, param_name): function _set_search_attributes (line 113) | def _set_search_attributes(span, args, kwargs): function _set_batch_search_attributes (line 119) | def _set_batch_search_attributes(span, args, kwargs, method): FILE: packages/opentelemetry-instrumentation-qdrant/tests/conftest.py function exporter (line 12) | def exporter(): function clear_exporter (line 26) | def clear_exporter(exporter): FILE: packages/opentelemetry-instrumentation-qdrant/tests/test_qdrant_instrumentation.py function qdrant (line 8) | def qdrant(): function upsert (line 16) | def upsert(qdrant: QdrantClient): function test_qdrant_upsert (line 37) | def test_qdrant_upsert(exporter, qdrant): function upload_collection (line 50) | def upload_collection(qdrant: QdrantClient): function test_qdrant_upload_collection (line 66) | def test_qdrant_upload_collection(exporter, qdrant): function search (line 79) | def search(qdrant: QdrantClient): function test_qdrant_searchs (line 87) | def test_qdrant_searchs(exporter, qdrant): function search_batch (line 101) | def search_batch(qdrant: QdrantClient): function test_qdrant_search (line 113) | def test_qdrant_search(exporter, qdrant): FILE: packages/opentelemetry-instrumentation-replicate/opentelemetry/instrumentation/replicate/__init__.py function is_streaming_response (line 58) | def is_streaming_response(response): function _build_from_streaming_response (line 62) | def _build_from_streaming_response(span, event_logger, response): function _handle_request (line 76) | def _handle_request(span, event_logger, args, kwargs): function _handle_response (line 88) | def _handle_response(span, event_logger, response): function _with_tracer_wrapper (line 98) | def _with_tracer_wrapper(func): function _wrap (line 111) | def _wrap( class ReplicateInstrumentor (line 148) | class ReplicateInstrumentor(BaseInstrumentor): method __init__ (line 151) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 156) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 159) | def _instrument(self, **kwargs): method _uninstrument (line 177) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-replicate/opentelemetry/instrumentation/replicate/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-replicate/opentelemetry/instrumentation/replicate/event_emitter.py class Roles (line 22) | class Roles(Enum): function emit_choice_events (line 37) | def emit_choice_events( function emit_event (line 69) | def emit_event( function _emit_message_event (line 89) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 121) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-replicate/opentelemetry/instrumentation/replicate/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-replicate/opentelemetry/instrumentation/replicate/span_utils.py function _set_span_attribute (line 10) | def _set_span_attribute(span, name, value): function set_input_attributes (line 18) | def set_input_attributes(span, args, kwargs): function set_model_input_attributes (line 30) | def set_model_input_attributes(span, args, kwargs): function set_response_attributes (line 54) | def set_response_attributes(span, response): FILE: packages/opentelemetry-instrumentation-replicate/opentelemetry/instrumentation/replicate/utils.py function should_send_prompts (line 11) | def should_send_prompts(): function dont_throw (line 17) | def dont_throw(func): function should_emit_events (line 42) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-replicate/tests/conftest.py function fixture_span_exporter (line 22) | def fixture_span_exporter(): function fixture_tracer_provider (line 28) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 35) | def fixture_log_exporter(): function fixture_logger_provider (line 41) | def fixture_logger_provider(log_exporter): function replicate_client (line 48) | def replicate_client(): function instrument_legacy (line 53) | def instrument_legacy(tracer_provider): function instrument_with_content (line 65) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 81) | def instrument_with_no_content(tracer_provider, logger_provider): function vcr_config (line 97) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-replicate/tests/test_image_generation.py function test_replicate_image_generation_legacy (line 9) | def test_replicate_image_generation_legacy( function test_replicate_image_generation_with_events_with_content (line 28) | def test_replicate_image_generation_with_events_with_content( function test_replicate_image_generation_with_events_with_no_content (line 59) | def test_replicate_image_generation_with_events_with_no_content( function test_replicate_image_generation_predictions_legacy (line 88) | def test_replicate_image_generation_predictions_legacy( function test_replicate_image_generation_predictions_with_events_with_content (line 109) | def test_replicate_image_generation_predictions_with_events_with_content( function test_replicate_image_generation_predictions_with_events_with_no_content (line 142) | def test_replicate_image_generation_predictions_with_events_with_no_cont... function assert_message_in_logs (line 172) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-replicate/tests/test_llama.py function test_replicate_llama_stream_legacy (line 12) | def test_replicate_llama_stream_legacy( function test_replicate_llama_stream_with_events_with_content (line 37) | def test_replicate_llama_stream_with_events_with_content( function test_replicate_llama_stream_with_events_with_no_content (line 77) | def test_replicate_llama_stream_with_events_with_no_content( function assert_message_in_logs (line 110) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/__init__.py function _with_tracer_wrapper (line 48) | def _with_tracer_wrapper(func): function _wrap (line 61) | def _wrap( function _instrumented_endpoint_invoke (line 90) | def _instrumented_endpoint_invoke(fn, tracer, event_logger): function _instrumented_endpoint_invoke_with_response_stream (line 107) | def _instrumented_endpoint_invoke_with_response_stream(fn, tracer, event... function _handle_stream_call (line 125) | def _handle_stream_call(span, event_logger, kwargs, response): function _handle_call (line 148) | def _handle_call(span, event_logger, kwargs, response): class SageMakerInstrumentor (line 169) | class SageMakerInstrumentor(BaseInstrumentor): method __init__ (line 172) | def __init__( method instrumentation_dependencies (line 181) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 184) | def _instrument(self, **kwargs): method _uninstrument (line 206) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/event_emitter.py class Roles (line 27) | class Roles(Enum): function emit_message_event (line 41) | def emit_message_event(kwargs, event_logger): function emit_choice_events (line 55) | def emit_choice_events(response: dict, event_logger): function emit_event (line 84) | def emit_event( function _emit_message_event (line 104) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 136) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/reusable_streaming_body.py class ReusableStreamingBody (line 10) | class ReusableStreamingBody(StreamingBody): method __init__ (line 13) | def __init__(self, raw_stream, content_length): method read (line 18) | def read(self, amt=None): FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/span_utils.py function _try_parse_json (line 12) | def _try_parse_json(value): function _set_span_attribute (line 24) | def _set_span_attribute(span, name, value): function set_stream_response_attributes (line 31) | def set_stream_response_attributes(span, response_body): function set_call_span_attributes (line 40) | def set_call_span_attributes(span, kwargs, response): function set_call_request_attributes (line 48) | def set_call_request_attributes(span, kwargs): function set_call_response_attributes (line 59) | def set_call_response_attributes(span, raw_response): FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/streaming_wrapper.py class StreamingWrapper (line 5) | class StreamingWrapper(ObjectProxy): method __init__ (line 6) | def __init__( method accumulating_body (line 17) | def accumulating_body(self): method __iter__ (line 20) | def __iter__(self): method _process_event (line 27) | def _process_event(self, event): FILE: packages/opentelemetry-instrumentation-sagemaker/opentelemetry/instrumentation/sagemaker/utils.py function dont_throw (line 11) | def dont_throw(func): function should_send_prompts (line 36) | def should_send_prompts(): function should_emit_events (line 42) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-sagemaker/tests/conftest.py function fixture_span_exporter (line 22) | def fixture_span_exporter(): function fixture_tracer_provider (line 28) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 35) | def fixture_log_exporter(): function fixture_logger_provider (line 41) | def fixture_logger_provider(log_exporter): function instrument_legacy (line 48) | def instrument_legacy(tracer_provider): function instrument_with_content (line 60) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 78) | def instrument_with_no_content(tracer_provider, logger_provider): function environment (line 96) | def environment(): function smrt (line 103) | def smrt(): function vcr_config (line 113) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-sagemaker/tests/test_invocation.py function test_sagemaker_completion_string_content_legacy (line 12) | def test_sagemaker_completion_string_content_legacy( function test_sagemaker_completion_string_content_with_events_with_content (line 53) | def test_sagemaker_completion_string_content_with_events_with_content( function test_sagemaker_completion_string_content_with_events_with_no_content (line 105) | def test_sagemaker_completion_string_content_with_events_with_no_content( function assert_message_in_logs (line 154) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-together/opentelemetry/instrumentation/together/__init__.py function _with_tracer_wrapper (line 56) | def _with_tracer_wrapper(func): function _llm_request_type_by_method (line 68) | def _llm_request_type_by_method(method_name): function _handle_input (line 78) | def _handle_input(span, event_logger, llm_request_type, kwargs): function _handle_response (line 88) | def _handle_response(span, event_logger, llm_request_type, response): function _wrap (line 98) | def _wrap( class TogetherAiInstrumentor (line 136) | class TogetherAiInstrumentor(BaseInstrumentor): method __init__ (line 139) | def __init__(self, exception_logger=None, use_legacy_attributes: bool ... method instrumentation_dependencies (line 144) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 147) | def _instrument(self, **kwargs): method _uninstrument (line 167) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-together/opentelemetry/instrumentation/together/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-together/opentelemetry/instrumentation/together/event_emitter.py class Roles (line 26) | class Roles(Enum): function emit_prompt_events (line 41) | def emit_prompt_events(event_logger, llm_request_type, kwargs): function emit_completion_event (line 59) | def emit_completion_event( function emit_event (line 95) | def emit_event( function _emit_message_event (line 115) | def _emit_message_event(event: PromptEvent, event_logger: Logger) -> None: function _emit_choice_event (line 147) | def _emit_choice_event(event: CompletionEvent, event_logger: Logger) -> ... FILE: packages/opentelemetry-instrumentation-together/opentelemetry/instrumentation/together/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class PromptEvent (line 26) | class PromptEvent: class CompletionEvent (line 35) | class CompletionEvent: FILE: packages/opentelemetry-instrumentation-together/opentelemetry/instrumentation/together/span_utils.py function _set_span_attribute (line 11) | def _set_span_attribute(span, name, value): function set_prompt_attributes (line 19) | def set_prompt_attributes(span, llm_request_type, kwargs): function set_model_prompt_attributes (line 45) | def set_model_prompt_attributes(span, kwargs): function set_completion_attributes (line 58) | def set_completion_attributes(span, llm_request_type, response): function set_model_completion_attributes (line 84) | def set_model_completion_attributes(span, response): FILE: packages/opentelemetry-instrumentation-together/opentelemetry/instrumentation/together/utils.py function should_send_prompts (line 11) | def should_send_prompts(): function dont_throw (line 17) | def dont_throw(func): function should_emit_events (line 42) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-together/tests/conftest.py function fixture_span_exporter (line 24) | def fixture_span_exporter(): function fixture_tracer_provider (line 30) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 37) | def fixture_log_exporter(): function fixture_logger_provider (line 43) | def fixture_logger_provider(log_exporter): function together_client (line 50) | def together_client(): function instrument_legacy (line 55) | def instrument_legacy(tracer_provider): function instrument_with_content (line 67) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 83) | def instrument_with_no_content(tracer_provider, logger_provider): function environment (line 99) | def environment(): function vcr_config (line 105) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-together/tests/test_chat.py function test_together_chat_legacy (line 9) | def test_together_chat_legacy( function test_together_chat_with_events_with_content (line 49) | def test_together_chat_with_events_with_content( function test_together_chat_with_events_with_no_content (line 95) | def test_together_chat_with_events_with_no_content( function assert_message_in_logs (line 136) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-together/tests/test_completion.py function test_together_completion_legacy (line 9) | def test_together_completion_legacy( function test_together_completion_with_events_with_content (line 49) | def test_together_completion_with_events_with_content( function test_together_completion_with_events_with_no_content (line 95) | def test_together_completion_with_events_with_no_content( function assert_message_in_logs (line 136) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/__init__.py class TransformersInstrumentor (line 33) | class TransformersInstrumentor(BaseInstrumentor): method __init__ (line 36) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 41) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 44) | def _instrument(self, **kwargs): method _uninstrument (line 69) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/event_emitter.py class Roles (line 19) | class Roles(Enum): function emit_prompt_events (line 34) | def emit_prompt_events(args, kwargs, event_logger) -> None: function emit_response_events (line 51) | def emit_response_events(response, event_logger) -> None: function emit_event (line 67) | def emit_event(event: Union[PromptEvent, CompletionEvent], event_logger)... function _emit_prompt_event (line 85) | def _emit_prompt_event(event: PromptEvent, event_logger) -> None: function _emit_completion_event (line 121) | def _emit_completion_event(event: CompletionEvent, event_logger) -> None: FILE: packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class PromptEvent (line 26) | class PromptEvent: class CompletionEvent (line 35) | class CompletionEvent: FILE: packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/span_utils.py function _set_span_attribute (line 13) | def _set_span_attribute(span, name, value): function set_input_attributes (line 21) | def set_input_attributes(span, instance, args, kwargs): function set_model_input_attributes (line 34) | def set_model_input_attributes(span, instance): function set_response_attributes (line 64) | def set_response_attributes(span, response): function _set_span_completions (line 70) | def _set_span_completions(span, completions): function _set_span_prompts (line 79) | def _set_span_prompts(span, messages): FILE: packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/text_generation_pipeline_wrapper.py function _handle_input (line 30) | def _handle_input(span, event_logger, instance, args, kwargs): function _handle_response (line 39) | def _handle_response(span, event_logger, response): function text_generation_pipeline_wrapper (line 47) | def text_generation_pipeline_wrapper( FILE: packages/opentelemetry-instrumentation-transformers/opentelemetry/instrumentation/transformers/utils.py function should_send_prompts (line 11) | def should_send_prompts(): function with_tracer_wrapper (line 17) | def with_tracer_wrapper(func): function dont_throw (line 29) | def dont_throw(func): function should_emit_events (line 54) | def should_emit_events(): FILE: packages/opentelemetry-instrumentation-transformers/tests/conftest.py function fixture_span_exporter (line 22) | def fixture_span_exporter(): function fixture_tracer_provider (line 28) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 35) | def fixture_log_exporter(): function fixture_logger_provider (line 41) | def fixture_logger_provider(log_exporter): function transformers_pipeline (line 48) | def transformers_pipeline(): function instrument_legacy (line 53) | def instrument_legacy(tracer_provider): function instrument_with_content (line 65) | def instrument_with_content(tracer_provider, logger_provider): function instrument_with_no_content (line 81) | def instrument_with_no_content(tracer_provider, logger_provider): FILE: packages/opentelemetry-instrumentation-transformers/tests/test_pipeline.py function test_tranformers_pipeline (line 15) | def test_tranformers_pipeline( function test_tranformers_pipeline_with_events_with_content (line 39) | def test_tranformers_pipeline_with_events_with_content( function test_tranformers_pipeline_with_events_with_no_content (line 67) | def test_tranformers_pipeline_with_events_with_no_content( function assert_message_in_logs (line 95) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-vertexai/opentelemetry/instrumentation/vertexai/__init__.py function is_streaming_response (line 129) | def is_streaming_response(response): function is_async_streaming_response (line 133) | def is_async_streaming_response(response): function handle_streaming_response (line 138) | def handle_streaming_response(span, event_logger, llm_model, response, t... function _build_from_streaming_response (line 148) | def _build_from_streaming_response(span, event_logger, response, llm_mod... function _abuild_from_streaming_response (line 167) | async def _abuild_from_streaming_response(span, event_logger, response, ... function _handle_request (line 185) | async def _handle_request(span, event_logger, args, kwargs, llm_model): function _handle_response (line 193) | def _handle_response(span, event_logger, response, llm_model): function _with_tracer_wrapper (line 205) | def _with_tracer_wrapper(func): function _awrap (line 218) | async def _awrap(tracer, event_logger, to_wrap, wrapped, instance, args,... function _wrap (line 267) | def _wrap(tracer, event_logger, to_wrap, wrapped, instance, args, kwargs): class VertexAIInstrumentor (line 320) | class VertexAIInstrumentor(BaseInstrumentor): method __init__ (line 323) | def __init__(self, exception_logger=None, use_legacy_attributes=True, ... method instrumentation_dependencies (line 330) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 333) | def _instrument(self, **kwargs): method _uninstrument (line 362) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-vertexai/opentelemetry/instrumentation/vertexai/config.py class Config (line 4) | class Config: FILE: packages/opentelemetry-instrumentation-vertexai/opentelemetry/instrumentation/vertexai/event_emitter.py class Roles (line 22) | class Roles(Enum): function _parse_vertex_finish_reason (line 38) | def _parse_vertex_finish_reason(reason): function emit_prompt_events (line 64) | def emit_prompt_events(args, event_logger): function emit_response_events (line 76) | def emit_response_events(response, event_logger): function emit_event (line 101) | def emit_event(event: Union[MessageEvent, ChoiceEvent], event_logger) ->... function _emit_message_event (line 119) | def _emit_message_event(event: MessageEvent, event_logger) -> None: function _emit_choice_event (line 151) | def _emit_choice_event(event: ChoiceEvent, event_logger) -> None: FILE: packages/opentelemetry-instrumentation-vertexai/opentelemetry/instrumentation/vertexai/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-vertexai/opentelemetry/instrumentation/vertexai/span_utils.py function _set_span_attribute (line 18) | def _set_span_attribute(span, name, value): function _is_base64_image_part (line 25) | def _is_base64_image_part(item): function _process_image_part (line 43) | async def _process_image_part(item, trace_id, span_id, content_index): function run_async (line 71) | def run_async(method): function _process_image_part_sync (line 86) | def _process_image_part_sync(item, trace_id, span_id, content_index): function _process_vertexai_argument (line 119) | async def _process_vertexai_argument(argument, span): function _process_content_item_vertexai (line 143) | async def _process_content_item_vertexai(content_item, span, item_index): function _process_vertexai_argument_sync (line 164) | def _process_vertexai_argument_sync(argument, span): function _process_content_item_vertexai_sync (line 188) | def _process_content_item_vertexai_sync(content_item, span, item_index): function set_input_attributes (line 210) | async def set_input_attributes(span, args): function set_input_attributes_sync (line 234) | def set_input_attributes_sync(span, args): function set_model_input_attributes (line 257) | def set_model_input_attributes(span, kwargs, llm_model): function set_response_attributes (line 281) | def set_response_attributes(span, llm_model, generation_text): function set_model_response_attributes (line 293) | def set_model_response_attributes(span, llm_model, token_usage): FILE: packages/opentelemetry-instrumentation-vertexai/opentelemetry/instrumentation/vertexai/utils.py function should_send_prompts (line 11) | def should_send_prompts(): function dont_throw (line 17) | def dont_throw(func): function should_emit_events (line 42) | def should_emit_events(): FILE: packages/opentelemetry-instrumentation-vertexai/tests/conftest.py function fixture_span_exporter (line 27) | def fixture_span_exporter(): function fixture_tracer_provider (line 33) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 40) | def fixture_log_exporter(): function fixture_logger_provider (line 46) | def fixture_logger_provider(log_exporter): function fixture_reader (line 53) | def fixture_reader(): function fixture_meter_provider (line 61) | def fixture_meter_provider(reader): function instrument_legacy (line 69) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 82) | def instrument_with_content( function instrument_with_no_content (line 101) | def instrument_with_no_content( function vcr_config (line 120) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-vertexai/tests/disabled_test_bison.py function test_vertexai_predict (line 18) | def test_vertexai_predict(instrument_legacy, span_exporter, log_exporter): function test_vertexai_predict_async (line 56) | def test_vertexai_predict_async(instrument_legacy, span_exporter, log_ex... function test_vertexai_stream (line 99) | def test_vertexai_stream(instrument_legacy, span_exporter, log_exporter): function test_vertexai_stream_async (line 134) | def test_vertexai_stream_async(instrument_legacy, span_exporter, log_exp... function test_vertexai_chat (line 174) | def test_vertexai_chat(instrument_legacy, span_exporter, log_exporter): function test_vertexai_chat_stream (line 222) | def test_vertexai_chat_stream(instrument_legacy, span_exporter, log_expo... function assert_message_in_logs (line 267) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-vertexai/tests/disabled_test_gemini.py function test_vertexai_generate_content (line 15) | def test_vertexai_generate_content(instrument_legacy, span_exporter, log... function test_vertexai_generate_content_with_events_with_content (line 65) | def test_vertexai_generate_content_with_events_with_content( function test_vertexai_generate_content_with_events_with_no_content (line 125) | def test_vertexai_generate_content_with_events_with_no_content( function assert_message_in_logs (line 174) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-vertexai/tests/test_placeholder.py function test_placeholder (line 1) | def test_placeholder(): FILE: packages/opentelemetry-instrumentation-vertexai/tests/test_role_attributes.py class TestRoleAttributes (line 11) | class TestRoleAttributes: method setup_method (line 14) | def setup_method(self): method test_async_role_attribute_for_string_args (line 30) | async def test_async_role_attribute_for_string_args(self, mock_should_... method test_async_role_attribute_for_multiple_args (line 49) | async def test_async_role_attribute_for_multiple_args(self, mock_shoul... method test_async_role_attribute_with_mixed_content (line 66) | async def test_async_role_attribute_with_mixed_content(self, mock_shou... method test_sync_role_attribute_for_string_args (line 79) | def test_sync_role_attribute_for_string_args(self, mock_should_send_pr... method test_sync_role_attribute_for_multiple_args (line 97) | def test_sync_role_attribute_for_multiple_args(self, mock_should_send_... method test_sync_role_attribute_with_mixed_content (line 113) | def test_sync_role_attribute_with_mixed_content(self, mock_should_send... method test_async_no_role_when_prompts_disabled (line 127) | async def test_async_no_role_when_prompts_disabled(self, mock_should_s... method test_sync_no_role_when_prompts_disabled (line 138) | def test_sync_no_role_when_prompts_disabled(self, mock_should_send_pro... method test_async_no_role_when_span_not_recording (line 150) | async def test_async_no_role_when_span_not_recording(self, mock_should... method test_sync_no_role_when_span_not_recording (line 162) | def test_sync_no_role_when_span_not_recording(self, mock_should_send_p... method test_async_role_attribute_for_image_content (line 175) | async def test_async_role_attribute_for_image_content(self, mock_shoul... method test_sync_role_attribute_for_image_content (line 195) | def test_sync_role_attribute_for_image_content(self, mock_should_send_... FILE: packages/opentelemetry-instrumentation-voyageai/opentelemetry/instrumentation/voyageai/__init__.py function _with_tracer_wrapper (line 71) | def _with_tracer_wrapper(func): function _handle_input_content (line 84) | def _handle_input_content(span, operation_name, kwargs): function _handle_response_content (line 89) | def _handle_response_content(span, operation_name, response): function _wrap (line 94) | def _wrap( function _awrap (line 138) | async def _awrap( class VoyageAIInstrumentor (line 181) | class VoyageAIInstrumentor(BaseInstrumentor): method __init__ (line 184) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 189) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 192) | def _instrument(self, **kwargs): method _uninstrument (line 222) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-voyageai/opentelemetry/instrumentation/voyageai/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-voyageai/opentelemetry/instrumentation/voyageai/span_utils.py function _set_span_attribute (line 18) | def _set_span_attribute(span, name, value): function set_input_content_attributes (line 26) | def set_input_content_attributes(span, operation_name, kwargs): function set_response_content_attributes (line 72) | def set_response_content_attributes(span, operation_name, response): function set_span_request_attributes (line 83) | def set_span_request_attributes(span, kwargs): function set_span_response_attributes (line 94) | def set_span_response_attributes(span, operation_name, response): function _set_span_rerank_response (line 121) | def _set_span_rerank_response(span, response): FILE: packages/opentelemetry-instrumentation-voyageai/opentelemetry/instrumentation/voyageai/utils.py function dont_throw (line 13) | def dont_throw(func): function should_send_prompts (line 38) | def should_send_prompts(): function should_emit_events (line 44) | def should_emit_events() -> bool: function dump_object (line 52) | def dump_object(obj): function to_dict (line 64) | def to_dict(obj): FILE: packages/opentelemetry-instrumentation-voyageai/tests/conftest.py function fixture_span_exporter (line 16) | def fixture_span_exporter(): function fixture_tracer_provider (line 22) | def fixture_tracer_provider(span_exporter): function voyageai_client (line 29) | def voyageai_client(): function async_voyageai_client (line 34) | def async_voyageai_client(): function instrument_legacy (line 39) | def instrument_legacy(tracer_provider): function environment (line 51) | def environment(): function vcr_config (line 57) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-voyageai/tests/test_embed.py function test_voyageai_embed_legacy (line 9) | def test_voyageai_embed_legacy( function test_voyageai_embed_async_legacy (line 61) | async def test_voyageai_embed_async_legacy( FILE: packages/opentelemetry-instrumentation-voyageai/tests/test_rerank.py function test_voyageai_rerank_legacy (line 8) | def test_voyageai_rerank_legacy( function test_voyageai_rerank_async_legacy (line 83) | async def test_voyageai_rerank_async_legacy( FILE: packages/opentelemetry-instrumentation-watsonx/opentelemetry/instrumentation/watsonx/__init__.py function _set_span_attribute (line 105) | def _set_span_attribute(span, name, value): function _set_api_attributes (line 112) | def _set_api_attributes(span): function is_metrics_enabled (line 124) | def is_metrics_enabled() -> bool: function _set_input_attributes (line 128) | def _set_input_attributes(span, args=None, kwargs=None): function set_model_input_attributes (line 158) | def set_model_input_attributes(span, instance): function _set_stream_response_attributes (line 204) | def _set_stream_response_attributes(span, stream_response): function _set_model_stream_response_attributes (line 214) | def _set_model_stream_response_attributes(span, stream_response): function _set_completion_content_attributes (line 240) | def _set_completion_content_attributes( function _token_usage_count (line 267) | def _token_usage_count(responses): function _set_response_attributes (line 283) | def _set_response_attributes( function set_model_response_attributes (line 326) | def set_model_response_attributes( function _emit_input_events (line 351) | def _emit_input_events(args, kwargs, event_logger): function _emit_response_events (line 362) | def _emit_response_events(response: dict): function _build_and_set_stream_response (line 373) | def _build_and_set_stream_response( function _metric_shared_attributes (line 449) | def _metric_shared_attributes(response_model: str, is_streaming: bool = ... function _with_tracer_wrapper (line 457) | def _with_tracer_wrapper(func): function _handle_input (line 490) | def _handle_input(span, event_logger, name, instance, response_counter, ... function _handle_response (line 503) | def _handle_response( function _handle_stream_response (line 530) | def _handle_stream_response( function _wrap (line 551) | def _wrap( class WatsonxSpanAttributes (line 636) | class WatsonxSpanAttributes: class WatsonxInstrumentor (line 642) | class WatsonxInstrumentor(BaseInstrumentor): method __init__ (line 645) | def __init__(self, exception_logger=None, use_legacy_attributes: bool ... method instrumentation_dependencies (line 650) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 653) | def _instrument(self, **kwargs): method _uninstrument (line 724) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-watsonx/opentelemetry/instrumentation/watsonx/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-watsonx/opentelemetry/instrumentation/watsonx/event_emitter.py class Roles (line 16) | class Roles(Enum): function emit_event (line 32) | def emit_event( function _emit_message_event (line 52) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 84) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-watsonx/opentelemetry/instrumentation/watsonx/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class CompletionMessage (line 18) | class CompletionMessage(TypedDict): class MessageEvent (line 26) | class MessageEvent: class ChoiceEvent (line 35) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-watsonx/opentelemetry/instrumentation/watsonx/utils.py function should_send_prompts (line 14) | def should_send_prompts(): function dont_throw (line 20) | def dont_throw(func): function is_content_enabled (line 45) | def is_content_enabled() -> bool: function should_emit_events (line 53) | def should_emit_events() -> bool: FILE: packages/opentelemetry-instrumentation-watsonx/tests/conftest.py function watson_ai_model (line 10) | def watson_ai_model(): FILE: packages/opentelemetry-instrumentation-watsonx/tests/metrics/conftest.py function metrics_test_context_legacy (line 20) | def metrics_test_context_legacy(): function fixture_log_exporter (line 43) | def fixture_log_exporter(): function fixture_logger_provider (line 49) | def fixture_logger_provider(log_exporter): function metrics_test_context_with_content (line 56) | def metrics_test_context_with_content(logger_provider): function metrics_test_context_with_no_content (line 83) | def metrics_test_context_with_no_content(logger_provider): function vcr_config (line 110) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-watsonx/tests/metrics/test_watsonx_metrics.py function test_generate_metrics (line 14) | def test_generate_metrics(metrics_test_context_legacy, watson_ai_model, ... function test_generate_stream_metrics (line 76) | def test_generate_stream_metrics( FILE: packages/opentelemetry-instrumentation-watsonx/tests/traces/conftest.py function exporter_legacy (line 20) | def exporter_legacy(): function fixture_log_exporter (line 44) | def fixture_log_exporter(): function fixture_logger_provider (line 50) | def fixture_logger_provider(log_exporter): function exporter_with_content (line 57) | def exporter_with_content(logger_provider): function exporter_with_no_content (line 85) | def exporter_with_no_content(logger_provider): function clear_exporter (line 113) | def clear_exporter(exporter_legacy): function vcr_config (line 118) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-watsonx/tests/traces/test_generate.py function test_generate (line 15) | def test_generate(exporter_legacy, watson_ai_model, log_exporter): function test_generate_with_events_with_content (line 40) | def test_generate_with_events_with_content( function test_generate_with_with_events_no_content (line 76) | def test_generate_with_with_events_no_content( function test_generate_text_stream (line 107) | def test_generate_text_stream(exporter_legacy, watson_ai_model, log_expo... function test_generate_text_stream_with_events_with_content (line 140) | def test_generate_text_stream_with_events_with_content( function test_generate_text_stream_with_events_with_no_content (line 181) | def test_generate_text_stream_with_events_with_no_content( function assert_message_in_logs (line 218) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... FILE: packages/opentelemetry-instrumentation-weaviate/opentelemetry/instrumentation/weaviate/__init__.py class WeaviateInstrumentor (line 214) | class WeaviateInstrumentor(BaseInstrumentor): method __init__ (line 217) | def __init__(self, exception_logger=None): method instrumentation_dependencies (line 221) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 224) | def _instrument(self, **kwargs): method _uninstrument (line 243) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-weaviate/opentelemetry/instrumentation/weaviate/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-weaviate/opentelemetry/instrumentation/weaviate/utils.py function dont_throw (line 7) | def dont_throw(func): FILE: packages/opentelemetry-instrumentation-weaviate/opentelemetry/instrumentation/weaviate/wrapper.py function _with_tracer_wrapper (line 14) | def _with_tracer_wrapper(func): function _set_span_attribute (line 26) | def _set_span_attribute(span, name, value): function _wrap (line 34) | def _wrap(tracer, to_wrap, wrapped, instance, args, kwargs): function count_or_none (line 54) | def count_or_none(obj): class ArgsGetter (line 61) | class ArgsGetter: method __init__ (line 68) | def __init__(self, args, kwargs): method __call__ (line 72) | def __call__(self, index, name): class _Instrumentor (line 87) | class _Instrumentor: method map_attributes (line 88) | def map_attributes(self, span, method_name, attributes, args, kwargs): method instrument (line 98) | def instrument(self, method_name, span, args, kwargs): class _SchemaInstrumentorV3 (line 104) | class _SchemaInstrumentorV3(_Instrumentor): class _CollectionsInstrumentor (line 115) | class _CollectionsInstrumentor(_Instrumentor): class _DataObjectInstrumentorV3 (line 125) | class _DataObjectInstrumentorV3(_Instrumentor): class _DataObjectInstrumentor (line 159) | class _DataObjectInstrumentor(_Instrumentor): class _BatchInstrumentorV3 (line 183) | class _BatchInstrumentorV3(_Instrumentor): class _BatchInstrumentor (line 198) | class _BatchInstrumentor(_Instrumentor): class _QueryInstrumentorV3 (line 210) | class _QueryInstrumentorV3(_Instrumentor): class _QueryInstrumentor (line 223) | class _QueryInstrumentor(_Instrumentor): class _AggregateBuilderInstrumentor (line 246) | class _AggregateBuilderInstrumentor(_Instrumentor): class _GetBuilderInstrumentorV3 (line 253) | class _GetBuilderInstrumentorV3(_Instrumentor): class _GetBuilderInstrumentor (line 261) | class _GetBuilderInstrumentor(_Instrumentor): class _GraphQLInstrumentor (line 268) | class _GraphQLInstrumentor(_Instrumentor): class _RawInstrumentor (line 275) | class _RawInstrumentor(_Instrumentor): class InstrumentorFactory (line 282) | class InstrumentorFactory: method from_name (line 284) | def from_name(cls, name: str) -> Optional[_Instrumentor]: FILE: packages/opentelemetry-instrumentation-weaviate/tests/conftest.py function pytest_collection_modifyitems (line 20) | def pytest_collection_modifyitems(config, items): function pytest_addoption (line 32) | def pytest_addoption(parser): function pytest_runtest_setup (line 44) | def pytest_runtest_setup(item): function exporter (line 50) | def exporter(): function clear_exporter (line 65) | def clear_exporter(exporter): function environment (line 70) | def environment(): function vcr_config (line 79) | def vcr_config(): FILE: packages/opentelemetry-instrumentation-weaviate/tests/test_weaviate_instrumentation.py function fixture_client (line 41) | def fixture_client(): function create_collection (line 48) | def create_collection(wclient: weaviate.WeaviateClient) -> None: function create_collection_from_dict (line 67) | def create_collection_from_dict(wclient: weaviate.WeaviateClient) -> None: function get_collection (line 71) | def get_collection( function delete_collection (line 77) | def delete_collection(wclient: weaviate.WeaviateClient) -> None: function insert_data (line 81) | def insert_data(wclient: weaviate.WeaviateClient) -> str: function create_batch (line 93) | def create_batch(wclient: weaviate.WeaviateClient) -> None: function query_fetch_object_by_id (line 122) | def query_fetch_object_by_id(wclient: weaviate.WeaviateClient, uuid_valu... function query_fetch_objects (line 127) | def query_fetch_objects(wclient: weaviate.WeaviateClient): function query_aggregate (line 132) | def query_aggregate(wclient: weaviate.WeaviateClient): function query_raw (line 137) | def query_raw(wclient): function delete_all (line 141) | def delete_all(wclient: weaviate.WeaviateClient): function test_weaviate_delete_all (line 146) | def test_weaviate_delete_all(client, exporter): function test_weaviate_create_collection (line 160) | def test_weaviate_create_collection(client, exporter): function test_weaviate_create_collection_from_dict (line 172) | def test_weaviate_create_collection_from_dict(client, exporter): function test_weaviate_get_collection (line 196) | def test_weaviate_get_collection(client, exporter): function test_weaviate_delete_collection (line 209) | def test_weaviate_delete_collection(client, exporter): function test_weaviate_insert_data (line 222) | def test_weaviate_insert_data(client, exporter): function test_weaviate_create_batch (line 242) | def test_weaviate_create_batch(client, exporter): function test_weaviate_query_fetch_object_by_id (line 269) | def test_weaviate_query_fetch_object_by_id(client, exporter): function test_weaviate_query_fetch_objects (line 293) | def test_weaviate_query_fetch_objects(client, exporter): function test_weaviate_query_aggregate (line 317) | def test_weaviate_query_aggregate(client, exporter): function test_weaviate_query_raw (line 338) | def test_weaviate_query_raw(client, exporter): FILE: packages/opentelemetry-instrumentation-weaviate/tests/test_weaviate_instrumentation_v3.py function client (line 11) | def client(environment): function create_schemas (line 85) | def create_schemas(client: weaviate.Client): function create_schema (line 89) | def create_schema(client: weaviate.Client): function get_schema (line 93) | def get_schema(client: weaviate.Client): function delete_schema (line 97) | def delete_schema(client: weaviate.Client): function create_object (line 101) | def create_object(client: weaviate.Client): function create_batch (line 111) | def create_batch(client: weaviate.Client): function query_get (line 139) | def query_get(client): function query_aggregate (line 143) | def query_aggregate(client): function query_raw (line 147) | def query_raw(client): function delete_all (line 151) | def delete_all(client: weaviate.Client): function validate (line 155) | def validate(): function test_weaviate_delete_all (line 166) | def test_weaviate_delete_all(client, exporter): function test_weaviate_create_schemas (line 177) | def test_weaviate_create_schemas(client, exporter): function test_weaviate_create_schema (line 190) | def test_weaviate_create_schema(client, exporter): function test_weaviate_get_schema (line 208) | def test_weaviate_get_schema(client, exporter): function test_weaviate_delete_schema (line 227) | def test_weaviate_delete_schema(client, exporter): function test_weaviate_create_data_object (line 244) | def test_weaviate_create_data_object(client, exporter): function test_weaviate_create_batch (line 266) | def test_weaviate_create_batch(client, exporter): function test_weaviate_query_get (line 298) | def test_weaviate_query_get(client, exporter): function test_weaviate_query_aggregate (line 314) | def test_weaviate_query_aggregate(client, exporter): function test_weaviate_query_raw (line 331) | def test_weaviate_query_raw(client, exporter): FILE: packages/opentelemetry-instrumentation-writer/opentelemetry/instrumentation/writer/__init__.py function is_streaming_response (line 72) | def is_streaming_response(response): function _update_accumulated_response (line 76) | def _update_accumulated_response(accumulated_response, chunk): function _create_stream_processor (line 164) | def _create_stream_processor( function _create_async_stream_processor (line 224) | async def _create_async_stream_processor( function _handle_input (line 284) | def _handle_input(span, kwargs, event_logger): function _with_tracer_wrapper (line 292) | def _with_tracer_wrapper(func): function _handle_response (line 324) | def _handle_response(span, response, token_histogram, event_logger, meth... function _wrap (line 333) | def _wrap( function _awrap (line 434) | async def _awrap( function _build_metrics (line 534) | def _build_metrics(meter: Meter): function is_metrics_collection_enabled (line 567) | def is_metrics_collection_enabled() -> bool: class WriterInstrumentor (line 571) | class WriterInstrumentor(BaseInstrumentor): method __init__ (line 574) | def __init__(self, exception_logger=None, use_legacy_attributes=True): method instrumentation_dependencies (line 579) | def instrumentation_dependencies(self) -> Collection[str]: method _instrument (line 582) | def _instrument(self, **kwargs): method _uninstrument (line 654) | def _uninstrument(self, **kwargs): FILE: packages/opentelemetry-instrumentation-writer/opentelemetry/instrumentation/writer/config.py class Config (line 1) | class Config: FILE: packages/opentelemetry-instrumentation-writer/opentelemetry/instrumentation/writer/event_emitter.py class Roles (line 17) | class Roles(Enum): function emit_message_events (line 35) | def emit_message_events(kwargs: dict, event_logger) -> None: function emit_choice_events (line 57) | def emit_choice_events(response, event_logger) -> None: function emit_event (line 90) | def emit_event( function _emit_message_event (line 104) | def _emit_message_event(event: MessageEvent, event_logger: Logger) -> None: function _emit_choice_event (line 130) | def _emit_choice_event(event: ChoiceEvent, event_logger: Logger) -> None: FILE: packages/opentelemetry-instrumentation-writer/opentelemetry/instrumentation/writer/event_models.py class _FunctionToolCall (line 5) | class _FunctionToolCall(TypedDict): class ToolCall (line 10) | class ToolCall(TypedDict): class MessageEvent (line 17) | class MessageEvent: class ChoiceEvent (line 24) | class ChoiceEvent: FILE: packages/opentelemetry-instrumentation-writer/opentelemetry/instrumentation/writer/span_utils.py function set_input_attributes (line 13) | def set_input_attributes(span: Span, kwargs: dict) -> None: function set_model_input_attributes (line 60) | def set_model_input_attributes(span: Span, kwargs: dict) -> None: function set_model_response_attributes (line 79) | def set_model_response_attributes( function set_response_attributes (line 129) | def set_response_attributes(span: Span, response) -> None: function _set_completions (line 140) | def _set_completions(span: Span, choices: list) -> None: FILE: packages/opentelemetry-instrumentation-writer/opentelemetry/instrumentation/writer/utils.py function set_span_attribute (line 28) | def set_span_attribute(span: Span, name: str, value: Any | None) -> None: function should_send_prompts (line 33) | def should_send_prompts() -> bool: function dont_throw (line 39) | def dont_throw(func): function error_metrics_attributes (line 65) | def error_metrics_attributes(exception) -> dict: function request_type_by_method (line 73) | def request_type_by_method(method_name): function response_attributes (line 83) | def response_attributes(response, method) -> dict: function should_emit_events (line 93) | def should_emit_events() -> bool: function model_as_dict (line 102) | def model_as_dict(model) -> dict: function initialize_accumulated_response (line 113) | def initialize_accumulated_response(stream): function initialize_choice (line 130) | def initialize_choice(): function initialize_tool_call (line 142) | def initialize_tool_call(): function enhance_list_size (line 148) | def enhance_list_size(current_list, desired_size): FILE: packages/opentelemetry-instrumentation-writer/tests/conftest.py function fixture_span_exporter (line 27) | def fixture_span_exporter(): function fixture_tracer_provider (line 33) | def fixture_tracer_provider(span_exporter): function fixture_log_exporter (line 40) | def fixture_log_exporter(): function fixture_logger_provider (line 46) | def fixture_logger_provider(log_exporter): function fixture_reader (line 53) | def fixture_reader(): function fixture_meter_provider (line 61) | def fixture_meter_provider(reader): function writer_client (line 69) | def writer_client(): function writer_client_async (line 74) | def writer_client_async(): function instrument_legacy (line 79) | def instrument_legacy(reader, tracer_provider, meter_provider): function instrument_with_content (line 92) | def instrument_with_content( function instrument_with_no_content (line 111) | def instrument_with_no_content( FILE: packages/opentelemetry-instrumentation-writer/tests/test_chat.py function assert_message_in_logs (line 11) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... function test_writer_chat_legacy (line 23) | def test_writer_chat_legacy( function test_writer_chat_with_events_with_content (line 85) | def test_writer_chat_with_events_with_content( function test_writer_chat_with_events_with_no_content (line 149) | def test_writer_chat_with_events_with_no_content( function test_writer_chat_tool_calls_legacy (line 209) | def test_writer_chat_tool_calls_legacy( function test_writer_chat_tool_calls_with_events_with_content (line 323) | def test_writer_chat_tool_calls_with_events_with_content( function test_writer_chat_tool_calls_with_events_with_no_content (line 441) | def test_writer_chat_tool_calls_with_events_with_no_content( function test_writer_streaming_chat_legacy (line 550) | def test_writer_streaming_chat_legacy( function test_writer_streaming_chat_with_events_with_content (line 617) | def test_writer_streaming_chat_with_events_with_content( function test_writer_streaming_chat_with_events_with_no_content (line 688) | def test_writer_streaming_chat_with_events_with_no_content( function test_writer_streaming_chat_tool_calls_legacy (line 754) | def test_writer_streaming_chat_tool_calls_legacy( function test_writer_streaming_chat_tool_calls_with_events_with_content (line 874) | def test_writer_streaming_chat_tool_calls_with_events_with_content( function test_writer_streaming_chat_tool_calls_with_events_with_no_content (line 998) | def test_writer_streaming_chat_tool_calls_with_events_with_no_content( function test_writer_chat_tool_call_request_legacy (line 1113) | def test_writer_chat_tool_call_request_legacy( function test_writer_chat_tool_call_request_with_events_with_content (line 1210) | def test_writer_chat_tool_call_request_with_events_with_content( function test_writer_chat_tool_call_request_with_events_with_no_content (line 1306) | def test_writer_chat_tool_call_request_with_events_with_no_content( function test_writer_streaming_chat_tool_call_request_legacy (line 1394) | def test_writer_streaming_chat_tool_call_request_legacy( function test_writer_streaming_chat_tool_call_request_with_events_with_content (line 1495) | def test_writer_streaming_chat_tool_call_request_with_events_with_content( function test_writer_streaming_chat_tool_call_request_with_events_with_no_content (line 1593) | def test_writer_streaming_chat_tool_call_request_with_events_with_no_con... function test_writer_chat_multiple_choices_legacy (line 1685) | def test_writer_chat_multiple_choices_legacy( function test_writer_chat_multiple_choices_with_events_with_content (line 1753) | def test_writer_chat_multiple_choices_with_events_with_content( function test_writer_chat_multiple_choices_with_events_with_no_content (line 1826) | def test_writer_chat_multiple_choices_with_events_with_no_content( function test_writer_streaming_chat_multiple_choices_legacy (line 1895) | def test_writer_streaming_chat_multiple_choices_legacy( function test_writer_streaming_chat_multiple_choices_with_events_with_content (line 1969) | def test_writer_streaming_chat_multiple_choices_with_events_with_content( function test_writer_streaming_chat_multiple_choices_with_events_with_no_content (line 2050) | def test_writer_streaming_chat_multiple_choices_with_events_with_no_cont... function test_writer_chat_multiple_tool_call_requests_legacy (line 2126) | def test_writer_chat_multiple_tool_call_requests_legacy( function test_writer_chat_multiple_tool_call_requests_with_events_with_content (line 2232) | def test_writer_chat_multiple_tool_call_requests_with_events_with_content( function test_writer_chat_multiple_tool_call_requests_with_events_with_no_content (line 2333) | def test_writer_chat_multiple_tool_call_requests_with_events_with_no_con... function test_writer_streaming_chat_multiple_tool_call_requests_legacy (line 2426) | def test_writer_streaming_chat_multiple_tool_call_requests_legacy( function test_writer_streaming_chat_multiple_tool_call_requests_with_events_with_content (line 2544) | def test_writer_streaming_chat_multiple_tool_call_requests_with_events_w... function test_writer_streaming_chat_multiple_tool_call_requests_with_events_with_no_content (line 2657) | def test_writer_streaming_chat_multiple_tool_call_requests_with_events_w... function test_writer_async_chat_legacy (line 2763) | async def test_writer_async_chat_legacy( function test_writer_async_chat_with_events_with_content (line 2825) | async def test_writer_async_chat_with_events_with_content( function test_writer_async_chat_with_events_with_no_content (line 2890) | async def test_writer_async_chat_with_events_with_no_content( function test_writer_async_chat_tool_calls_legacy (line 2950) | async def test_writer_async_chat_tool_calls_legacy( function test_writer_async_chat_tool_calls_with_events_with_content (line 3065) | async def test_writer_async_chat_tool_calls_with_events_with_content( function test_writer_async_chat_tool_calls_with_events_with_no_content (line 3184) | async def test_writer_async_chat_tool_calls_with_events_with_no_content( function test_writer_async_streaming_chat_legacy (line 3294) | async def test_writer_async_streaming_chat_legacy( function test_writer_async_streaming_chat_with_events_with_content (line 3362) | async def test_writer_async_streaming_chat_with_events_with_content( function test_writer_async_streaming_chat_with_events_with_no_content (line 3434) | async def test_writer_async_streaming_chat_with_events_with_no_content( function test_writer_async_streaming_chat_tool_calls_legacy (line 3501) | async def test_writer_async_streaming_chat_tool_calls_legacy( function test_writer_async_streaming_chat_tool_calls_with_events_with_content (line 3622) | async def test_writer_async_streaming_chat_tool_calls_with_events_with_c... function test_writer_async_streaming_chat_tool_calls_with_events_with_no_content (line 3747) | async def test_writer_async_streaming_chat_tool_calls_with_events_with_n... function test_writer_async_chat_tool_call_request_legacy (line 3863) | async def test_writer_async_chat_tool_call_request_legacy( function test_writer_async_chat_tool_call_request_with_events_with_content (line 3961) | async def test_writer_async_chat_tool_call_request_with_events_with_cont... function test_writer_async_chat_tool_call_request_with_events_with_no_content (line 4058) | async def test_writer_async_chat_tool_call_request_with_events_with_no_c... function test_writer_async_streaming_chat_tool_call_request_legacy (line 4147) | async def test_writer_async_streaming_chat_tool_call_request_legacy( function test_writer_async_streaming_chat_tool_call_request_with_events_with_content (line 4249) | async def test_writer_async_streaming_chat_tool_call_request_with_events... function test_writer_async_streaming_chat_tool_call_request_with_events_with_no_content (line 4348) | async def test_writer_async_streaming_chat_tool_call_request_with_events... function test_writer_async_chat_multiple_choices_legacy (line 4441) | async def test_writer_async_chat_multiple_choices_legacy( function test_writer_async_chat_multiple_choices_with_events_with_content (line 4510) | async def test_writer_async_chat_multiple_choices_with_events_with_content( function test_writer_async_chat_multiple_choices_with_events_with_no_content (line 4584) | async def test_writer_async_chat_multiple_choices_with_events_with_no_co... function test_writer_async_streaming_chat_multiple_choices_legacy (line 4654) | async def test_writer_async_streaming_chat_multiple_choices_legacy( function test_writer_async_streaming_chat_multiple_choices_with_events_with_content (line 4729) | async def test_writer_async_streaming_chat_multiple_choices_with_events_... function test_writer_async_streaming_chat_multiple_choices_with_events_with_no_content (line 4811) | async def test_writer_async_streaming_chat_multiple_choices_with_events_... function test_writer_async_chat_multiple_tool_call_requests_legacy (line 4888) | async def test_writer_async_chat_multiple_tool_call_requests_legacy( function test_writer_async_chat_multiple_tool_call_requests_with_events_with_content (line 4995) | async def test_writer_async_chat_multiple_tool_call_requests_with_events... function test_writer_async_chat_multiple_tool_call_requests_with_events_with_no_content (line 5097) | async def test_writer_async_chat_multiple_tool_call_requests_with_events... function test_writer_async_streaming_chat_multiple_tool_call_requests_legacy (line 5191) | async def test_writer_async_streaming_chat_multiple_tool_call_requests_l... function test_writer_async_streaming_chat_multiple_tool_call_requests_with_events_with_content (line 5310) | async def test_writer_async_streaming_chat_multiple_tool_call_requests_w... function test_writer_async_streaming_chat_multiple_tool_call_requests_with_events_with_no_content (line 5424) | async def test_writer_async_streaming_chat_multiple_tool_call_requests_w... FILE: packages/opentelemetry-instrumentation-writer/tests/test_completions.py function test_writer_completions_legacy (line 9) | def test_writer_completions_legacy( function test_writer_completions_with_events_with_content (line 60) | def test_writer_completions_with_events_with_content( function test_writer_completions_with_events_with_no_content (line 113) | def test_writer_completions_with_events_with_no_content( function test_writer_streaming_completions_legacy (line 162) | def test_writer_streaming_completions_legacy( function test_writer_streaming_completions_with_events_with_content (line 217) | def test_writer_streaming_completions_with_events_with_content( function test_writer_streaming_completions_with_events_with_no_content (line 275) | def test_writer_streaming_completions_with_events_with_no_content( function test_writer_async_completions_legacy (line 330) | async def test_writer_async_completions_legacy( function test_writer_async_completions_with_events_with_content (line 383) | async def test_writer_async_completions_with_events_with_content( function test_writer_async_completions_with_events_with_no_content (line 437) | async def test_writer_async_completions_with_events_with_no_content( function assert_message_in_logs (line 485) | def assert_message_in_logs(log: ReadableLogRecord, event_name: str, expe... function test_writer_async_streaming_completions_legacy (line 498) | async def test_writer_async_streaming_completions_legacy( function test_writer_async_streaming_completions_with_events_with_content (line 554) | async def test_writer_async_streaming_completions_with_events_with_content( function test_writer_async_streaming_completions_with_events_with_no_content (line 613) | async def test_writer_async_streaming_completions_with_events_with_no_co... FILE: packages/opentelemetry-instrumentation-writer/tests/test_metrics.py function test_writer_metrics (line 8) | def test_writer_metrics(instrument_legacy, reader, writer_client): function test_writer_async_metrics (line 66) | async def test_writer_async_metrics(instrument_legacy, reader, writer_cl... function test_writer_streaming_metrics (line 123) | def test_writer_streaming_metrics(instrument_legacy, reader, writer_clie... function test_writer_async_streaming_metrics (line 221) | async def test_writer_async_streaming_metrics( FILE: packages/opentelemetry-semantic-conventions-ai/opentelemetry/semconv_ai/__init__.py class GenAISystem (line 6) | class GenAISystem(Enum): class Meters (line 38) | class Meters: class SpanAttributes (line 66) | class SpanAttributes: class Events (line 264) | class Events(Enum): class EventAttributes (line 271) | class EventAttributes(Enum): class LLMRequestTypeValues (line 293) | class LLMRequestTypeValues(Enum): class TraceloopSpanKindValues (line 301) | class TraceloopSpanKindValues(Enum): class GenAICustomOperationName (line 309) | class GenAICustomOperationName(Enum): class GenAITaskStatus (line 325) | class GenAITaskStatus(Enum): FILE: packages/opentelemetry-semantic-conventions-ai/opentelemetry/semconv_ai/_testing.py class TestSpanAttributesGENAIRenamed (line 22) | class TestSpanAttributesGENAIRenamed: method test_gen_ai_usage_total_tokens (line 25) | def test_gen_ai_usage_total_tokens(self): method test_gen_ai_usage_token_type (line 28) | def test_gen_ai_usage_token_type(self): method test_gen_ai_user (line 31) | def test_gen_ai_user(self): method test_gen_ai_headers (line 34) | def test_gen_ai_headers(self): method test_gen_ai_is_streaming (line 37) | def test_gen_ai_is_streaming(self): method test_gen_ai_request_repetition_penalty (line 40) | def test_gen_ai_request_repetition_penalty(self): method test_gen_ai_response_finish_reason (line 43) | def test_gen_ai_response_finish_reason(self): method test_gen_ai_response_stop_reason (line 46) | def test_gen_ai_response_stop_reason(self): method test_gen_ai_content_completion_chunk (line 49) | def test_gen_ai_content_completion_chunk(self): method test_gen_ai_request_reasoning_effort (line 52) | def test_gen_ai_request_reasoning_effort(self): method test_gen_ai_usage_reasoning_tokens (line 55) | def test_gen_ai_usage_reasoning_tokens(self): method test_gen_ai_request_n (line 58) | def test_gen_ai_request_n(self): method test_gen_ai_request_max_completion_tokens (line 61) | def test_gen_ai_request_max_completion_tokens(self): method test_gen_ai_request_structured_output_schema (line 64) | def test_gen_ai_request_structured_output_schema(self): method test_gen_ai_request_reasoning_summary (line 67) | def test_gen_ai_request_reasoning_summary(self): method test_gen_ai_response_reasoning_effort (line 70) | def test_gen_ai_response_reasoning_effort(self): method test_gen_ai_openai_api_base (line 73) | def test_gen_ai_openai_api_base(self): method test_gen_ai_openai_api_version (line 76) | def test_gen_ai_openai_api_version(self): method test_gen_ai_openai_api_type (line 79) | def test_gen_ai_openai_api_type(self): class TestSpanAttributesOldNamesGone (line 88) | class TestSpanAttributesOldNamesGone: method test_old_name_absent (line 116) | def test_old_name_absent(self, old_name): class TestSpanAttributesCacheDotSeparator (line 128) | class TestSpanAttributesCacheDotSeparator: method test_gen_ai_usage_cache_read_input_tokens (line 131) | def test_gen_ai_usage_cache_read_input_tokens(self): method test_gen_ai_usage_cache_creation_input_tokens (line 134) | def test_gen_ai_usage_cache_creation_input_tokens(self): class TestSpanAttributesProjectPolicy (line 143) | class TestSpanAttributesProjectPolicy: method test_is_streaming (line 146) | def test_is_streaming(self): method test_user (line 149) | def test_user(self): method test_headers (line 152) | def test_headers(self): class TestSpanAttributesOldValuesAbsent (line 156) | class TestSpanAttributesOldValuesAbsent: method test_old_value_not_in_span_attributes (line 184) | def test_old_value_not_in_span_attributes(self, old_value): class TestSpanAttributesUnchanged (line 196) | class TestSpanAttributesUnchanged: method test_traceloop_span_kind_unchanged (line 199) | def test_traceloop_span_kind_unchanged(self): class TestSpanAttributesWatsonxKept (line 208) | class TestSpanAttributesWatsonxKept: method test_watsonx_decoding_method_kept (line 215) | def test_watsonx_decoding_method_kept(self): method test_watsonx_random_seed_kept (line 218) | def test_watsonx_random_seed_kept(self): method test_watsonx_max_new_tokens_kept (line 221) | def test_watsonx_max_new_tokens_kept(self): method test_watsonx_min_new_tokens_kept (line 224) | def test_watsonx_min_new_tokens_kept(self): method test_watsonx_repetition_penalty_kept (line 227) | def test_watsonx_repetition_penalty_kept(self): class TestGenAISystemOtelAligned (line 236) | class TestGenAISystemOtelAligned: method test_openai (line 239) | def test_openai(self): method test_anthropic_lowercase (line 242) | def test_anthropic_lowercase(self): method test_cohere_lowercase (line 249) | def test_cohere_lowercase(self): method test_mistralai_spec_format (line 255) | def test_mistralai_spec_format(self): method test_groq_lowercase (line 261) | def test_groq_lowercase(self): method test_watsonx_spec_format (line 267) | def test_watsonx_spec_format(self): method test_aws_spec_format (line 273) | def test_aws_spec_format(self): method test_azure_spec_format (line 279) | def test_azure_spec_format(self): method test_google_spec_format (line 285) | def test_google_spec_format(self): class TestGenAISystemProjectValues (line 292) | class TestGenAISystemProjectValues: method test_ollama (line 295) | def test_ollama(self): method test_aleph_alpha (line 298) | def test_aleph_alpha(self): method test_replicate (line 301) | def test_replicate(self): method test_together_ai (line 304) | def test_together_ai(self): method test_huggingface (line 307) | def test_huggingface(self): method test_fireworks (line 310) | def test_fireworks(self): method test_openrouter (line 313) | def test_openrouter(self): method test_langchain (line 316) | def test_langchain(self): method test_crewai (line 319) | def test_crewai(self): class TestGenAISystemNoCaps (line 323) | class TestGenAISystemNoCaps: method test_all_values_lowercase (line 326) | def test_all_values_lowercase(self): class TestMetersGenAiNamespace (line 343) | class TestMetersGenAiNamespace: method test_streaming_time_to_generate (line 346) | def test_streaming_time_to_generate(self): method test_core_metrics_unchanged (line 349) | def test_core_metrics_unchanged(self): class TestMetersVendorNamespacesKept (line 356) | class TestMetersVendorNamespacesKept: method test_openai_completions_exceptions_kept (line 364) | def test_openai_completions_exceptions_kept(self): method test_openai_embeddings_exceptions_kept (line 367) | def test_openai_embeddings_exceptions_kept(self): method test_openai_embeddings_vector_size_kept (line 370) | def test_openai_embeddings_vector_size_kept(self): method test_openai_image_generations_exceptions_kept (line 373) | def test_openai_image_generations_exceptions_kept(self): method test_anthropic_completion_exceptions_kept (line 376) | def test_anthropic_completion_exceptions_kept(self): method test_watsonx_metrics_kept (line 379) | def test_watsonx_metrics_kept(self): FILE: packages/opentelemetry-semantic-conventions-ai/opentelemetry/semconv_ai/utils.py function dont_throw (line 4) | def dont_throw(func): FILE: packages/opentelemetry-semantic-conventions-ai/tests/test_placeholder.py function test_placeholder (line 1) | def test_placeholder(): FILE: packages/sample-app/sample_app/agents/travel_agent_example.py class CountryInfo (line 29) | class CountryInfo(BaseModel): class DestinationSearchResponse (line 40) | class DestinationSearchResponse(BaseModel): class DailyForecast (line 47) | class DailyForecast(BaseModel): class WeatherForecast (line 54) | class WeatherForecast(BaseModel): class WeatherResponse (line 63) | class WeatherResponse(BaseModel): class LocationCoordinates (line 69) | class LocationCoordinates(BaseModel): class CoordinatesResponse (line 77) | class CoordinatesResponse(BaseModel): class DestinationInfo (line 83) | class DestinationInfo(BaseModel): class DestinationInfoResponse (line 89) | class DestinationInfoResponse(BaseModel): class TravelDistance (line 95) | class TravelDistance(BaseModel): class DistanceResponse (line 102) | class DistanceResponse(BaseModel): class DayActivity (line 108) | class DayActivity(BaseModel): class DayPlan (line 115) | class DayPlan(BaseModel): class TravelItinerary (line 124) | class TravelItinerary(BaseModel): class ItineraryResponse (line 134) | class ItineraryResponse(BaseModel): class TravelContext (line 141) | class TravelContext: method __post_init__ (line 145) | def __post_init__(self): function search_destinations (line 151) | async def search_destinations( function get_weather_forecast (line 220) | async def get_weather_forecast( function get_location_coordinates (line 325) | async def get_location_coordinates( function get_destination_info (line 389) | async def get_destination_info( function calculate_travel_distance (line 439) | async def calculate_travel_distance( function create_itinerary (line 506) | async def create_itinerary( class TravelPlannerAgent (line 594) | class TravelPlannerAgent(Agent[TravelContext]): method __init__ (line 597) | def __init__(self, model: str = "gpt-4o"): function handle_runner_stream (line 653) | async def handle_runner_stream(runner: "Runner"): function run_travel_query (line 704) | async def run_travel_query(query: str, return_response_text: bool = False): function generate_travel_queries (line 739) | def generate_travel_queries(n: int = 10) -> List[str]: function main (line 862) | async def main(): FILE: packages/sample-app/sample_app/agno_async_example.py function calculate_sum (line 11) | def calculate_sum(a: int, b: int) -> int: function calculate_product (line 16) | def calculate_product(a: int, b: int) -> int: function run_async_agent (line 22) | async def run_async_agent(): FILE: packages/sample-app/sample_app/agno_discussion_team.py function run_discussion_team (line 16) | def run_discussion_team(): FILE: packages/sample-app/sample_app/agno_example.py function get_weather (line 14) | def get_weather(location: str) -> str: function run_agent (line 20) | def run_agent(): FILE: packages/sample-app/sample_app/agno_streaming_example.py function get_weather (line 10) | def get_weather(location: str) -> str: function test_streaming (line 15) | async def test_streaming(): FILE: packages/sample-app/sample_app/agno_team_example.py function run_team (line 13) | def run_team(): FILE: packages/sample-app/sample_app/anthropic_joke_example.py function joke_workflow (line 10) | def joke_workflow(): FILE: packages/sample-app/sample_app/anthropic_joke_streaming_example.py function joke_workflow (line 10) | def joke_workflow(): FILE: packages/sample-app/sample_app/anthropic_structured_outputs_demo.py function main (line 14) | def main(): FILE: packages/sample-app/sample_app/anthropic_vision_base64_example.py function encode_image (line 16) | def encode_image(image_path): function task (line 22) | async def task(): function workflow (line 59) | def workflow(): FILE: packages/sample-app/sample_app/async_anthropic_example.py class JokeAgent (line 14) | class JokeAgent: method generate_joke (line 15) | async def generate_joke(self): class PirateJokeAgent (line 25) | class PirateJokeAgent(JokeAgent): method generate_joke (line 26) | async def generate_joke(self): method generation_helper (line 29) | async def generation_helper(self): function joke_generator (line 43) | async def joke_generator(): FILE: packages/sample-app/sample_app/async_anthropic_joke_streaming.py class JokeAgent (line 14) | class JokeAgent: method generate_joke (line 15) | async def generate_joke(self): class PirateJokeAgent (line 31) | class PirateJokeAgent(JokeAgent): method generate_joke (line 32) | async def generate_joke(self): method generation_helper (line 35) | async def generation_helper(self): function joke_generator (line 54) | async def joke_generator(): FILE: packages/sample-app/sample_app/async_methods_decorated_app.py class JokeAgent (line 16) | class JokeAgent: method generate_joke (line 17) | async def generate_joke(self): class PirateJokeAgent (line 27) | class PirateJokeAgent(JokeAgent): method generate_joke (line 28) | async def generate_joke(self): method generation_helper (line 31) | async def generation_helper(self): function joke_generator (line 44) | async def joke_generator(): FILE: packages/sample-app/sample_app/bedrock_example_app.py function create_joke (line 12) | def create_joke(): function joke_workflow (line 34) | def joke_workflow(): FILE: packages/sample-app/sample_app/chats/chatbot_with_tools_example.py function get_weather (line 31) | async def get_weather(cw: RunContextWrapper, city: str) -> Dict[str, str]: function calculate (line 67) | async def calculate(cw: RunContextWrapper, expression: str) -> Dict[str,... function get_current_time (line 103) | async def get_current_time(cw: RunContextWrapper, timezone: str = "UTC")... function create_assistant_agent (line 122) | def create_assistant_agent(name: str = "Assistant", model: str = "gpt-4o... function main (line 153) | async def main(): FILE: packages/sample-app/sample_app/chats/gemini_chatbot.py function get_weather (line 18) | def get_weather(location: str) -> str: function get_current_time (line 30) | def get_current_time(timezone: str = "UTC") -> str: function search_knowledge_base (line 36) | def search_knowledge_base(query: str) -> str: function execute_function (line 112) | def execute_function(function_name: str, args: dict) -> str: function process_message (line 125) | def process_message(session_id: str, user_message: str, conversation_his... function main (line 190) | def main(): FILE: packages/sample-app/sample_app/chroma_app.py function build_prompt_with_context (line 44) | def build_prompt_with_context(claim, context): function assess_claims (line 72) | def assess_claims(claims): FILE: packages/sample-app/sample_app/chroma_sentence_transformer_app.py function build_prompt_with_context (line 58) | def build_prompt_with_context(claim, context): function assess_claims (line 86) | def assess_claims(claims): FILE: packages/sample-app/sample_app/classes_decorated_app.py class JokeAgent (line 14) | class JokeAgent: method generate_joke (line 15) | def generate_joke(self): class PirateJokeAgent (line 25) | class PirateJokeAgent(JokeAgent): method generate_joke (line 26) | def generate_joke(self): function joke_generator (line 39) | def joke_generator(): FILE: packages/sample-app/sample_app/cohere_example.py function joke_workflow (line 12) | def joke_workflow(): function rerank (line 17) | def rerank(): FILE: packages/sample-app/sample_app/dataset_attachments_example.py function example_external_attachments (line 29) | def example_external_attachments(): function example_file_uploads (line 104) | def example_file_uploads(): function example_in_memory_attachments (line 186) | def example_in_memory_attachments(): function example_mixed_attachments (line 241) | def example_mixed_attachments(): function main (line 327) | def main(): FILE: packages/sample-app/sample_app/dataset_example.py function create_sample_csv (line 19) | def create_sample_csv(): function dataset_from_csv_example (line 34) | def dataset_from_csv_example(slug: str) -> Optional[Dataset]: function dataset_from_dataframe_example (line 62) | def dataset_from_dataframe_example(slug: str) -> Optional[Dataset]: function add_column_example (line 92) | def add_column_example(dataset: Dataset) -> Optional[Column]: function update_column_example (line 113) | def update_column_example(dataset: Dataset, column: Column): function delete_column_example (line 131) | def delete_column_example(dataset: Dataset, column: Column): function add_row_example (line 144) | def add_row_example(dataset: Dataset) -> Optional[Row]: function update_row_example (line 180) | def update_row_example(dataset: Dataset): function delete_row_example (line 215) | def delete_row_example(dataset: Dataset): function publish_dataset_example (line 242) | def publish_dataset_example(dataset: Dataset) -> Optional[str]: function get_dataset_by_version_example (line 256) | def get_dataset_by_version_example(slug: str, version: str): function get_dataset_by_slug_example (line 268) | def get_dataset_by_slug_example(slug: str): function delete_dataset_example (line 278) | def delete_dataset_example(slug: str): function create_customer_support_dataset (line 288) | def create_customer_support_dataset(slug: str) -> Optional[Dataset]: function create_translation_dataset (line 365) | def create_translation_dataset(slug: str) -> Optional[Dataset]: function main (line 445) | def main(): FILE: packages/sample-app/sample_app/dataset_override_example.py function main (line 21) | def main(): FILE: packages/sample-app/sample_app/experiment/experiment_example.py function generate_medical_answer (line 15) | async def generate_medical_answer(prompt_text: str) -> str: function medical_task_refuse_advice (line 31) | async def medical_task_refuse_advice(row): function medical_task_provide_info (line 40) | async def medical_task_provide_info(row): function run_experiment_example (line 49) | async def run_experiment_example(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/agent_tool_trajectory.py function agent_evaluators_task (line 18) | def agent_evaluators_task(row): function run_agent_tool_trajectory_experiment (line 33) | async def run_agent_tool_trajectory_experiment(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/agents_exp.py function generate_agent_trace (line 24) | async def generate_agent_trace(task_description: str) -> dict: function agent_evaluators_task (line 52) | async def agent_evaluators_task(row): function run_agents_experiment (line 112) | async def run_agents_experiment(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/compliance_exp.py function generate_response (line 22) | async def generate_response(prompt: str, temperature: float = 0.7) -> str: function content_safety_task (line 36) | async def content_safety_task(row): function run_content_compliance_experiment (line 53) | async def run_content_compliance_experiment(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/correctness_exp.py function generate_response (line 22) | async def generate_response(prompt: str, context: str = None) -> str: function quality_task (line 40) | async def quality_task(row): function run_correctness_experiment (line 59) | async def run_correctness_experiment(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/formatting_exp.py function generate_structured_output (line 24) | async def generate_structured_output(prompt: str, output_format: str) ->... function validation_task (line 54) | async def validation_task(row): function run_formatting_experiment (line 73) | async def run_formatting_experiment(): function run_validation_examples (line 142) | async def run_validation_examples(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/quality_exp.py function generate_response (line 24) | async def generate_response(prompt: str, max_tokens: int = 300) -> str: function advanced_quality_task (line 39) | async def advanced_quality_task(row): function run_advanced_quality_experiment (line 67) | async def run_advanced_quality_experiment(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/security_exp.py function generate_response (line 23) | async def generate_response(prompt: str) -> str: function security_task (line 37) | async def security_task(row): function run_security_experiment (line 54) | async def run_security_experiment(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/style_exp.py function generate_response (line 21) | async def generate_response(prompt: str, max_tokens: int = 200) -> str: function style_task (line 35) | async def style_task(row): function run_style_experiment (line 53) | async def run_style_experiment(): FILE: packages/sample-app/sample_app/experiment/made_by_traceloop/travel_agent_exp.py function travel_agent_task (line 35) | async def travel_agent_task(row): function run_travel_agent_experiment (line 71) | async def run_travel_agent_experiment(): FILE: packages/sample-app/sample_app/experiment/medical_prompts.py function provide_medical_info_prompt (line 6) | def provide_medical_info_prompt(question: str) -> str: function refuse_medical_advice_prompt (line 25) | def refuse_medical_advice_prompt(question: str) -> str: FILE: packages/sample-app/sample_app/experiment/run_research_experiment.py function generate_research_response (line 24) | async def generate_research_response(question: str) -> str: function research_task (line 44) | async def research_task(row): function main (line 56) | async def main(): FILE: packages/sample-app/sample_app/gemini.py function predict_text (line 13) | def predict_text() -> str: function async_predict_text (line 25) | async def async_predict_text() -> str: function chat (line 37) | def chat() -> str: FILE: packages/sample-app/sample_app/gemini_structured_outputs_demo.py function main (line 15) | def main(): FILE: packages/sample-app/sample_app/google_genai_image_example.py function describe_image_from_local_path (line 27) | def describe_image_from_local_path(image_path: str) -> str: FILE: packages/sample-app/sample_app/groq_example.py function generate_joke (line 16) | def generate_joke(): function joke_generator (line 31) | def joke_generator(): FILE: packages/sample-app/sample_app/guardrail_medical_chat_example.py function handle_medical_evaluation (line 21) | def handle_medical_evaluation(evaluator_result, original_result): function get_doctor_response_with_pii_check (line 45) | async def get_doctor_response_with_pii_check(patient_message: str) -> dict: function get_doctor_response (line 68) | async def get_doctor_response(patient_message: str) -> dict: function medical_chat_session (line 90) | async def medical_chat_session(): function main (line 129) | async def main(): FILE: packages/sample-app/sample_app/guardrail_travel_agent_example.py function handle_pii_detection (line 26) | def handle_pii_detection(evaluator_result, original_result): function guarded_travel_agent (line 68) | async def guarded_travel_agent(query: str) -> dict: function main (line 103) | async def main(): FILE: packages/sample-app/sample_app/haystack_app.py function haystack_app (line 18) | def haystack_app(): FILE: packages/sample-app/sample_app/langchain_agent.py function langchain_app (line 13) | def langchain_app(): FILE: packages/sample-app/sample_app/langchain_app.py function langchain_app (line 11) | def langchain_app(): FILE: packages/sample-app/sample_app/langchain_lcel.py class Joke (line 16) | class Joke(BaseModel): function chain (line 23) | async def chain(): FILE: packages/sample-app/sample_app/langgraph_example.py function search (line 17) | def search(query: str): function should_continue (line 33) | def should_continue(state: MessagesState) -> Literal["tools", END]: function call_model (line 44) | def call_model(state: MessagesState): FILE: packages/sample-app/sample_app/langgraph_openai.py class State (line 12) | class State(TypedDict): function calculate (line 17) | def calculate(state: State): FILE: packages/sample-app/sample_app/litellm_example.py function test_traceloop_logging (line 4) | def test_traceloop_logging(): FILE: packages/sample-app/sample_app/llama_index_chroma_app.py function main (line 32) | async def main(): FILE: packages/sample-app/sample_app/llama_index_chroma_huggingface_app.py function main (line 18) | async def main(): FILE: packages/sample-app/sample_app/llama_index_workflow_app.py class JokeEvent (line 12) | class JokeEvent(Event): class JokeFlow (line 16) | class JokeFlow(Workflow): method generate_joke (line 20) | async def generate_joke(self, ev: StartEvent) -> JokeEvent: method critique_joke (line 28) | async def critique_joke(self, ev: JokeEvent) -> StopEvent: function main (line 36) | async def main(): FILE: packages/sample-app/sample_app/llama_parse_app.py function demo_core_parsing (line 11) | async def demo_core_parsing(): function main (line 68) | async def main(): FILE: packages/sample-app/sample_app/manual_logging_example.py function main (line 15) | def main(): FILE: packages/sample-app/sample_app/mcp_dev_assistant_demo.py class MCPDevAssistantDemo (line 20) | class MCPDevAssistantDemo: method __init__ (line 21) | def __init__(self): method connect_to_dev_assistant (line 32) | async def connect_to_dev_assistant(self): method demo_enhanced_tracing (line 59) | async def demo_enhanced_tracing(self): method cleanup (line 138) | async def cleanup(self): method run (line 142) | async def run(self): function main (line 163) | async def main(): FILE: packages/sample-app/sample_app/mcp_dev_assistant_server.py class FileInfo (line 32) | class FileInfo(BaseModel): class GitStatus (line 40) | class GitStatus(BaseModel): class ProcessResult (line 50) | class ProcessResult(BaseModel): function list_files (line 60) | def list_files(directory: str = ".") -> List[FileInfo]: function read_file (line 94) | def read_file(file_path: str, max_lines: Optional[int] = None) -> str: function write_file (line 129) | def write_file(file_path: str, content: str, append: bool = False) -> str: function run_command (line 159) | def run_command(command: str, working_directory: str = ".", timeout: int... function git_status (line 201) | def git_status(repository_path: str = ".") -> GitStatus: function search_code (line 281) | def search_code( function get_system_info (line 341) | def get_system_info() -> Dict[str, Any]: function main (line 368) | def main(): FILE: packages/sample-app/sample_app/mcp_sonnet_example.py class MCPClient (line 20) | class MCPClient: method __init__ (line 21) | def __init__(self): method connect_to_server (line 27) | async def connect_to_server(self, server_package_name: str): method process_query (line 48) | async def process_query(self, query: str) -> str: method chat_loop (line 102) | async def chat_loop(self): method cleanup (line 123) | async def cleanup(self): function main (line 128) | async def main(): FILE: packages/sample-app/sample_app/methods_decorated_app.py function create_joke (line 14) | def create_joke(): function translate_joke_to_pirate (line 27) | def translate_joke_to_pirate(joke: str): function history_jokes_tool (line 44) | def history_jokes_tool(): function generate_signature (line 54) | def generate_signature(joke: str): function joke_workflow (line 63) | def joke_workflow(): FILE: packages/sample-app/sample_app/multiple_span_processors.py function create_joke (line 19) | def create_joke(): function main (line 30) | def main(): FILE: packages/sample-app/sample_app/ollama_streaming.py function ollama_chat (line 9) | def ollama_chat(): function main (line 29) | def main(): FILE: packages/sample-app/sample_app/openai_agents_example.py class PlannedChange (line 27) | class PlannedChange(BaseModel): class ModificationPlan (line 33) | class ModificationPlan(BaseModel): class PlanResponse (line 41) | class PlanResponse(BaseModel): class Recipe (line 48) | class Recipe(BaseModel): class EditResponse (line 58) | class EditResponse(BaseModel): class SearchResponse (line 67) | class SearchResponse(BaseModel): class ModifiedRecipeData (line 75) | class ModifiedRecipeData(BaseModel): class RecipeModificationResult (line 85) | class RecipeModificationResult(BaseModel): class ChatContext (line 247) | class ChatContext: method __post_init__ (line 252) | def __post_init__(self): function plan_and_apply_recipe_modifications (line 258) | async def plan_and_apply_recipe_modifications( function search_recipes (line 352) | async def search_recipes( class RecipeEditorAgent (line 482) | class RecipeEditorAgent(Agent[ChatContext]): method __init__ (line 485) | def __init__(self, model: str = "gpt-4o"): class MainChatAgent (line 519) | class MainChatAgent(Agent[ChatContext]): method __init__ (line 522) | def __init__( function handle_runner_stream (line 550) | async def handle_runner_stream(runner: "Runner"): function run_streaming_chat (line 610) | async def run_streaming_chat(user_input: str): FILE: packages/sample-app/sample_app/openai_agents_realtime_example.py function run_realtime_demo (line 43) | async def run_realtime_demo(): function run_text_only_demo (line 245) | async def run_text_only_demo(): function run_handoff_demo (line 496) | async def run_handoff_demo(): function check_requirements (line 645) | def check_requirements(): FILE: packages/sample-app/sample_app/openai_agents_using_litellm.py function main (line 26) | async def main(): FILE: packages/sample-app/sample_app/openai_guardrails_example.py function create_sample_config (line 35) | def create_sample_config(): function reproduce_issue (line 57) | async def reproduce_issue(): function main (line 176) | def main(): FILE: packages/sample-app/sample_app/openai_realtime_example.py function realtime_text_conversation (line 31) | async def realtime_text_conversation(): function realtime_multi_turn_conversation (line 100) | async def realtime_multi_turn_conversation(): function realtime_with_tools (line 160) | async def realtime_with_tools(): function main (line 223) | async def main(): FILE: packages/sample-app/sample_app/openai_streaming.py function joke_workflow (line 14) | def joke_workflow(): FILE: packages/sample-app/sample_app/openai_streaming_assistant.py class EventHandler (line 28) | class EventHandler(AssistantEventHandler): method on_text_created (line 30) | def on_text_created(self, text) -> None: method on_text_delta (line 34) | def on_text_delta(self, delta, snapshot): method on_tool_call_created (line 37) | def on_tool_call_created(self, tool_call): method on_tool_call_delta (line 40) | def on_tool_call_delta(self, delta, snapshot): FILE: packages/sample-app/sample_app/openai_structured_outputs.py class StoryStructure (line 12) | class StoryStructure(BaseModel): function build_joke (line 21) | def build_joke(): function build_joke_structure (line 31) | def build_joke_structure(joke: str): function joke_structure (line 48) | def joke_structure(): FILE: packages/sample-app/sample_app/openai_structured_outputs_demo.py class Joke (line 16) | class Joke(BaseModel): function main (line 21) | def main(): FILE: packages/sample-app/sample_app/openai_vision_base64_example.py function encode_image (line 15) | def encode_image(image_path): function task (line 21) | def task(): function workflow (line 55) | def workflow(): FILE: packages/sample-app/sample_app/pinecone_app.py function gen_index (line 24) | def gen_index(): function retrieve (line 46) | def retrieve(query): function chat (line 74) | def chat(prompt): function run_query (line 89) | def run_query(query: str): FILE: packages/sample-app/sample_app/pinecone_app_sentence_transformers.py function insert_embeddings (line 35) | def insert_embeddings(): function retrieve (line 73) | def retrieve(query): function run_query (line 91) | def run_query(query: str): FILE: packages/sample-app/sample_app/prompt_registry_example_app.py function generate_pirate_joke (line 15) | def generate_pirate_joke(): function generate_joke (line 23) | def generate_joke(): FILE: packages/sample-app/sample_app/prompt_registry_vision.py function describe_picture (line 15) | def describe_picture(): function picture_description (line 23) | def picture_description(): FILE: packages/sample-app/sample_app/redis_rag_app.py function load_data (line 24) | def load_data(): function prepare_embeddings (line 30) | def prepare_embeddings(data): function upload_data_to_redis (line 38) | def upload_data_to_redis(data, embeddings): function create_index (line 52) | def create_index(): function query_redis (line 74) | def query_redis(query_embeddings): function get_response_from_openai (line 88) | def get_response_from_openai(query, relevant_content): function main (line 113) | def main(): FILE: packages/sample-app/sample_app/replicate_functions.py function generate_image (line 10) | def generate_image(): function image_workflow (line 19) | def image_workflow(): FILE: packages/sample-app/sample_app/replicate_streaming.py function generate_chat_stream (line 10) | def generate_chat_stream(): function chat_stream_workflow (line 18) | def chat_stream_workflow(): FILE: packages/sample-app/sample_app/sample_handoff_app.py function analyze_user_behavior (line 38) | async def analyze_user_behavior(data_source: str) -> str: function generate_insights (line 45) | async def generate_insights(analysis_data: str) -> str: function create_dashboard (line 52) | async def create_dashboard(insights_data: str) -> str: function create_agents (line 58) | def create_agents(): function run_workflow_scenario (line 100) | async def run_workflow_scenario(scenario_name: str, user_query: str): function main (line 152) | async def main(): FILE: packages/sample-app/sample_app/simple_handoff_demo.py function analyze_data (line 33) | async def analyze_data(request: str) -> str: function generate_report (line 40) | async def generate_report(analysis: str) -> str: function demo (line 46) | async def demo(): FILE: packages/sample-app/sample_app/thread_pool_example.py function do_retrieval (line 12) | def do_retrieval(index: pinecone.Index): function get_index (line 24) | def get_index(): function main (line 31) | def main(): FILE: packages/sample-app/sample_app/vertex_gemini_vision_example.py function describe_image_from_local_path (line 19) | def describe_image_from_local_path(image_path: str) -> str: function analyze_image_from_gcs (line 44) | def analyze_image_from_gcs(gcs_uri: str) -> str: function multi_turn_vision_chat (line 65) | def multi_turn_vision_chat(image_path: str) -> str: FILE: packages/sample-app/sample_app/vertexai_streaming.py function streaming_prediction (line 13) | async def streaming_prediction() -> str: FILE: packages/sample-app/sample_app/voyageai_example.py function embed_documents (line 12) | def embed_documents(): function rerank_documents (line 27) | def rerank_documents(): FILE: packages/sample-app/sample_app/watsonx-langchain.py function watsonx_llm_init (line 18) | def watsonx_llm_init() -> ModelInference: function watsonx_llm_generate (line 41) | def watsonx_llm_generate(question): FILE: packages/sample-app/sample_app/watsonx_flow.py function watson_ai_init (line 17) | def watson_ai_init() -> ModelInference: function watson_ai_generate (line 46) | def watson_ai_generate(question): FILE: packages/sample-app/sample_app/watsonx_generate.py function get_credentials (line 14) | def get_credentials(api_key): FILE: packages/sample-app/sample_app/weaviate_v3.py function create_schema (line 30) | def create_schema(client): function get_schema (line 52) | def get_schema(client): function delete_schema (line 58) | def delete_schema(client): function create_object (line 63) | def create_object(client): function create_batch (line 74) | def create_batch(client): function query_get (line 103) | def query_get(client): function query_aggregate (line 108) | def query_aggregate(client): function query_raw (line 113) | def query_raw(client): function validate (line 118) | def validate(client, uuid=None): function create_schemas (line 130) | def create_schemas(client): function delete_all (line 167) | def delete_all(client): function example_schema_workflow (line 172) | def example_schema_workflow(client): function example_schema_workflow2 (line 203) | def example_schema_workflow2(client): FILE: packages/sample-app/sample_app/weaviate_v4.py function create_collection (line 39) | def create_collection(client, backend): function get_collection (line 61) | def get_collection(client, collection_name): function insert_data (line 67) | def insert_data(collection): function create_batch (line 75) | def create_batch(collection): function query_get (line 104) | def query_get(collection): function query_aggregate (line 111) | def query_aggregate(collection): function query_raw (line 116) | def query_raw(client): function delete_collection (line 121) | def delete_collection(client): function create_schemas (line 126) | def create_schemas(client): function delete_all (line 161) | def delete_all(client): function example_workflow (line 166) | def example_workflow(client, backend): function example_workflow2 (line 192) | def example_workflow2(client): FILE: packages/sample-app/sample_app/writer_example.py function get_weather (line 47) | def get_weather(location: str) -> str: class StreamResult (line 55) | class StreamResult: function handle_streaming_response (line 61) | def handle_streaming_response(response_stream): function _process_tool_call_chunk (line 94) | def _process_tool_call_chunk( FILE: packages/sample-app/tests/test_placeholder.py function test_placeholder (line 1) | def test_placeholder(): FILE: packages/traceloop-sdk/tests/conftest.py function exporter (line 20) | def exporter(): function clear_exporter (line 32) | def clear_exporter(exporter): function environment (line 41) | def environment(): function vcr_config (line 47) | def vcr_config(): function exporter_with_custom_span_processor (line 55) | def exporter_with_custom_span_processor(): function exporter_with_custom_span_postprocess_callback (line 79) | def exporter_with_custom_span_postprocess_callback(exporter): function exporter_with_custom_instrumentations (line 122) | def exporter_with_custom_instrumentations(): function exporter_with_no_metrics (line 144) | def exporter_with_no_metrics(): function exporters_with_multiple_span_processors (line 168) | def exporters_with_multiple_span_processors(): function datasets (line 227) | def datasets(): function anyio_backend (line 237) | def anyio_backend(): FILE: packages/traceloop-sdk/tests/datasets/test_columns_operations.py function test_create_dataset_with_columns (line 7) | def test_create_dataset_with_columns(datasets): function test_get_dataset_with_columns (line 42) | def test_get_dataset_with_columns(datasets): function test_dataset_operations_errors (line 58) | def test_dataset_operations_errors(datasets): FILE: packages/traceloop-sdk/tests/datasets/test_constants.py class TestConstants (line 6) | class TestConstants: FILE: packages/traceloop-sdk/tests/datasets/test_create_dataset.py function test_create_dataset_from_csv (line 17) | def test_create_dataset_from_csv(datasets): function test_create_dataset_from_dataframe (line 47) | def test_create_dataset_from_dataframe(datasets): function test_create_dataset_from_csv_file_not_found (line 84) | def test_create_dataset_from_csv_file_not_found(datasets): function test_create_dataset_with_duplicate_slug (line 94) | def test_create_dataset_with_duplicate_slug(datasets): function test_create_dataset_from_dataframe_with_duplicate_slug (line 123) | def test_create_dataset_from_dataframe_with_duplicate_slug(datasets): FILE: packages/traceloop-sdk/tests/datasets/test_dataset_operations.py function test_get_dataset_by_version (line 5) | def test_get_dataset_by_version(datasets): function test_publish_dataset (line 11) | def test_publish_dataset(datasets): FILE: packages/traceloop-sdk/tests/datasets/test_dataset_with_attachments.py function test_create_dataset_with_external_attachments (line 21) | def test_create_dataset_with_external_attachments(datasets): function test_create_dataset_with_file_attachments_mocked (line 97) | def test_create_dataset_with_file_attachments_mocked(datasets): function test_create_dataset_with_mixed_attachments (line 166) | def test_create_dataset_with_mixed_attachments(datasets): function test_create_dataset_with_in_memory_attachment (line 225) | def test_create_dataset_with_in_memory_attachment(datasets): function test_create_dataset_without_attachments (line 264) | def test_create_dataset_without_attachments(datasets): FILE: packages/traceloop-sdk/tests/datasets/test_datasets_operations.py function test_get_dataset_by_slug (line 7) | def test_get_dataset_by_slug(datasets): function test_get_all_datasets (line 17) | def test_get_all_datasets(datasets): function test_get_version_csv (line 31) | def test_get_version_csv(datasets): function test_delete_by_slug (line 41) | def test_delete_by_slug(datasets): function test_delete_by_slug_failure (line 53) | def test_delete_by_slug_failure(datasets): function test_get_all_datasets_with_invalid_credentials (line 64) | def test_get_all_datasets_with_invalid_credentials(): function test_get_dataset_by_slug_failure (line 90) | def test_get_dataset_by_slug_failure(datasets): function test_get_version_csv_failure (line 100) | def test_get_version_csv_failure(datasets): FILE: packages/traceloop-sdk/tests/datasets/test_rows_operations.py function test_create_dataset_and_add_rows (line 7) | def test_create_dataset_and_add_rows(datasets): function test_add_rows (line 38) | def test_add_rows(datasets): function test_dataset_row_operations_api_errors (line 76) | def test_dataset_row_operations_api_errors(datasets): function test_dataset_deletion (line 90) | def test_dataset_deletion(datasets): FILE: packages/traceloop-sdk/tests/evaluator/test_evaluator.py class TestValidateTaskOutput (line 9) | class TestValidateTaskOutput: method test_validate_task_output_with_no_evaluators (line 12) | def test_validate_task_output_with_no_evaluators(self): method test_validate_task_output_with_evaluators_no_required_fields (line 20) | def test_validate_task_output_with_evaluators_no_required_fields(self): method test_validate_task_output_with_valid_output (line 31) | def test_validate_task_output_with_valid_output(self): method test_validate_task_output_missing_single_field (line 45) | def test_validate_task_output_missing_single_field(self): method test_validate_task_output_missing_multiple_fields_single_evaluator (line 65) | def test_validate_task_output_missing_multiple_fields_single_evaluator... method test_validate_task_output_missing_fields_multiple_evaluators (line 84) | def test_validate_task_output_missing_fields_multiple_evaluators(self): method test_validate_task_output_partial_match (line 107) | def test_validate_task_output_partial_match(self): method test_validate_task_output_empty_task_output (line 126) | def test_validate_task_output_empty_task_output(self): method test_validate_task_output_with_extra_fields (line 139) | def test_validate_task_output_with_extra_fields(self): method test_validate_task_output_case_sensitive_field_names (line 155) | def test_validate_task_output_case_sensitive_field_names(self): method test_validate_task_output_with_evaluator_config (line 170) | def test_validate_task_output_with_evaluator_config(self): method test_validate_task_output_mixed_evaluators (line 185) | def test_validate_task_output_mixed_evaluators(self): method test_validate_task_output_duplicate_required_fields (line 208) | def test_validate_task_output_duplicate_required_fields(self): class TestValidateEvaluatorInput (line 229) | class TestValidateEvaluatorInput: method test_validate_input_no_request_model (line 232) | def test_validate_input_no_request_model(self): method test_validate_input_valid_input_only (line 237) | def test_validate_input_valid_input_only(self): method test_validate_input_missing_required_input_field (line 244) | def test_validate_input_missing_required_input_field(self): method test_validate_input_with_optional_config (line 249) | def test_validate_input_with_optional_config(self): method test_validate_input_with_optional_config_omitted (line 257) | def test_validate_input_with_optional_config_omitted(self): method test_validate_agent_flow_quality_with_required_config (line 264) | def test_validate_agent_flow_quality_with_required_config(self): method test_validate_agent_flow_quality_missing_config_fails (line 278) | def test_validate_agent_flow_quality_missing_config_fails(self): method test_validate_agent_flow_quality_missing_input_fields (line 289) | def test_validate_agent_flow_quality_missing_input_fields(self): method test_validate_agent_goal_completeness_optional_config (line 301) | def test_validate_agent_goal_completeness_optional_config(self): method test_validate_agent_tool_trajectory_optional_config (line 316) | def test_validate_agent_tool_trajectory_optional_config(self): FILE: packages/traceloop-sdk/tests/evaluator/test_field_mapping.py class TestGetSynonyms (line 10) | class TestGetSynonyms: method test_get_synonyms_for_text (line 13) | def test_get_synonyms_for_text(self): method test_get_synonyms_for_question (line 22) | def test_get_synonyms_for_question(self): method test_get_synonyms_for_reference (line 31) | def test_get_synonyms_for_reference(self): method test_get_synonyms_for_trajectory_prompts (line 39) | def test_get_synonyms_for_trajectory_prompts(self): method test_get_synonyms_for_trajectory_completions (line 46) | def test_get_synonyms_for_trajectory_completions(self): method test_get_synonyms_for_non_synonym_field (line 53) | def test_get_synonyms_for_non_synonym_field(self): method test_get_synonyms_for_unknown_field (line 59) | def test_get_synonyms_for_unknown_field(self): method test_get_synonyms_symmetry (line 65) | def test_get_synonyms_symmetry(self): class TestNormalizeTaskOutput (line 78) | class TestNormalizeTaskOutput: method test_normalize_text_to_completion (line 81) | def test_normalize_text_to_completion(self): method test_normalize_answer_to_completion (line 91) | def test_normalize_answer_to_completion(self): method test_normalize_prompt_to_question (line 100) | def test_normalize_prompt_to_question(self): method test_normalize_context_to_reference (line 109) | def test_normalize_context_to_reference(self): method test_normalize_ground_truth_to_reference (line 118) | def test_normalize_ground_truth_to_reference(self): method test_normalize_prompts_to_trajectory_prompts (line 127) | def test_normalize_prompts_to_trajectory_prompts(self): method test_normalize_completions_to_trajectory_completions (line 136) | def test_normalize_completions_to_trajectory_completions(self): method test_normalize_multiple_fields (line 145) | def test_normalize_multiple_fields(self): method test_normalize_with_no_mapping_needed (line 159) | def test_normalize_with_no_mapping_needed(self): method test_normalize_preserves_extra_fields (line 168) | def test_normalize_preserves_extra_fields(self): method test_normalize_empty_task_output (line 184) | def test_normalize_empty_task_output(self): method test_normalize_empty_required_fields (line 193) | def test_normalize_empty_required_fields(self): method test_normalize_prioritizes_exact_match (line 203) | def test_normalize_prioritizes_exact_match(self): method test_normalize_with_non_synonym_fields (line 216) | def test_normalize_with_non_synonym_fields(self): method test_normalize_mixed_synonyms_and_non_synonyms (line 228) | def test_normalize_mixed_synonyms_and_non_synonyms(self): class TestGetFieldSuggestions (line 243) | class TestGetFieldSuggestions: method test_suggest_synonym_for_missing_completion (line 246) | def test_suggest_synonym_for_missing_completion(self): method test_suggest_synonym_for_missing_question (line 255) | def test_suggest_synonym_for_missing_question(self): method test_suggest_synonym_for_missing_reference (line 264) | def test_suggest_synonym_for_missing_reference(self): method test_no_suggestions_when_no_synonyms_available (line 273) | def test_no_suggestions_when_no_synonyms_available(self): method test_multiple_synonyms_available (line 281) | def test_multiple_synonyms_available(self): method test_empty_available_fields (line 291) | def test_empty_available_fields(self): class TestFormatFieldHelp (line 300) | class TestFormatFieldHelp: method test_format_field_with_synonyms (line 303) | def test_format_field_with_synonyms(self): method test_format_field_without_synonyms (line 312) | def test_format_field_without_synonyms(self): method test_format_multiple_fields (line 318) | def test_format_multiple_fields(self): class TestIntegrationWithValidateTaskOutput (line 327) | class TestIntegrationWithValidateTaskOutput: method test_validate_with_synonym_mapping (line 330) | def test_validate_with_synonym_mapping(self): method test_validate_fails_with_helpful_message (line 351) | def test_validate_fails_with_helpful_message(self): method test_validate_with_context_to_reference_mapping (line 372) | def test_validate_with_context_to_reference_mapping(self): method test_validate_with_trajectory_fields (line 394) | def test_validate_with_trajectory_fields(self): FILE: packages/traceloop-sdk/tests/experiment/test_experiment.py function experiment (line 9) | def experiment(): function test_parse_jsonl_to_rows_valid_data (line 18) | def test_parse_jsonl_to_rows_valid_data(experiment): function test_parse_jsonl_to_rows_with_invalid_json_lines (line 36) | def test_parse_jsonl_to_rows_with_invalid_json_lines(experiment): function test_parse_jsonl_to_rows_empty_input (line 58) | def test_parse_jsonl_to_rows_empty_input(experiment): function test_parse_jsonl_to_rows_only_header (line 67) | def test_parse_jsonl_to_rows_only_header(experiment): function test_parse_jsonl_to_rows_with_empty_lines (line 78) | def test_parse_jsonl_to_rows_with_empty_lines(experiment): function test_parse_jsonl_to_rows_complex_json_objects (line 95) | def test_parse_jsonl_to_rows_complex_json_objects(experiment): class TestRunLocallyValidation (line 121) | class TestRunLocallyValidation: method test_run_locally_breaks_on_validation_failure_with_stop_on_error (line 125) | async def test_run_locally_breaks_on_validation_failure_with_stop_on_e... method test_run_locally_continues_on_validation_failure_without_stop_on_error (line 174) | async def test_run_locally_continues_on_validation_failure_without_sto... method test_run_locally_succeeds_with_valid_output (line 219) | async def test_run_locally_succeeds_with_valid_output(self): method test_run_locally_validation_with_multiple_evaluators (line 273) | async def test_run_locally_validation_with_multiple_evaluators(self): method test_run_locally_no_validation_for_string_evaluators (line 323) | async def test_run_locally_no_validation_for_string_evaluators(self): FILE: packages/traceloop-sdk/tests/experiment/test_export.py class TestExportMethods (line 7) | class TestExportMethods: method test_to_csv_with_explicit_params (line 10) | def test_to_csv_with_explicit_params(self): method test_to_json_with_explicit_params (line 26) | def test_to_json_with_explicit_params(self): method test_to_json_with_string_response (line 42) | def test_to_json_with_string_response(self): method test_to_csv_uses_last_run_ids (line 55) | def test_to_csv_uses_last_run_ids(self): method test_to_json_uses_last_run_ids (line 73) | def test_to_json_uses_last_run_ids(self): method test_to_csv_raises_when_no_experiment_slug (line 91) | def test_to_csv_raises_when_no_experiment_slug(self): method test_to_csv_raises_when_no_run_id (line 106) | def test_to_csv_raises_when_no_run_id(self): method test_to_json_raises_when_no_experiment_slug (line 120) | def test_to_json_raises_when_no_experiment_slug(self): method test_to_json_raises_when_no_run_id (line 135) | def test_to_json_raises_when_no_run_id(self): method test_to_csv_raises_on_api_failure (line 149) | def test_to_csv_raises_on_api_failure(self): method test_to_json_raises_on_api_failure (line 163) | def test_to_json_raises_on_api_failure(self): FILE: packages/traceloop-sdk/tests/test_association_properties.py function test_association_properties (line 9) | def test_association_properties(exporter): function test_association_properties_within_workflow (line 55) | def test_association_properties_within_workflow(exporter): function test_langchain_association_properties (line 78) | def test_langchain_association_properties(exporter): function test_langchain_and_external_association_properties (line 143) | def test_langchain_and_external_association_properties(exporter): FILE: packages/traceloop-sdk/tests/test_associations.py function client_with_exporter (line 9) | def client_with_exporter(): function test_associations_create_single (line 49) | def test_associations_create_single(client_with_exporter): function test_associations_create_multiple (line 81) | def test_associations_create_multiple(client_with_exporter): function test_associations_within_workflow (line 131) | def test_associations_within_workflow(client_with_exporter): function test_all_association_properties (line 174) | def test_all_association_properties(client_with_exporter): FILE: packages/traceloop-sdk/tests/test_class_tasks.py function test_instance_method_task (line 7) | def test_instance_method_task(exporter): function test_class_decorator_task (line 34) | def test_class_decorator_task(exporter): FILE: packages/traceloop-sdk/tests/test_client.py function test_client_initialization (line 7) | def test_client_initialization(): function test_client_custom_endpoint (line 17) | def test_client_custom_endpoint(): function test_client_default_app_name (line 25) | def test_client_default_app_name(): function test_client_requires_api_key (line 36) | def test_client_requires_api_key(api_key): function test_user_feedback_initialization (line 42) | def test_user_feedback_initialization(): FILE: packages/traceloop-sdk/tests/test_conversation_id.py function test_set_conversation_id_api (line 10) | def test_set_conversation_id_api(exporter): function test_conversation_decorator_sync (line 33) | def test_conversation_decorator_sync(exporter): function test_conversation_decorator_async (line 60) | async def test_conversation_decorator_async(exporter): function test_conversation_id_in_nested_tasks (line 81) | def test_conversation_id_in_nested_tasks(exporter): function test_conversation_id_with_multiple_calls (line 109) | def test_conversation_id_with_multiple_calls(exporter): function test_conversation_decorator_standalone (line 139) | def test_conversation_decorator_standalone(exporter): FILE: packages/traceloop-sdk/tests/test_manual.py function openai_client (line 11) | def openai_client(): function test_manual_report (line 15) | def test_manual_report(exporter, openai_client): FILE: packages/traceloop-sdk/tests/test_nested_tasks.py function test_nested_tasks (line 6) | def test_nested_tasks(exporter): FILE: packages/traceloop-sdk/tests/test_privacy_no_prompts.py function disable_trace_content (line 12) | def disable_trace_content(): function openai_client (line 19) | def openai_client(): function test_simple_workflow (line 24) | def test_simple_workflow(exporter, openai_client): FILE: packages/traceloop-sdk/tests/test_prompt_management.py function openai_client (line 222) | def openai_client(): function test_prompt_management (line 227) | def test_prompt_management(exporter, openai_client): function test_prompt_management_with_tools (line 246) | def test_prompt_management_with_tools(exporter, openai_client): function test_prompt_management_with_response_format (line 262) | def test_prompt_management_with_response_format(exporter, openai_client): FILE: packages/traceloop-sdk/tests/test_sampler_initialization.py class TestSamplerInitialization (line 9) | class TestSamplerInitialization: method test_init_with_rate_based_sampler (line 12) | def test_init_with_rate_based_sampler(self): FILE: packages/traceloop-sdk/tests/test_sdk_initialization.py function openai_client (line 8) | def openai_client(): class TestInitSpansExporter (line 12) | class TestInitSpansExporter: method test_http_schemes (line 20) | def test_http_schemes(self, endpoint): method test_http_endpoint_construction (line 32) | def test_http_endpoint_construction(self, endpoint, expected_endpoint): method test_grpc_schemes (line 48) | def test_grpc_schemes(self, endpoint, expected_endpoint, insecure): function test_resource_attributes (line 58) | def test_resource_attributes(exporter, openai_client): function test_resource_includes_sdk_attributes (line 71) | def test_resource_includes_sdk_attributes(exporter, openai_client): function test_custom_span_processor (line 96) | def test_custom_span_processor(exporter_with_custom_span_processor): function test_span_postprocess_callback (line 109) | def test_span_postprocess_callback(exporter_with_custom_span_postprocess... function test_instruments (line 121) | def test_instruments(exporter_with_custom_instrumentations): function test_no_metrics (line 133) | def test_no_metrics(exporter_with_no_metrics): function test_multiple_span_processors (line 145) | def test_multiple_span_processors(exporters_with_multiple_span_processors): function test_get_default_span_processor (line 202) | def test_get_default_span_processor(): FILE: packages/traceloop-sdk/tests/test_tasks.py function test_task_io_serialization_with_langchain (line 14) | def test_task_io_serialization_with_langchain(exporter): function test_sync_task_error_handling (line 33) | def test_sync_task_error_handling(exporter): function test_async_task_error_handling (line 54) | async def test_async_task_error_handling(exporter): function test_sync_generator_task_error_handling (line 75) | def test_sync_generator_task_error_handling(exporter): function test_async_generator_task_error_handling (line 101) | async def test_async_generator_task_error_handling(exporter): class TestDataClass (line 129) | class TestDataClass: function test_dataclass_serialization_task (line 134) | def test_dataclass_serialization_task(exporter): function test_json_truncation_with_otel_limit (line 157) | def test_json_truncation_with_otel_limit(exporter, monkeypatch): function test_json_no_truncation_without_otel_limit (line 185) | def test_json_no_truncation_without_otel_limit(exporter, monkeypatch): function test_json_truncation_with_invalid_otel_limit (line 209) | def test_json_truncation_with_invalid_otel_limit(exporter, monkeypatch): function test_async_json_truncation_with_otel_limit (line 234) | async def test_async_json_truncation_with_otel_limit(exporter, monkeypat... function test_json_truncation_preserves_short_content (line 259) | def test_json_truncation_preserves_short_content(exporter, monkeypatch): FILE: packages/traceloop-sdk/tests/test_user_feedback.py function mock_http (line 18) | def mock_http(): function user_feedback (line 26) | def user_feedback(mock_http): function test_user_feedback_initialization (line 31) | def test_user_feedback_initialization(mock_http): function test_create_basic_feedback (line 38) | def test_create_basic_feedback(user_feedback: UserFeedback, mock_http: M... function test_create_feedback_complex_tags (line 59) | def test_create_feedback_complex_tags(user_feedback: UserFeedback, mock_... function test_create_feedback_parameter_validation (line 80) | def test_create_feedback_parameter_validation(user_feedback: UserFeedback): FILE: packages/traceloop-sdk/tests/test_workflows.py function openai_client (line 17) | def openai_client(): function async_openai_client (line 22) | def async_openai_client(): function test_simple_workflow (line 27) | def test_simple_workflow(exporter, openai_client): function test_simple_aworkflow (line 73) | async def test_simple_aworkflow(exporter, async_openai_client): function test_streaming_workflow (line 118) | def test_streaming_workflow(exporter, openai_client): function test_unrelated_entities (line 162) | def test_unrelated_entities(exporter): function test_unserializable_workflow (line 188) | def test_unserializable_workflow(exporter): function test_unserializable_async_workflow (line 204) | async def test_unserializable_async_workflow(exporter): function test_async_generator_workflow (line 220) | async def test_async_generator_workflow(exporter): function test_sync_workflow_error_handling (line 238) | def test_sync_workflow_error_handling(exporter): function test_async_workflow_error_handling (line 259) | async def test_async_workflow_error_handling(exporter): function test_sync_generator_workflow_error_handling (line 280) | def test_sync_generator_workflow_error_handling(exporter): function test_async_generator_workflow_error_handling (line 306) | async def test_async_generator_workflow_error_handling(exporter): function test_nested_error_handling (line 333) | def test_nested_error_handling(exporter): function test_nested_async_error_handling (line 363) | async def test_nested_async_error_handling(exporter): function test_nested_generator_error_handling (line 393) | def test_nested_generator_error_handling(exporter): function test_nested_async_generator_error_handling (line 428) | async def test_nested_async_generator_error_handling(exporter): class TestDataClass (line 465) | class TestDataClass: function test_dataclass_serialization_workflow (line 470) | def test_dataclass_serialization_workflow(exporter): FILE: packages/traceloop-sdk/traceloop/sdk/__init__.py class Traceloop (line 37) | class Traceloop: method init (line 49) | def init( method set_association_properties (line 203) | def set_association_properties(properties: dict) -> None: method set_prompt (line 206) | def set_prompt(template: str, variables: dict, version: int): method get_default_span_processor (line 210) | def get_default_span_processor( method get (line 253) | def get(): FILE: packages/traceloop-sdk/traceloop/sdk/annotation/base_annotation.py class BaseAnnotation (line 6) | class BaseAnnotation: method __init__ (line 16) | def __init__(self, http: HTTPClient, app_name: str, flow: str): method create (line 21) | def create( FILE: packages/traceloop-sdk/traceloop/sdk/annotation/user_feedback.py class UserFeedback (line 7) | class UserFeedback(BaseAnnotation): method __init__ (line 8) | def __init__(self, http: HTTPClient, app_name: str): method create (line 11) | def create( FILE: packages/traceloop-sdk/traceloop/sdk/associations/associations.py class AssociationProperty (line 6) | class AssociationProperty(str, Enum): class Associations (line 18) | class Associations: method set (line 22) | def set(associations: Sequence[Association]) -> None: FILE: packages/traceloop-sdk/traceloop/sdk/client/client.py class Client (line 14) | class Client: method __init__ (line 35) | def __init__( FILE: packages/traceloop-sdk/traceloop/sdk/client/http.py class HTTPClient (line 7) | class HTTPClient: method __init__ (line 12) | def __init__(self, base_url: str, api_key: str, version: str): method _headers (line 17) | def _headers(self) -> Dict[str, str]: method post (line 23) | def post(self, path: str, data: Dict[str, Any]) -> Any: method get (line 40) | def get(self, path: str, params: Optional[Dict[str, Any]] = None) -> Any: method delete (line 62) | def delete(self, path: str) -> bool: method put (line 77) | def put(self, path: str, data: Dict[str, Any]) -> Any: method _format_error_message (line 97) | def _format_error_message(self, path: str, exception: requests.excepti... FILE: packages/traceloop-sdk/traceloop/sdk/config/__init__.py function is_tracing_enabled (line 4) | def is_tracing_enabled() -> bool: function is_content_tracing_enabled (line 8) | def is_content_tracing_enabled() -> bool: function is_metrics_enabled (line 12) | def is_metrics_enabled() -> bool: function is_logging_enabled (line 16) | def is_logging_enabled() -> bool: FILE: packages/traceloop-sdk/traceloop/sdk/datasets/attachment.py class Attachment (line 24) | class Attachment: method __init__ (line 30) | def __init__( method _guess_file_type (line 79) | def _guess_file_type(self) -> FileCellType: method _get_file_data (line 90) | def _get_file_data(self) -> bytes: method _get_file_size (line 101) | def _get_file_size(self) -> int: method upload (line 109) | def upload( method _upload_to_s3 (line 169) | def _upload_to_s3(self, upload_url: str) -> bool: class ExternalAttachment (line 181) | class ExternalAttachment: method __init__ (line 186) | def __init__( method attach (line 200) | def attach( class AttachmentReference (line 230) | class AttachmentReference: method __init__ (line 235) | def __init__( method data (line 255) | def data(self) -> bytes: method download (line 266) | def download(self, file_path: Optional[str] = None) -> Optional[bytes]: method get_url (line 276) | def get_url(self) -> Optional[str]: method __repr__ (line 283) | def __repr__(self) -> str: FILE: packages/traceloop-sdk/traceloop/sdk/datasets/base.py class BaseDatasetEntity (line 6) | class BaseDatasetEntity(ABC): method __init__ (line 15) | def __init__( FILE: packages/traceloop-sdk/traceloop/sdk/datasets/column.py class Column (line 11) | class Column(BaseDatasetEntity): method __init__ (line 18) | def __init__( method delete (line 32) | def delete(self) -> None: method update (line 53) | def update( FILE: packages/traceloop-sdk/traceloop/sdk/datasets/dataset.py class Dataset (line 20) | class Dataset(BaseDatasetEntity): method __init__ (line 33) | def __init__(self, http: HTTPClient): method from_create_dataset_response (line 39) | def from_create_dataset_response( method publish (line 54) | def publish(self) -> str: method add_rows (line 61) | def add_rows(self, rows: List[ValuesMap]) -> None: method add_column (line 70) | def add_column(self, slug: str, name: str, col_type: ColumnType) -> Co... method _create_columns (line 89) | def _create_columns(self, raw_columns: Dict[str, ColumnDefinition]) ->... method _create_rows (line 101) | def _create_rows(self, raw_rows: List[RowObject]) -> None: FILE: packages/traceloop-sdk/traceloop/sdk/datasets/datasets.py class Datasets (line 30) | class Datasets: method __init__ (line 37) | def __init__(self, http: HTTPClient): method get_all (line 40) | def get_all(self) -> List[DatasetMetadata]: method delete_by_slug (line 49) | def delete_by_slug(self, slug: str) -> None: method get_by_slug (line 55) | def get_by_slug(self, slug: str) -> "Dataset": method create (line 65) | def create(self, dataset_request: CreateDatasetRequest) -> Dataset: method override (line 109) | def override(self, slug: str, override_request: OverrideDatasetRequest... method from_csv (line 138) | def from_csv( method from_dataframe (line 193) | def from_dataframe( method get_version_csv (line 241) | def get_version_csv(self, slug: str, version: str) -> str: method get_version_jsonl (line 248) | def get_version_jsonl(self, slug: str, version: str) -> str: method _override_dataset (line 255) | def _override_dataset( method _extract_attachments_from_override (line 268) | def _extract_attachments_from_override( method _prepare_override_request (line 282) | def _prepare_override_request( method _create_dataset (line 306) | def _create_dataset(self, input: CreateDatasetRequest) -> CreateDatase... method _slugify (line 317) | def _slugify(self, name: str) -> str: method _extract_attachments (line 343) | def _extract_attachments( method _prepare_request_for_creation (line 362) | def _prepare_request_for_creation( method _process_attachments (line 397) | def _process_attachments( FILE: packages/traceloop-sdk/traceloop/sdk/datasets/model.py class ColumnType (line 8) | class ColumnType(str, Enum): class FileCellType (line 16) | class FileCellType(str, Enum): class FileStorageType (line 23) | class FileStorageType(str, Enum): class FileCellMetadata (line 28) | class FileCellMetadata(BaseModel): class FileCellValue (line 37) | class FileCellValue(BaseModel): class UploadURLRequest (line 47) | class UploadURLRequest(BaseModel): class UploadURLResponse (line 55) | class UploadURLResponse(BaseModel): class UploadStatusRequest (line 64) | class UploadStatusRequest(BaseModel): class ExternalURLRequest (line 69) | class ExternalURLRequest(BaseModel): class ColumnDefinition (line 75) | class ColumnDefinition(BaseModel): class CreateDatasetRequest (line 84) | class CreateDatasetRequest(BaseModel): class OverrideDatasetRequest (line 92) | class OverrideDatasetRequest(BaseModel): class RowObject (line 99) | class RowObject(BaseModel): class CreateDatasetResponse (line 106) | class CreateDatasetResponse(BaseModel): class UpdateDatasetInput (line 118) | class UpdateDatasetInput(BaseModel): class CreateColumnInput (line 123) | class CreateColumnInput(BaseModel): class UpdateColumnInput (line 129) | class UpdateColumnInput(BaseModel): class CreateRowsInput (line 134) | class CreateRowsInput(BaseModel): class CreateRowsResponse (line 138) | class CreateRowsResponse(BaseModel): class PublishDatasetResponse (line 143) | class PublishDatasetResponse(BaseModel): class AddColumnResponse (line 148) | class AddColumnResponse(BaseModel): class UpdateRowInput (line 154) | class UpdateRowInput(BaseModel): class DatasetVersion (line 158) | class DatasetVersion(BaseModel): class DatasetMetadata (line 164) | class DatasetMetadata(BaseModel): FILE: packages/traceloop-sdk/traceloop/sdk/datasets/row.py class Row (line 10) | class Row(BaseDatasetEntity): method __init__ (line 16) | def __init__( method delete (line 28) | def delete(self) -> None: method update (line 40) | def update(self, values: Dict[str, Any]) -> None: FILE: packages/traceloop-sdk/traceloop/sdk/decorators/__init__.py function conversation (line 28) | def conversation(conversation_id: str) -> Callable[[F], F]: function task (line 67) | def task( function workflow (line 84) | def workflow( function agent (line 101) | def agent( function tool (line 114) | def tool( function atask (line 128) | def atask( function aworkflow (line 151) | def aworkflow( function aagent (line 174) | def aagent( function atool (line 193) | def atool( FILE: packages/traceloop-sdk/traceloop/sdk/decorators/base.py function _truncate_json_if_needed (line 32) | def _truncate_json_if_needed(json_str: str) -> str: function aentity_method (line 51) | def aentity_method( function aentity_class (line 70) | def aentity_class( function _handle_generator (line 91) | def _handle_generator(span, res): function _ahandle_generator (line 108) | async def _ahandle_generator(span, ctx_token, res): function _should_send_prompts (line 121) | def _should_send_prompts(): function _is_async_method (line 130) | def _is_async_method(fn): function _setup_span (line 135) | def _setup_span(entity_name, tlp_span_kind, version): function _handle_span_input (line 169) | def _handle_span_input(span, args, kwargs, cls=None): function _handle_span_output (line 185) | def _handle_span_output(span, res, cls=None): function _cleanup_span (line 199) | def _cleanup_span(span, ctx_token): function entity_method (line 205) | def entity_method( function entity_class (line 286) | def entity_class( FILE: packages/traceloop-sdk/traceloop/sdk/evaluator/config.py class EvaluatorDetails (line 5) | class EvaluatorDetails(BaseModel): FILE: packages/traceloop-sdk/traceloop/sdk/evaluator/evaluator.py function _validate_evaluator_input (line 18) | def _validate_evaluator_input( class Evaluator (line 45) | class Evaluator: method __init__ (line 52) | def __init__(self, async_http_client: httpx.AsyncClient): method _build_evaluator_request (line 56) | def _build_evaluator_request( method _execute_evaluator_request (line 77) | async def _execute_evaluator_request( method run_experiment_evaluator (line 99) | async def run_experiment_evaluator( method trigger_experiment_evaluator (line 145) | async def trigger_experiment_evaluator( function validate_and_normalize_task_output (line 184) | def validate_and_normalize_task_output( function _extract_error_from_response (line 256) | def _extract_error_from_response(response: httpx.Response) -> str: FILE: packages/traceloop-sdk/traceloop/sdk/evaluator/field_mapping.py function _build_synonym_map (line 31) | def _build_synonym_map() -> Dict[str, Set[str]]: function get_synonyms (line 52) | def get_synonyms(field: str) -> Set[str]: function normalize_task_output (line 66) | def normalize_task_output( function get_field_suggestions (line 129) | def get_field_suggestions(missing_field: str, available_fields: List[str... function format_field_help (line 152) | def format_field_help(field: str) -> str: FILE: packages/traceloop-sdk/traceloop/sdk/evaluator/model.py class InputExtractor (line 8) | class InputExtractor(BaseModel): class InputSchemaMapping (line 12) | class InputSchemaMapping(RootModel[Dict[str, InputExtractor]]): class ExecuteEvaluatorRequest (line 18) | class ExecuteEvaluatorRequest(BaseModel): class ExecuteEvaluatorResponse (line 27) | class ExecuteEvaluatorResponse(BaseModel): class StreamEvent (line 34) | class StreamEvent(BaseModel): class ExecutionResponse (line 42) | class ExecutionResponse(BaseModel): method typed_result (line 48) | def typed_result(self, model: Type[T]) -> T: FILE: packages/traceloop-sdk/traceloop/sdk/evaluator/stream_client.py class SSEClient (line 7) | class SSEClient: method __init__ (line 10) | def __init__(self, shared_client: httpx.AsyncClient): method wait_for_result (line 13) | async def wait_for_result( method _handle_sse_response (line 55) | async def _handle_sse_response(self, response: httpx.Response) -> Exec... method _parse_sse_result (line 66) | def _parse_sse_result(self, response_text: str) -> ExecutionResponse: FILE: packages/traceloop-sdk/traceloop/sdk/experiment/experiment.py class Experiment (line 25) | class Experiment: method __init__ (line 34) | def __init__(self, http_client: HTTPClient, async_http_client: httpx.A... method run (line 41) | async def run( method _run_locally (line 94) | async def _run_locally( method _run_in_github (line 263) | async def _run_in_github( method _init_experiment (line 400) | def _init_experiment( method _create_task (line 427) | def _create_task( method _parse_jsonl_to_rows (line 446) | def _parse_jsonl_to_rows(self, jsonl_data: str) -> List[Dict[str, Any]]: method _execute_tasks (line 463) | async def _execute_tasks( method _resolve_export_params (line 528) | def _resolve_export_params( method to_csv_string (line 548) | def to_csv_string( method to_json_string (line 570) | def to_json_string( FILE: packages/traceloop-sdk/traceloop/sdk/experiment/model.py class TaskResponse (line 9) | class TaskResponse(BaseModel): class InitExperimentRequest (line 17) | class InitExperimentRequest(BaseModel): class ExperimentResponse (line 28) | class ExperimentResponse(BaseModel): class ExperimentRunResponse (line 38) | class ExperimentRunResponse(BaseModel): class ExperimentInitResponse (line 50) | class ExperimentInitResponse(BaseModel): class CreateTaskRequest (line 57) | class CreateTaskRequest(BaseModel): class CreateTaskResponse (line 64) | class CreateTaskResponse(BaseModel): class TaskResult (line 70) | class TaskResult(BaseModel): class GithubContext (line 78) | class GithubContext(BaseModel): class RunInGithubRequest (line 87) | class RunInGithubRequest(BaseModel): class RunInGithubResponse (line 100) | class RunInGithubResponse(BaseModel): FILE: packages/traceloop-sdk/traceloop/sdk/experiment/utils.py function extract_trajectory_from_spans (line 11) | def extract_trajectory_from_spans(spans): function run_with_span_capture (line 68) | async def run_with_span_capture(task_callable, *args, **kwargs): FILE: packages/traceloop-sdk/traceloop/sdk/fetcher.py class Fetcher (line 27) | class Fetcher: method __init__ (line 33) | def __init__(self, base_url: str, api_key: str): method run (line 54) | def run(self) -> None: method post (line 64) | def post(self, api: str, body: Dict[str, str]) -> None: method api_post (line 67) | def api_post(self, api: str, body: Dict[str, typing.Any]) -> None: class RetryIfServerError (line 74) | class RetryIfServerError(retry_if_exception): method __init__ (line 75) | def __init__( function check_http_error (line 86) | def check_http_error(e: BaseException) -> bool: function fetch_url (line 97) | def fetch_url(url: str, api_key: str) -> Any: function post_url (line 117) | def post_url(url: str, api_key: str, body: Dict[str, typing.Any]) -> None: function thread_func (line 131) | def thread_func( function refresh_data (line 149) | def refresh_data( function monitor_exit (line 162) | def monitor_exit(exit_event: Event) -> None: FILE: packages/traceloop-sdk/traceloop/sdk/generated/evaluators/definitions.py class EvaluatorMadeByTraceloop (line 14) | class EvaluatorMadeByTraceloop: method agent_efficiency (line 32) | def agent_efficiency() -> EvaluatorDetails: method agent_flow_quality (line 43) | def agent_flow_quality( method agent_goal_accuracy (line 66) | def agent_goal_accuracy() -> EvaluatorDetails: method agent_goal_completeness (line 77) | def agent_goal_completeness( method agent_tool_error_detector (line 98) | def agent_tool_error_detector() -> EvaluatorDetails: method agent_tool_trajectory (line 109) | def agent_tool_trajectory( method answer_completeness (line 141) | def answer_completeness() -> EvaluatorDetails: method answer_correctness (line 152) | def answer_correctness() -> EvaluatorDetails: method answer_relevancy (line 163) | def answer_relevancy() -> EvaluatorDetails: method char_count (line 174) | def char_count() -> EvaluatorDetails: method char_count_ratio (line 185) | def char_count_ratio() -> EvaluatorDetails: method context_relevance (line 196) | def context_relevance( method conversation_quality (line 217) | def conversation_quality() -> EvaluatorDetails: method faithfulness (line 228) | def faithfulness() -> EvaluatorDetails: method html_comparison (line 239) | def html_comparison() -> EvaluatorDetails: method instruction_adherence (line 250) | def instruction_adherence() -> EvaluatorDetails: method intent_change (line 261) | def intent_change() -> EvaluatorDetails: method json_validator (line 272) | def json_validator( method perplexity (line 298) | def perplexity() -> EvaluatorDetails: method pii_detector (line 309) | def pii_detector( method placeholder_regex (line 330) | def placeholder_regex( method profanity_detector (line 362) | def profanity_detector() -> EvaluatorDetails: method prompt_injection (line 373) | def prompt_injection( method prompt_perplexity (line 394) | def prompt_perplexity() -> EvaluatorDetails: method regex_validator (line 405) | def regex_validator( method secrets_detector (line 440) | def secrets_detector() -> EvaluatorDetails: method semantic_similarity (line 451) | def semantic_similarity() -> EvaluatorDetails: method sexism_detector (line 462) | def sexism_detector( method sql_validator (line 483) | def sql_validator() -> EvaluatorDetails: method tone_detection (line 494) | def tone_detection() -> EvaluatorDetails: method topic_adherence (line 505) | def topic_adherence() -> EvaluatorDetails: method toxicity_detector (line 516) | def toxicity_detector( method uncertainty_detector (line 537) | def uncertainty_detector() -> EvaluatorDetails: method word_count (line 548) | def word_count() -> EvaluatorDetails: method word_count_ratio (line 559) | def word_count_ratio() -> EvaluatorDetails: FILE: packages/traceloop-sdk/traceloop/sdk/generated/evaluators/registry.py function get_request_model (line 169) | def get_request_model(slug: str) -> Optional[Type[BaseModel]]: function get_response_model (line 174) | def get_response_model(slug: str) -> Optional[Type[BaseModel]]: FILE: packages/traceloop-sdk/traceloop/sdk/generated/evaluators/request.py class AgentEfficiencyInput (line 9) | class AgentEfficiencyInput(BaseModel): class AgentEfficiencyRequest (line 18) | class AgentEfficiencyRequest(BaseModel): class AgentFlowQualityConfigRequest (line 22) | class AgentFlowQualityConfigRequest(BaseModel): class AgentFlowQualityInput (line 29) | class AgentFlowQualityInput(BaseModel): class AgentFlowQualityRequest (line 42) | class AgentFlowQualityRequest(BaseModel): class AgentGoalAccuracyInput (line 47) | class AgentGoalAccuracyInput(BaseModel): class AgentGoalAccuracyRequest (line 60) | class AgentGoalAccuracyRequest(BaseModel): class AgentGoalCompletenessConfigRequest (line 64) | class AgentGoalCompletenessConfigRequest(BaseModel): class AgentGoalCompletenessInput (line 68) | class AgentGoalCompletenessInput(BaseModel): class AgentGoalCompletenessRequest (line 79) | class AgentGoalCompletenessRequest(BaseModel): class AgentToolErrorDetectorInput (line 84) | class AgentToolErrorDetectorInput(BaseModel): class AgentToolErrorDetectorRequest (line 96) | class AgentToolErrorDetectorRequest(BaseModel): class AgentToolTrajectoryConfigRequest (line 100) | class AgentToolTrajectoryConfigRequest(BaseModel): class AgentToolTrajectoryInput (line 107) | class AgentToolTrajectoryInput(BaseModel): class AgentToolTrajectoryRequest (line 116) | class AgentToolTrajectoryRequest(BaseModel): class AnswerCompletenessInput (line 121) | class AnswerCompletenessInput(BaseModel): class AnswerCompletenessRequest (line 127) | class AnswerCompletenessRequest(BaseModel): class AnswerCorrectnessInput (line 131) | class AnswerCorrectnessInput(BaseModel): class AnswerCorrectnessRequest (line 137) | class AnswerCorrectnessRequest(BaseModel): class AnswerRelevancyInput (line 141) | class AnswerRelevancyInput(BaseModel): class AnswerRelevancyRequest (line 146) | class AnswerRelevancyRequest(BaseModel): class CharCountInput (line 150) | class CharCountInput(BaseModel): class CharCountRatioInput (line 154) | class CharCountRatioInput(BaseModel): class CharCountRatioRequest (line 161) | class CharCountRatioRequest(BaseModel): class CharCountRequest (line 165) | class CharCountRequest(BaseModel): class ContextRelevanceConfigRequest (line 169) | class ContextRelevanceConfigRequest(BaseModel): class ContextRelevanceInput (line 173) | class ContextRelevanceInput(BaseModel): class ContextRelevanceRequest (line 184) | class ContextRelevanceRequest(BaseModel): class ConversationQualityInput (line 189) | class ConversationQualityInput(BaseModel): class ConversationQualityRequest (line 201) | class ConversationQualityRequest(BaseModel): class FaithfulnessInput (line 205) | class FaithfulnessInput(BaseModel): class FaithfulnessRequest (line 219) | class FaithfulnessRequest(BaseModel): class HtmlComparisonInput (line 223) | class HtmlComparisonInput(BaseModel): class HtmlComparisonRequest (line 232) | class HtmlComparisonRequest(BaseModel): class InstructionAdherenceInput (line 236) | class InstructionAdherenceInput(BaseModel): class InstructionAdherenceRequest (line 248) | class InstructionAdherenceRequest(BaseModel): class IntentChangeInput (line 252) | class IntentChangeInput(BaseModel): class IntentChangeRequest (line 265) | class IntentChangeRequest(BaseModel): class JSONValidatorConfigRequest (line 269) | class JSONValidatorConfigRequest(BaseModel): class JSONValidatorInput (line 274) | class JSONValidatorInput(BaseModel): class JSONValidatorRequest (line 278) | class JSONValidatorRequest(BaseModel): class PIIDetectorConfigRequest (line 283) | class PIIDetectorConfigRequest(BaseModel): class PIIDetectorInput (line 287) | class PIIDetectorInput(BaseModel): class PIIDetectorRequest (line 296) | class PIIDetectorRequest(BaseModel): class PerplexityInput (line 301) | class PerplexityInput(BaseModel): class PerplexityRequest (line 305) | class PerplexityRequest(BaseModel): class PlaceholderRegexConfigRequest (line 309) | class PlaceholderRegexConfigRequest(BaseModel): class PlaceholderRegexInput (line 316) | class PlaceholderRegexInput(BaseModel): class PlaceholderRegexRequest (line 323) | class PlaceholderRegexRequest(BaseModel): class ProfanityDetectorInput (line 328) | class ProfanityDetectorInput(BaseModel): class ProfanityDetectorRequest (line 332) | class ProfanityDetectorRequest(BaseModel): class PromptInjectionConfigRequest (line 336) | class PromptInjectionConfigRequest(BaseModel): class PromptInjectionInput (line 340) | class PromptInjectionInput(BaseModel): class PromptInjectionRequest (line 344) | class PromptInjectionRequest(BaseModel): class PromptPerplexityInput (line 349) | class PromptPerplexityInput(BaseModel): class PromptPerplexityRequest (line 353) | class PromptPerplexityRequest(BaseModel): class RegexValidatorConfigRequest (line 357) | class RegexValidatorConfigRequest(BaseModel): class RegexValidatorInput (line 365) | class RegexValidatorInput(BaseModel): class RegexValidatorRequest (line 369) | class RegexValidatorRequest(BaseModel): class SQLValidatorInput (line 374) | class SQLValidatorInput(BaseModel): class SQLValidatorRequest (line 378) | class SQLValidatorRequest(BaseModel): class SecretsDetectorInput (line 382) | class SecretsDetectorInput(BaseModel): class SecretsDetectorRequest (line 388) | class SecretsDetectorRequest(BaseModel): class SemanticSimilarityInput (line 392) | class SemanticSimilarityInput(BaseModel): class SemanticSimilarityRequest (line 397) | class SemanticSimilarityRequest(BaseModel): class SexismDetectorConfigRequest (line 401) | class SexismDetectorConfigRequest(PromptInjectionConfigRequest): class SexismDetectorInput (line 405) | class SexismDetectorInput(BaseModel): class SexismDetectorRequest (line 412) | class SexismDetectorRequest(BaseModel): class ToneDetectionInput (line 417) | class ToneDetectionInput(BaseModel): class ToneDetectionRequest (line 421) | class ToneDetectionRequest(BaseModel): class TopicAdherenceInput (line 425) | class TopicAdherenceInput(BaseModel): class TopicAdherenceRequest (line 438) | class TopicAdherenceRequest(BaseModel): class ToxicityDetectorConfigRequest (line 442) | class ToxicityDetectorConfigRequest(PromptInjectionConfigRequest): class ToxicityDetectorInput (line 446) | class ToxicityDetectorInput(BaseModel): class ToxicityDetectorRequest (line 450) | class ToxicityDetectorRequest(BaseModel): class UncertaintyDetectorInput (line 455) | class UncertaintyDetectorInput(BaseModel): class UncertaintyDetectorRequest (line 461) | class UncertaintyDetectorRequest(BaseModel): class WordCountInput (line 465) | class WordCountInput(BaseModel): class WordCountRatioInput (line 469) | class WordCountRatioInput(BaseModel): class WordCountRatioRequest (line 476) | class WordCountRatioRequest(BaseModel): class WordCountRequest (line 480) | class WordCountRequest(BaseModel): FILE: packages/traceloop-sdk/traceloop/sdk/generated/evaluators/response.py class AgentEfficiencyResponse (line 9) | class AgentEfficiencyResponse(BaseModel): class AgentFlowQualityResponse (line 20) | class AgentFlowQualityResponse(BaseModel): class AgentGoalAccuracyResponse (line 28) | class AgentGoalAccuracyResponse(BaseModel): class AgentGoalCompletenessResponse (line 32) | class AgentGoalCompletenessResponse(BaseModel): class AgentToolErrorDetectorResponse (line 38) | class AgentToolErrorDetectorResponse(BaseModel): class AgentToolTrajectoryResponse (line 45) | class AgentToolTrajectoryResponse(BaseModel): class AnswerCompletenessResponse (line 53) | class AnswerCompletenessResponse(BaseModel): class AnswerCorrectnessResponse (line 57) | class AnswerCorrectnessResponse(BaseModel): class AnswerRelevancyResponse (line 61) | class AnswerRelevancyResponse(BaseModel): class CharCountRatioResponse (line 65) | class CharCountRatioResponse(BaseModel): class CharCountResponse (line 69) | class CharCountResponse(BaseModel): class ContextRelevanceResponse (line 73) | class ContextRelevanceResponse(BaseModel): class ConversationQualityResponse (line 77) | class ConversationQualityResponse(BaseModel): class ErrorResponse (line 81) | class ErrorResponse(BaseModel): class FaithfulnessResponse (line 85) | class FaithfulnessResponse(BaseModel): class HtmlComparisonResponse (line 89) | class HtmlComparisonResponse(BaseModel): class InstructionAdherenceResponse (line 93) | class InstructionAdherenceResponse(BaseModel): class IntentChangeResponse (line 97) | class IntentChangeResponse(BaseModel): class JSONValidatorResponse (line 105) | class JSONValidatorResponse(BaseModel): class PIIDetectorResponse (line 109) | class PIIDetectorResponse(BaseModel): class PerplexityResponse (line 113) | class PerplexityResponse(BaseModel): class PlaceholderRegexResponse (line 117) | class PlaceholderRegexResponse(BaseModel): class ProfanityDetectorResponse (line 121) | class ProfanityDetectorResponse(BaseModel): class PromptInjectionResponse (line 125) | class PromptInjectionResponse(BaseModel): class PromptPerplexityResponse (line 129) | class PromptPerplexityResponse(BaseModel): class RegexValidatorResponse (line 133) | class RegexValidatorResponse(PlaceholderRegexResponse): class SQLValidatorResponse (line 137) | class SQLValidatorResponse(BaseModel): class SecretsDetectorResponse (line 141) | class SecretsDetectorResponse(BaseModel): class SemanticSimilarityResponse (line 145) | class SemanticSimilarityResponse(HtmlComparisonResponse): class SexismDetectorResponse (line 149) | class SexismDetectorResponse(ProfanityDetectorResponse): class ToneDetectionResponse (line 153) | class ToneDetectionResponse(BaseModel): class TopicAdherenceResponse (line 158) | class TopicAdherenceResponse(BaseModel): class ToxicityDetectorResponse (line 162) | class ToxicityDetectorResponse(ProfanityDetectorResponse): class UncertaintyDetectorResponse (line 166) | class UncertaintyDetectorResponse(BaseModel): class WordCountRatioResponse (line 171) | class WordCountRatioResponse(BaseModel): class WordCountResponse (line 175) | class WordCountResponse(BaseModel): FILE: packages/traceloop-sdk/traceloop/sdk/guardrails/guardrails.py function guardrail (line 17) | def guardrail( class Guardrails (line 171) | class Guardrails: method __init__ (line 177) | def __init__(self, async_http_client: httpx.AsyncClient): method execute_evaluator (line 180) | async def execute_evaluator( FILE: packages/traceloop-sdk/traceloop/sdk/guardrails/types.py class InputExtractor (line 5) | class InputExtractor(BaseModel): class ExecuteEvaluatorRequest (line 12) | class ExecuteEvaluatorRequest(BaseModel): class OutputSchema (line 18) | class OutputSchema(BaseModel): FILE: packages/traceloop-sdk/traceloop/sdk/images/image_uploader.py class ImageUploader (line 8) | class ImageUploader: method __init__ (line 9) | def __init__(self, base_url: str, api_key: str) -> None: method upload_base64_image (line 14) | def upload_base64_image( method aupload_base64_image (line 19) | async def aupload_base64_image( method _get_image_url (line 28) | def _get_image_url(self, trace_id: str, span_id: str, image_name: str)... method _async_upload (line 42) | async def _async_upload(self, url: str, base64_image: str) -> None: FILE: packages/traceloop-sdk/traceloop/sdk/instruments.py class Instruments (line 4) | class Instruments(Enum): FILE: packages/traceloop-sdk/traceloop/sdk/logging/logging.py class LoggerWrapper (line 17) | class LoggerWrapper(object): method __new__ (line 24) | def __new__(cls, exporter: Optional[LogExporter] = None) -> "LoggerWra... method set_static_params (line 43) | def set_static_params( function init_logging_exporter (line 53) | def init_logging_exporter(endpoint: str, headers: Dict[str, str]) -> Log... function init_logging_provider (line 60) | def init_logging_provider( FILE: packages/traceloop-sdk/traceloop/sdk/metrics/metrics.py class MetricsWrapper (line 22) | class MetricsWrapper(object): method __new__ (line 30) | def __new__(cls, exporter: Optional[MetricExporter] = None) -> "Metric... method set_static_params (line 51) | def set_static_params( function init_metrics_exporter (line 61) | def init_metrics_exporter(endpoint: str, headers: Dict[str, str]) -> Met... function init_metrics_provider (line 68) | def init_metrics_provider( function metric_views (line 87) | def metric_views() -> Sequence[View]: FILE: packages/traceloop-sdk/traceloop/sdk/prompts/__init__.py function get_prompt (line 4) | def get_prompt(key, **args): FILE: packages/traceloop-sdk/traceloop/sdk/prompts/client.py function get_effective_version (line 8) | def get_effective_version(prompt: Prompt) -> PromptVersion: function get_version_by_name (line 15) | def get_version_by_name(prompt: Prompt, name: str) -> PromptVersion: function get_version_by_hash (line 22) | def get_version_by_hash(prompt: Prompt, hash: str) -> PromptVersion: function get_specific_version (line 29) | def get_specific_version(prompt: Prompt, version: int) -> PromptVersion: class PromptRegistryClient (line 36) | class PromptRegistryClient: method __new__ (line 40) | def __new__(cls) -> "PromptRegistryClient": method render_prompt (line 48) | def render_prompt( method render_messages (line 99) | def render_messages(self, prompt_version: PromptVersion, **args): FILE: packages/traceloop-sdk/traceloop/sdk/prompts/model.py class TemplateEngine (line 8) | class TemplateEngine: class RegistryObjectBaseModel (line 12) | class RegistryObjectBaseModel(BaseModel): class Config (line 13) | class Config: class TextContent (line 17) | class TextContent(RegistryObjectBaseModel): class Url (line 22) | class Url(RegistryObjectBaseModel): class ImageContent (line 26) | class ImageContent(RegistryObjectBaseModel): class Message (line 34) | class Message(RegistryObjectBaseModel): class ToolFunction (line 41) | class ToolFunction(RegistryObjectBaseModel): class Tool (line 47) | class Tool(RegistryObjectBaseModel): class ResponseFormat (line 52) | class ResponseFormat(RegistryObjectBaseModel): class ModelConfig (line 57) | class ModelConfig(RegistryObjectBaseModel): class PromptVersion (line 71) | class PromptVersion(RegistryObjectBaseModel): class Target (line 83) | class Target(RegistryObjectBaseModel): class Prompt (line 90) | class Prompt(RegistryObjectBaseModel): FILE: packages/traceloop-sdk/traceloop/sdk/prompts/registry.py class PromptRegistry (line 6) | class PromptRegistry: method __init__ (line 7) | def __init__(self): method get_prompt_by_key (line 10) | def get_prompt_by_key(self, key): method load (line 13) | def load(self, prompts_json: dict): FILE: packages/traceloop-sdk/traceloop/sdk/tracing/content_allow_list.py class ContentAllowList (line 3) | class ContentAllowList: method __new__ (line 4) | def __new__(cls) -> "ContentAllowList": method is_allowed (line 11) | def is_allowed(self, association_properties: dict) -> bool: method load (line 23) | def load(self, response_json: dict): FILE: packages/traceloop-sdk/traceloop/sdk/tracing/context_manager.py function get_tracer (line 7) | def get_tracer(flush_on_exit: bool = False): FILE: packages/traceloop-sdk/traceloop/sdk/tracing/manual.py class LLMMessage (line 13) | class LLMMessage(BaseModel): class LLMUsage (line 18) | class LLMUsage(BaseModel): class LLMSpan (line 26) | class LLMSpan: method __init__ (line 29) | def __init__(self, span: Span): method report_request (line 33) | def report_request(self, model: str, messages: list[LLMMessage]): method report_response (line 43) | def report_response(self, model: str, completions: list[str]): method report_usage (line 53) | def report_usage(self, usage: LLMUsage): function track_llm_call (line 76) | def track_llm_call(vendor: str, type: str): FILE: packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py class TracerWrapper (line 65) | class TracerWrapper(object): method __new__ (line 74) | def __new__( method exit_handler (line 171) | def exit_handler(self): method _span_processor_on_start (line 174) | def _span_processor_on_start(self, span, parent_context): method set_static_params (line 188) | def set_static_params( method verify_initialized (line 200) | def verify_initialized(cls) -> bool: method set_disabled (line 218) | def set_disabled(cls, disabled: bool) -> None: method flush (line 221) | def flush(self): method get_tracer (line 228) | def get_tracer(self): function set_association_properties (line 232) | def set_association_properties(properties: dict) -> None: function _set_association_properties_attributes (line 241) | def _set_association_properties_attributes(span, properties: dict) -> None: function set_workflow_name (line 248) | def set_workflow_name(workflow_name: str) -> None: function set_agent_name (line 252) | def set_agent_name(agent_name: str) -> None: function set_conversation_id (line 256) | def set_conversation_id(conversation_id: str) -> None: function set_entity_path (line 269) | def set_entity_path(entity_path: str) -> None: function get_chained_entity_path (line 273) | def get_chained_entity_path(entity_name: str) -> str: function set_managed_prompt_tracing_context (line 281) | def set_managed_prompt_tracing_context( function set_external_prompt_tracing_context (line 296) | def set_external_prompt_tracing_context( function is_llm_span (line 305) | def is_llm_span(span) -> bool: function init_spans_exporter (line 309) | def init_spans_exporter(api_endpoint: str, headers: Dict[str, str]) -> S... function default_span_processor_on_start (line 351) | def default_span_processor_on_start(span: Span, parent_context: Context ... function get_default_span_processor (line 421) | def get_default_span_processor( function init_tracer_provider (line 454) | def init_tracer_provider( function init_instrumentations (line 477) | def init_instrumentations( function init_openai_instrumentor (line 622) | def init_openai_instrumentor( function init_anthropic_instrumentor (line 644) | def init_anthropic_instrumentor( function init_cohere_instrumentor (line 665) | def init_cohere_instrumentor(): function init_pinecone_instrumentor (line 679) | def init_pinecone_instrumentor(): function init_qdrant_instrumentor (line 693) | def init_qdrant_instrumentor(): function init_chroma_instrumentor (line 709) | def init_chroma_instrumentor(): function init_google_generativeai_instrumentor (line 723) | def init_google_generativeai_instrumentor( function init_haystack_instrumentor (line 746) | def init_haystack_instrumentor(): function init_langchain_instrumentor (line 760) | def init_langchain_instrumentor(): function init_mistralai_instrumentor (line 774) | def init_mistralai_instrumentor(): function init_ollama_instrumentor (line 788) | def init_ollama_instrumentor(): function init_transformers_instrumentor (line 802) | def init_transformers_instrumentor(): function init_together_instrumentor (line 818) | def init_together_instrumentor(): function init_llama_index_instrumentor (line 832) | def init_llama_index_instrumentor(): function init_milvus_instrumentor (line 846) | def init_milvus_instrumentor(): function init_requests_instrumentor (line 860) | def init_requests_instrumentor(): function init_urllib3_instrumentor (line 874) | def init_urllib3_instrumentor(): function init_pymysql_instrumentor (line 888) | def init_pymysql_instrumentor(): function init_bedrock_instrumentor (line 902) | def init_bedrock_instrumentor(should_enrich_metrics: bool): function init_sagemaker_instrumentor (line 915) | def init_sagemaker_instrumentor(should_enrich_metrics: bool): function init_replicate_instrumentor (line 929) | def init_replicate_instrumentor(): function init_vertexai_instrumentor (line 943) | def init_vertexai_instrumentor( function init_voyageai_instrumentor (line 962) | def init_voyageai_instrumentor(): function init_watsonx_instrumentor (line 976) | def init_watsonx_instrumentor(): function init_weaviate_instrumentor (line 992) | def init_weaviate_instrumentor(): function init_writer_instrumentor (line 1006) | def init_writer_instrumentor(): function init_agno_instrumentor (line 1020) | def init_agno_instrumentor(): function init_alephalpha_instrumentor (line 1034) | def init_alephalpha_instrumentor(): function init_marqo_instrumentor (line 1048) | def init_marqo_instrumentor(): function init_lancedb_instrumentor (line 1062) | def init_lancedb_instrumentor(): function init_redis_instrumentor (line 1076) | def init_redis_instrumentor(): function init_groq_instrumentor (line 1090) | def init_groq_instrumentor(): function init_crewai_instrumentor (line 1104) | def init_crewai_instrumentor(): function init_mcp_instrumentor (line 1119) | def init_mcp_instrumentor(): function init_openai_agents_instrumentor (line 1133) | def init_openai_agents_instrumentor(): function metrics_common_attributes (line 1149) | def metrics_common_attributes(): FILE: packages/traceloop-sdk/traceloop/sdk/utils/__init__.py function cameltosnake (line 1) | def cameltosnake(camel_string: str) -> str: function camel_to_snake (line 10) | def camel_to_snake(s): function is_notebook (line 17) | def is_notebook(): FILE: packages/traceloop-sdk/traceloop/sdk/utils/in_memory_span_exporter.py class InMemorySpanExporter (line 22) | class InMemorySpanExporter(SpanExporter): method __init__ (line 30) | def __init__(self) -> None: method clear (line 35) | def clear(self) -> None: method get_finished_spans (line 40) | def get_finished_spans(self) -> typing.Tuple[ReadableSpan, ...]: method export (line 45) | def export(self, spans: typing.Sequence[ReadableSpan]) -> SpanExportRe... method shutdown (line 53) | def shutdown(self) -> None: method force_flush (line 60) | def force_flush(self, timeout_millis: int = 30000) -> bool: FILE: packages/traceloop-sdk/traceloop/sdk/utils/json_encoder.py class JSONEncoder (line 5) | class JSONEncoder(json.JSONEncoder): method default (line 6) | def default(self, o): FILE: packages/traceloop-sdk/traceloop/sdk/utils/package_check.py function _get_package_name (line 4) | def _get_package_name(dist: Distribution) -> str | None: function is_package_installed (line 14) | def is_package_installed(package_name: str) -> bool: FILE: scripts/codegen/generate_evaluator_models.py function extract_definitions_and_mappings (line 18) | def extract_definitions_and_mappings(swagger_path: str) -> tuple[dict, d... function generate_registry_py (line 100) | def generate_registry_py(output_dir: Path, slug_mappings: dict) -> int: function generate_init_py (line 174) | def generate_init_py(output_dir: Path) -> tuple[int, int]: function generate_definitions_py (line 251) | def generate_definitions_py( function main (line 442) | def main():