id: 1 unit: def _chat_completion_wrapper() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/__init__.py start line: 0 end line: 0 size: 61 LOC McCabe index: 7 number of parameters: 5 id: 2 unit: def _get_attributes_from_wrapper() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 49 LOC McCabe index: 24 number of parameters: 2 id: 3 unit: def _instrument() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/__init__.py start line: 0 end line: 0 size: 35 LOC McCabe index: 2 number of parameters: 2 id: 4 unit: def _patch() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/__init__.py start line: 0 end line: 0 size: 34 LOC McCabe index: 3 number of parameters: 2 id: 5 unit: def end() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/wrappers.py start line: 0 end line: 0 size: 29 LOC McCabe index: 6 number of parameters: 2 id: 6 unit: def _embeddings_wrapper() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/__init__.py start line: 0 end line: 0 size: 28 LOC McCabe index: 4 number of parameters: 5 id: 7 unit: def _get_embeddings_attributes_from_wrapper() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 20 LOC McCabe index: 7 number of parameters: 2 id: 8 unit: def parse() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/wrappers.py start line: 0 end line: 0 size: 16 LOC McCabe index: 2 number of parameters: 1 id: 9 unit: def _attributes_from_client() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 13 LOC McCabe index: 7 number of parameters: 1 id: 10 unit: def _record_token_usage_metrics() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 13 LOC McCabe index: 4 number of parameters: 3 id: 11 unit: def _record_operation_duration_metric() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 13 LOC McCabe index: 3 number of parameters: 3 id: 12 unit: def _serialize_tool_calls_for_event() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 13 unit: def __init__() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/wrappers.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 0 id: 14 unit: def __iter__() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/wrappers.py start line: 0 end line: 0 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 15 unit: def process_chunk() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/wrappers.py start line: 0 end line: 0 size: 9 LOC McCabe index: 4 number of parameters: 2 id: 16 unit: def _uninstrument() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/__init__.py start line: 0 end line: 0 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 17 unit: def _span_name_from_attributes() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 18 unit: def _get_attributes_from_response() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 19 unit: def _is_raw_response() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 20 unit: def _get_embeddings_attributes_from_response() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 21 unit: def _key_or_property() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 2 id: 22 unit: def _get_attributes_if_set() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 3 LOC McCabe index: 3 number of parameters: 2 id: 23 unit: def __enter__() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/wrappers.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 24 unit: def __exit__() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/wrappers.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 4 id: 25 unit: def _get_event_attributes() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 26 unit: def _send_log_events_from_messages() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 27 unit: def _send_log_events_from_choices() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 28 unit: def _send_log_events_from_stream_choices() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/helpers.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 29 unit: def instrumentation_dependencies() file: instrumentation/elastic-opentelemetry-instrumentation-openai/src/opentelemetry/instrumentation/openai/__init__.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1