langtrace-python-sdk 3.8.6__tar.gz → 3.8.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/.gitignore +1 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/PKG-INFO +1 -1
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/__init__.py +2 -0
- langtrace_python_sdk-3.8.8/src/langtrace_python_sdk/instrumentation/neo4j_graphrag/__init__.py +3 -0
- langtrace_python_sdk-3.8.8/src/langtrace_python_sdk/instrumentation/neo4j_graphrag/instrumentation.py +62 -0
- langtrace_python_sdk-3.8.8/src/langtrace_python_sdk/instrumentation/neo4j_graphrag/patch.py +229 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/openai/instrumentation.py +15 -1
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/openai/patch.py +128 -15
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/langtrace.py +3 -2
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/llm.py +65 -46
- langtrace_python_sdk-3.8.8/src/langtrace_python_sdk/version.py +1 -0
- langtrace_python_sdk-3.8.6/src/langtrace_python_sdk/version.py +0 -1
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/LICENSE +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/README.md +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/pyproject.toml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/anthropic_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/anthropic_example/completion.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/autogen_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/autogen_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/awsbedrock_examples/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/awsbedrock_examples/converse.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/azureopenai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/azureopenai_example/completion.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cerebras_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cerebras_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/chroma_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/chroma_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cleanlab_example/simple.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/chat.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/chat_stream.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/chat_streamv2.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/chatv2.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/embed.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/rerank.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/rerankv2.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/cohere_example/tools.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/instagram_post/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/instagram_post/agents.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/instagram_post/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/instagram_post/tasks.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/instagram_post/tools/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/instagram_post/tools/browser_tools.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/simple_agent/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/simple_agent/agents.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/simple_agent/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/simple_agent/tasks.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/trip_planner/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/trip_planner/agents.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/trip_planner/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/trip_planner/tasks.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/trip_planner/tools/calculator.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/crewai_example/trip_planner/tools/search_tools.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/QA_basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/QA_basic_with_chain_of_thought.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/QA_basic_with_signature.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/QA_multi_step_with_chain_of_thought.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/math_problems_cot.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/math_problems_cot_parallel.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/optimizers/bootstrap_fewshot.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/program_of_thought_basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/quiz_gen.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/dspy_example/react.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/embedchain_example/simple.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/fastapi_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/fastapi_example/basic_route.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/gemini_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/gemini_example/function_tools.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/gemini_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/google_genai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/google_genai_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/graphlit_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/graphlit_example/conversation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/hiveagent_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/inspect_ai_example/basic_eval.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/groq_example.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/langchain_google_example.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/langgraph_example.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/langgraph_example_tools.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/sagemaker.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langchain_example/tool.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/langgraph_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/litellm_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/litellm_example/config.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/litellm_example/proxy_basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/llamaindex_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/llamaindex_example/agent.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/llamaindex_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/llamaindex_example/data/abramov.txt +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/milvus_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/mistral_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/mistral_example/complete.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/mistral_example/complete_async.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/mistral_example/embeddings.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/mongo_vector_search_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/ollama_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/ollama_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/async_tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/async_tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/chat_completion.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/chat_completion_tool_choice.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/embeddings_create.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/function_calling.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/images_edit.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/images_generate.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/resources/lounge_flamingo.png +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/resources/mask.png +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/send_user_feedback.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/tool_calling.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/openai_example/tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/otlp_example/otlp_basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/otlp_example/otlp_with_langtrace.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/perplexity_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/phidata_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/phidata_example/agent.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/pinecone_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/pinecone_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/qdrant_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/qdrant_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/routellm_example/basic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/vertexai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/vertexai_example/main.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/weaviate_example/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/examples/weaviate_example/query_text.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/exporter/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/anthropic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/aws_bedrock.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/chroma.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/cohere.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/common.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/embedchain.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/gemini.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/groq.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/litellm.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/milvus.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/mistral.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/ollama.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/openai.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/pinecone.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/pymongo.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/qdrant.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/vertexai.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/constants/instrumentation/weaviate.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/extensions/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/extensions/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/extensions/langtrace_filesystem.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/agno/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/agno/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/agno/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/anthropic/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/anthropic/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/anthropic/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/anthropic/types.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/autogen/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/autogen/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/autogen/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/aws_bedrock/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/aws_bedrock/bedrock_streaming_wrapper.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/aws_bedrock/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/aws_bedrock/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/aws_bedrock/stream_body_wrapper.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cerebras/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cerebras/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cerebras/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/chroma/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/chroma/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/chroma/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cleanlab/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cleanlab/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cleanlab/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cohere/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cohere/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/cohere/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/crewai/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/crewai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/crewai/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/crewai_tools/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/crewai_tools/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/crewai_tools/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/dspy/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/dspy/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/dspy/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/embedchain/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/embedchain/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/embedchain/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/gemini/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/gemini/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/gemini/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/google_genai/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/google_genai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/google_genai/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/graphlit/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/graphlit/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/graphlit/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/groq/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/groq/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/groq/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain_community/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain_community/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain_community/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain_core/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain_core/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langchain_core/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langgraph/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langgraph/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/langgraph/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/litellm/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/litellm/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/litellm/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/litellm/types.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/llamaindex/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/llamaindex/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/milvus/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/milvus/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/milvus/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/mistral/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/mistral/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/mistral/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/ollama/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/ollama/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/ollama/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/openai/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/openai/types.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/openai_agents/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/openai_agents/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/openai_agents/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/phidata/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/phidata/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/phidata/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/pinecone/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/pinecone/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/pinecone/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/pymongo/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/pymongo/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/pymongo/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/qdrant/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/qdrant/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/qdrant/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/vertexai/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/vertexai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/vertexai/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/weaviate/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/weaviate/instrumentation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/instrumentation/weaviate/patch.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/types/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/langtrace_sampler.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/misc.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/prompt_registry.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/sdk_version_checker.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/silently_fail.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/types.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/utils/with_root_span.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/run_example.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/__init__.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/anthropic/cassettes/test_anthropic.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/anthropic/cassettes/test_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/anthropic/cassettes/test_async_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/anthropic/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/anthropic/test_anthropic.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/chroma/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/chroma/test_chroma.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/cassettes/test_cohere_chat.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/cassettes/test_cohere_chat_streaming.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/cassettes/test_cohere_embed.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/cassettes/test_cohere_rerank.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/test_cohere_chat.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/test_cohere_embed.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/cohere/test_cohere_rerank.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/groq/cassettes/test_async_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/groq/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/groq/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/groq/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/groq/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/groq/test_groq.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/langchain/cassettes/test_langchain.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/langchain/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/langchain/test_langchain.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/cassettes/test_async_image_generation.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/cassettes/test_embeddings_base_url.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/cassettes/test_image_generation.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/test_chat_completion.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/test_embeddings.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/openai/test_image_generation.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/pinecone/cassettes/test_query.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/pinecone/cassettes/test_upsert.yaml +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/pinecone/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/pinecone/test_pinecone.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/qdrant/conftest.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/qdrant/test_qdrant.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/test_session_id.py +0 -0
- {langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/tests/utils.py +0 -0
@@ -22,6 +22,7 @@ from .litellm import LiteLLMInstrumentation
|
|
22
22
|
from .llamaindex import LlamaindexInstrumentation
|
23
23
|
from .milvus import MilvusInstrumentation
|
24
24
|
from .mistral import MistralInstrumentation
|
25
|
+
from .neo4j_graphrag import Neo4jGraphRAGInstrumentation
|
25
26
|
from .ollama import OllamaInstrumentor
|
26
27
|
from .openai import OpenAIInstrumentation
|
27
28
|
from .openai_agents import OpenAIAgentsInstrumentation
|
@@ -59,6 +60,7 @@ __all__ = [
|
|
59
60
|
"AWSBedrockInstrumentation",
|
60
61
|
"CerebrasInstrumentation",
|
61
62
|
"MilvusInstrumentation",
|
63
|
+
"Neo4jGraphRAGInstrumentation",
|
62
64
|
"GoogleGenaiInstrumentation",
|
63
65
|
"CrewaiToolsInstrumentation",
|
64
66
|
"GraphlitInstrumentation",
|
@@ -0,0 +1,62 @@
|
|
1
|
+
"""
|
2
|
+
Copyright (c) 2025 Scale3 Labs
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
"""
|
16
|
+
|
17
|
+
from typing import Collection
|
18
|
+
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
|
19
|
+
from opentelemetry import trace
|
20
|
+
from wrapt import wrap_function_wrapper as _W
|
21
|
+
from importlib.metadata import version as v
|
22
|
+
from .patch import patch_graphrag_search, patch_kg_pipeline_run, \
|
23
|
+
patch_kg_pipeline_run, patch_retriever_search
|
24
|
+
|
25
|
+
|
26
|
+
class Neo4jGraphRAGInstrumentation(BaseInstrumentor):
|
27
|
+
|
28
|
+
def instrumentation_dependencies(self) -> Collection[str]:
|
29
|
+
return ["neo4j-graphrag>=1.6.0"]
|
30
|
+
|
31
|
+
def _instrument(self, **kwargs):
|
32
|
+
tracer_provider = kwargs.get("tracer_provider")
|
33
|
+
tracer = trace.get_tracer(__name__, "", tracer_provider)
|
34
|
+
graphrag_version = v("neo4j-graphrag")
|
35
|
+
|
36
|
+
try:
|
37
|
+
# instrument kg builder
|
38
|
+
_W(
|
39
|
+
"neo4j_graphrag.experimental.pipeline.kg_builder",
|
40
|
+
"SimpleKGPipeline.run_async",
|
41
|
+
patch_kg_pipeline_run("run_async", graphrag_version, tracer),
|
42
|
+
)
|
43
|
+
|
44
|
+
# Instrument GraphRAG
|
45
|
+
_W(
|
46
|
+
"neo4j_graphrag.generation.graphrag",
|
47
|
+
"GraphRAG.search",
|
48
|
+
patch_graphrag_search("search", graphrag_version, tracer),
|
49
|
+
)
|
50
|
+
|
51
|
+
# Instrument retrievers
|
52
|
+
_W(
|
53
|
+
"neo4j_graphrag.retrievers.vector",
|
54
|
+
"VectorRetriever.get_search_results",
|
55
|
+
patch_retriever_search("vector_search", graphrag_version, tracer),
|
56
|
+
)
|
57
|
+
|
58
|
+
except Exception as e:
|
59
|
+
print(f"Failed to instrument Neo4j GraphRAG: {e}")
|
60
|
+
|
61
|
+
def _uninstrument(self, **kwargs):
|
62
|
+
pass
|
@@ -0,0 +1,229 @@
|
|
1
|
+
"""
|
2
|
+
Copyright (c) 2025 Scale3 Labs
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
"""
|
16
|
+
|
17
|
+
import json
|
18
|
+
|
19
|
+
from importlib_metadata import version as v
|
20
|
+
from langtrace.trace_attributes import FrameworkSpanAttributes
|
21
|
+
from opentelemetry import baggage
|
22
|
+
from opentelemetry.trace import Span, SpanKind, Tracer
|
23
|
+
from opentelemetry.trace.status import Status, StatusCode
|
24
|
+
|
25
|
+
from langtrace_python_sdk.constants import LANGTRACE_SDK_NAME
|
26
|
+
from langtrace_python_sdk.constants.instrumentation.common import (
|
27
|
+
LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY, SERVICE_PROVIDERS)
|
28
|
+
from langtrace_python_sdk.utils.llm import set_span_attributes
|
29
|
+
from langtrace_python_sdk.utils.misc import serialize_args, serialize_kwargs
|
30
|
+
|
31
|
+
|
32
|
+
def patch_kg_pipeline_run(operation_name: str, version: str, tracer: Tracer):
|
33
|
+
|
34
|
+
async def async_traced_method(wrapped, instance, args, kwargs):
|
35
|
+
service_provider = SERVICE_PROVIDERS.get("NEO4J_GRAPHRAG", "neo4j_graphrag")
|
36
|
+
extra_attributes = baggage.get_baggage(LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY)
|
37
|
+
|
38
|
+
span_attributes = {
|
39
|
+
"langtrace.sdk.name": "langtrace-python-sdk",
|
40
|
+
"langtrace.service.name": service_provider,
|
41
|
+
"langtrace.service.type": "framework",
|
42
|
+
"langtrace.service.version": version,
|
43
|
+
"langtrace.version": v(LANGTRACE_SDK_NAME),
|
44
|
+
"neo4j.pipeline.type": "SimpleKGPipeline",
|
45
|
+
**(extra_attributes if extra_attributes is not None else {}),
|
46
|
+
}
|
47
|
+
|
48
|
+
if len(args) > 0:
|
49
|
+
span_attributes["neo4j.pipeline.inputs"] = serialize_args(*args)
|
50
|
+
if kwargs:
|
51
|
+
span_attributes["neo4j.pipeline.kwargs"] = serialize_kwargs(**kwargs)
|
52
|
+
|
53
|
+
file_path = kwargs.get("file_path", args[0] if len(args) > 0 else None)
|
54
|
+
text = kwargs.get("text", args[1] if len(args) > 1 else None)
|
55
|
+
if file_path:
|
56
|
+
span_attributes["neo4j.pipeline.file_path"] = file_path
|
57
|
+
if text:
|
58
|
+
span_attributes["neo4j.pipeline.text_length"] = len(text)
|
59
|
+
|
60
|
+
if hasattr(instance, "runner") and hasattr(instance.runner, "config"):
|
61
|
+
config = instance.runner.config
|
62
|
+
if config:
|
63
|
+
span_attributes["neo4j.pipeline.from_pdf"] = getattr(config, "from_pdf", None)
|
64
|
+
span_attributes["neo4j.pipeline.perform_entity_resolution"] = getattr(config, "perform_entity_resolution", None)
|
65
|
+
|
66
|
+
attributes = FrameworkSpanAttributes(**span_attributes)
|
67
|
+
|
68
|
+
with tracer.start_as_current_span(
|
69
|
+
name=f"neo4j.pipeline.{operation_name}",
|
70
|
+
kind=SpanKind.CLIENT,
|
71
|
+
) as span:
|
72
|
+
try:
|
73
|
+
set_span_attributes(span, attributes)
|
74
|
+
|
75
|
+
result = await wrapped(*args, **kwargs)
|
76
|
+
|
77
|
+
if result:
|
78
|
+
try:
|
79
|
+
if hasattr(result, "to_dict"):
|
80
|
+
result_dict = result.to_dict()
|
81
|
+
span.set_attribute("neo4j.pipeline.result", json.dumps(result_dict))
|
82
|
+
elif hasattr(result, "model_dump"):
|
83
|
+
result_dict = result.model_dump()
|
84
|
+
span.set_attribute("neo4j.pipeline.result", json.dumps(result_dict))
|
85
|
+
except Exception as e:
|
86
|
+
span.set_attribute("neo4j.pipeline.result_error", str(e))
|
87
|
+
|
88
|
+
span.set_status(Status(StatusCode.OK))
|
89
|
+
return result
|
90
|
+
|
91
|
+
except Exception as err:
|
92
|
+
span.record_exception(err)
|
93
|
+
span.set_status(Status(StatusCode.ERROR, str(err)))
|
94
|
+
raise
|
95
|
+
|
96
|
+
return async_traced_method
|
97
|
+
|
98
|
+
|
99
|
+
def patch_graphrag_search(operation_name: str, version: str, tracer: Tracer):
|
100
|
+
|
101
|
+
def traced_method(wrapped, instance, args, kwargs):
|
102
|
+
service_provider = SERVICE_PROVIDERS.get("NEO4J_GRAPHRAG", "neo4j_graphrag")
|
103
|
+
extra_attributes = baggage.get_baggage(LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY)
|
104
|
+
|
105
|
+
# Basic attributes
|
106
|
+
span_attributes = {
|
107
|
+
"langtrace.sdk.name": "langtrace-python-sdk",
|
108
|
+
"langtrace.service.name": service_provider,
|
109
|
+
"langtrace.service.type": "framework",
|
110
|
+
"langtrace.service.version": version,
|
111
|
+
"langtrace.version": v(LANGTRACE_SDK_NAME),
|
112
|
+
"neo4j_graphrag.operation": operation_name,
|
113
|
+
**(extra_attributes if extra_attributes is not None else {}),
|
114
|
+
}
|
115
|
+
|
116
|
+
query_text = kwargs.get("query_text", args[0] if len(args) > 0 else None)
|
117
|
+
if query_text:
|
118
|
+
span_attributes["neo4j_graphrag.query_text"] = query_text
|
119
|
+
|
120
|
+
retriever_config = kwargs.get("retriever_config", None)
|
121
|
+
if retriever_config:
|
122
|
+
span_attributes["neo4j_graphrag.retriever_config"] = json.dumps(retriever_config)
|
123
|
+
|
124
|
+
if hasattr(instance, "retriever"):
|
125
|
+
span_attributes["neo4j_graphrag.retriever_type"] = instance.retriever.__class__.__name__
|
126
|
+
|
127
|
+
if hasattr(instance, "llm"):
|
128
|
+
span_attributes["neo4j_graphrag.llm_type"] = instance.llm.__class__.__name__
|
129
|
+
|
130
|
+
attributes = FrameworkSpanAttributes(**span_attributes)
|
131
|
+
|
132
|
+
with tracer.start_as_current_span(
|
133
|
+
name=f"neo4j_graphrag.{operation_name}",
|
134
|
+
kind=SpanKind.CLIENT,
|
135
|
+
) as span:
|
136
|
+
try:
|
137
|
+
set_span_attributes(span, attributes)
|
138
|
+
|
139
|
+
result = wrapped(*args, **kwargs)
|
140
|
+
|
141
|
+
if result and hasattr(result, "answer"):
|
142
|
+
span.set_attribute("neo4j_graphrag.answer", result.answer)
|
143
|
+
|
144
|
+
if hasattr(result, "retriever_result") and result.retriever_result:
|
145
|
+
try:
|
146
|
+
retriever_items = len(result.retriever_result.items)
|
147
|
+
span.set_attribute("neo4j_graphrag.context_items", retriever_items)
|
148
|
+
except Exception:
|
149
|
+
pass
|
150
|
+
|
151
|
+
span.set_status(Status(StatusCode.OK))
|
152
|
+
return result
|
153
|
+
|
154
|
+
except Exception as err:
|
155
|
+
span.record_exception(err)
|
156
|
+
span.set_status(Status(StatusCode.ERROR, str(err)))
|
157
|
+
raise
|
158
|
+
|
159
|
+
return traced_method
|
160
|
+
|
161
|
+
|
162
|
+
def patch_retriever_search(operation_name: str, version: str, tracer: Tracer):
|
163
|
+
|
164
|
+
def traced_method(wrapped, instance, args, kwargs):
|
165
|
+
service_provider = SERVICE_PROVIDERS.get("NEO4J_GRAPHRAG", "neo4j_graphrag")
|
166
|
+
extra_attributes = baggage.get_baggage(LANGTRACE_ADDITIONAL_SPAN_ATTRIBUTES_KEY)
|
167
|
+
|
168
|
+
# Basic attributes
|
169
|
+
span_attributes = {
|
170
|
+
"langtrace.sdk.name": "langtrace-python-sdk",
|
171
|
+
"langtrace.service.name": service_provider,
|
172
|
+
"langtrace.service.type": "framework",
|
173
|
+
"langtrace.service.version": version,
|
174
|
+
"langtrace.version": v(LANGTRACE_SDK_NAME),
|
175
|
+
"neo4j.retriever.operation": operation_name,
|
176
|
+
"neo4j.retriever.type": instance.__class__.__name__,
|
177
|
+
**(extra_attributes if extra_attributes is not None else {}),
|
178
|
+
}
|
179
|
+
|
180
|
+
query_text = kwargs.get("query_text", args[0] if len(args) > 0 else None)
|
181
|
+
if query_text:
|
182
|
+
span_attributes["neo4j.retriever.query_text"] = query_text
|
183
|
+
|
184
|
+
if hasattr(instance, "__class__") and hasattr(instance.__class__, "__name__"):
|
185
|
+
retriever_type = instance.__class__.__name__
|
186
|
+
|
187
|
+
if retriever_type == "VectorRetriever" and hasattr(instance, "index_name"):
|
188
|
+
span_attributes["neo4j.vector_retriever.index_name"] = instance.index_name
|
189
|
+
|
190
|
+
if retriever_type == "KnowledgeGraphRetriever" and hasattr(instance, "cypher_query"):
|
191
|
+
span_attributes["neo4j.kg_retriever.cypher_query"] = instance.cypher_query
|
192
|
+
|
193
|
+
for param in ["top_k", "similarity_threshold"]:
|
194
|
+
if param in kwargs:
|
195
|
+
span_attributes[f"neo4j.retriever.{param}"] = kwargs[param]
|
196
|
+
elif hasattr(instance, param):
|
197
|
+
span_attributes[f"neo4j.retriever.{param}"] = getattr(instance, param)
|
198
|
+
|
199
|
+
attributes = FrameworkSpanAttributes(**span_attributes)
|
200
|
+
|
201
|
+
with tracer.start_as_current_span(
|
202
|
+
name=f"neo4j.retriever.{operation_name}",
|
203
|
+
kind=SpanKind.CLIENT,
|
204
|
+
) as span:
|
205
|
+
try:
|
206
|
+
set_span_attributes(span, attributes)
|
207
|
+
|
208
|
+
result = wrapped(*args, **kwargs)
|
209
|
+
|
210
|
+
if result:
|
211
|
+
if hasattr(result, "items") and isinstance(result.items, list):
|
212
|
+
span.set_attribute("neo4j.retriever.items_count", len(result.items))
|
213
|
+
|
214
|
+
try:
|
215
|
+
item_ids = [item.id for item in result.items[:5] if hasattr(item, "id")]
|
216
|
+
if item_ids:
|
217
|
+
span.set_attribute("neo4j.retriever.item_ids", json.dumps(item_ids))
|
218
|
+
except Exception:
|
219
|
+
pass
|
220
|
+
|
221
|
+
span.set_status(Status(StatusCode.OK))
|
222
|
+
return result
|
223
|
+
|
224
|
+
except Exception as err:
|
225
|
+
span.record_exception(err)
|
226
|
+
span.set_status(Status(StatusCode.ERROR, str(err)))
|
227
|
+
raise
|
228
|
+
|
229
|
+
return traced_method
|
@@ -24,6 +24,8 @@ from langtrace_python_sdk.instrumentation.openai.patch import (
|
|
24
24
|
async_embeddings_create,
|
25
25
|
async_images_generate,
|
26
26
|
chat_completions_create,
|
27
|
+
openai_responses_create,
|
28
|
+
async_openai_responses_create,
|
27
29
|
embeddings_create,
|
28
30
|
images_edit,
|
29
31
|
images_generate,
|
@@ -32,7 +34,7 @@ from langtrace_python_sdk.instrumentation.openai.patch import (
|
|
32
34
|
logging.basicConfig(level=logging.FATAL)
|
33
35
|
|
34
36
|
|
35
|
-
class OpenAIInstrumentation(BaseInstrumentor):
|
37
|
+
class OpenAIInstrumentation(BaseInstrumentor): # type: ignore
|
36
38
|
|
37
39
|
def instrumentation_dependencies(self) -> Collection[str]:
|
38
40
|
return ["openai >= 0.27.0", "trace-attributes >= 4.0.5"]
|
@@ -54,6 +56,18 @@ class OpenAIInstrumentation(BaseInstrumentor): # type: ignore
|
|
54
56
|
async_chat_completions_create(version, tracer),
|
55
57
|
)
|
56
58
|
|
59
|
+
wrap_function_wrapper(
|
60
|
+
"openai.resources.responses",
|
61
|
+
"AsyncResponses.create",
|
62
|
+
async_openai_responses_create(version, tracer),
|
63
|
+
)
|
64
|
+
|
65
|
+
wrap_function_wrapper(
|
66
|
+
"openai.resources.responses",
|
67
|
+
"Responses.create",
|
68
|
+
openai_responses_create(version, tracer),
|
69
|
+
)
|
70
|
+
|
57
71
|
wrap_function_wrapper(
|
58
72
|
"openai.resources.images",
|
59
73
|
"Images.generate",
|
@@ -7,27 +7,121 @@ from opentelemetry.trace import Span, SpanKind, Tracer
|
|
7
7
|
from opentelemetry.trace.propagation import set_span_in_context
|
8
8
|
from opentelemetry.trace.status import Status, StatusCode
|
9
9
|
|
10
|
-
from langtrace_python_sdk.constants.instrumentation.common import
|
11
|
-
SERVICE_PROVIDERS
|
10
|
+
from langtrace_python_sdk.constants.instrumentation.common import SERVICE_PROVIDERS
|
12
11
|
from langtrace_python_sdk.constants.instrumentation.openai import APIS
|
13
12
|
from langtrace_python_sdk.instrumentation.openai.types import (
|
14
|
-
ChatCompletionsCreateKwargs,
|
15
|
-
|
13
|
+
ChatCompletionsCreateKwargs,
|
14
|
+
ContentItem,
|
15
|
+
EmbeddingsCreateKwargs,
|
16
|
+
ImagesEditKwargs,
|
17
|
+
ImagesGenerateKwargs,
|
18
|
+
ResultType,
|
19
|
+
)
|
16
20
|
from langtrace_python_sdk.types import NOT_GIVEN
|
17
21
|
from langtrace_python_sdk.utils import set_span_attribute
|
18
|
-
from langtrace_python_sdk.utils.llm import (
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
from langtrace_python_sdk.utils.llm import (
|
23
|
+
StreamWrapper,
|
24
|
+
calculate_prompt_tokens,
|
25
|
+
get_base_url,
|
26
|
+
get_extra_attributes,
|
27
|
+
get_langtrace_attributes,
|
28
|
+
get_llm_request_attributes,
|
29
|
+
get_llm_url,
|
30
|
+
get_span_name,
|
31
|
+
get_tool_calls,
|
32
|
+
is_streaming,
|
33
|
+
set_event_completion,
|
34
|
+
set_span_attributes,
|
35
|
+
set_usage_attributes,
|
36
|
+
)
|
28
37
|
from langtrace_python_sdk.utils.silently_fail import silently_fail
|
29
38
|
|
30
39
|
|
40
|
+
def async_openai_responses_create(version: str, tracer: Tracer) -> Callable:
|
41
|
+
"""Wrap the `create` method of the `openai.AsyncResponse.create` class to trace it."""
|
42
|
+
|
43
|
+
async def traced_method(
|
44
|
+
wrapped: Callable, instance: Any, args: List[Any], kwargs: Dict[str, Any]
|
45
|
+
):
|
46
|
+
input_value = kwargs.get("input")
|
47
|
+
prompt = (
|
48
|
+
input_value[0]
|
49
|
+
if isinstance(input_value, list)
|
50
|
+
else [{"role": "user", "content": input_value}]
|
51
|
+
)
|
52
|
+
service_provider = SERVICE_PROVIDERS["OPENAI"]
|
53
|
+
span_attributes = {
|
54
|
+
"instructions": kwargs.get("instructions"),
|
55
|
+
**get_langtrace_attributes(version, service_provider, vendor_type="llm"),
|
56
|
+
**get_llm_request_attributes(
|
57
|
+
kwargs,
|
58
|
+
operation_name="openai.responses.create",
|
59
|
+
prompts=prompt,
|
60
|
+
),
|
61
|
+
}
|
62
|
+
with tracer.start_as_current_span(
|
63
|
+
name="openai.responses.create",
|
64
|
+
kind=SpanKind.CLIENT,
|
65
|
+
context=set_span_in_context(trace.get_current_span()),
|
66
|
+
) as span:
|
67
|
+
try:
|
68
|
+
set_span_attributes(span, span_attributes)
|
69
|
+
|
70
|
+
response = await wrapped(*args, **kwargs)
|
71
|
+
_set_openai_agentic_response_attributes(span, response)
|
72
|
+
|
73
|
+
return response
|
74
|
+
except Exception as err:
|
75
|
+
span.record_exception(err)
|
76
|
+
raise
|
77
|
+
|
78
|
+
return traced_method
|
79
|
+
|
80
|
+
|
81
|
+
def openai_responses_create(version: str, tracer: Tracer) -> Callable:
|
82
|
+
"""Wrap the `create` method of the `openai.responses.create` class to trace it."""
|
83
|
+
|
84
|
+
def traced_method(
|
85
|
+
wrapped: Callable, instance: Any, args: List[Any], kwargs: Dict[str, Any]
|
86
|
+
):
|
87
|
+
input_value = kwargs.get("input")
|
88
|
+
prompt = (
|
89
|
+
input_value[0]
|
90
|
+
if isinstance(input_value, list)
|
91
|
+
else [{"role": "user", "content": input_value}]
|
92
|
+
)
|
93
|
+
service_provider = SERVICE_PROVIDERS["OPENAI"]
|
94
|
+
span_attributes = {
|
95
|
+
"instructions": kwargs.get("instructions"),
|
96
|
+
**get_langtrace_attributes(version, service_provider, vendor_type="llm"),
|
97
|
+
**get_llm_request_attributes(
|
98
|
+
kwargs,
|
99
|
+
operation_name="openai.responses.create",
|
100
|
+
prompts=prompt,
|
101
|
+
),
|
102
|
+
}
|
103
|
+
with tracer.start_as_current_span(
|
104
|
+
name="openai.responses.create",
|
105
|
+
kind=SpanKind.CLIENT,
|
106
|
+
context=set_span_in_context(trace.get_current_span()),
|
107
|
+
end_on_exit=False,
|
108
|
+
) as span:
|
109
|
+
try:
|
110
|
+
set_span_attributes(span, span_attributes)
|
111
|
+
|
112
|
+
response = wrapped(*args, **kwargs)
|
113
|
+
if is_streaming(kwargs) and span.is_recording():
|
114
|
+
return StreamWrapper(response, span)
|
115
|
+
else:
|
116
|
+
_set_openai_agentic_response_attributes(span, response)
|
117
|
+
return response
|
118
|
+
except Exception as err:
|
119
|
+
span.record_exception(err)
|
120
|
+
raise
|
121
|
+
|
122
|
+
return traced_method
|
123
|
+
|
124
|
+
|
31
125
|
def filter_valid_attributes(attributes):
|
32
126
|
"""Filter attributes where value is not None, not an empty string, and not openai.NOT_GIVEN."""
|
33
127
|
return {
|
@@ -634,6 +728,21 @@ def extract_content(choice: Any) -> Union[str, List[Dict[str, Any]], Dict[str, A
|
|
634
728
|
return ""
|
635
729
|
|
636
730
|
|
731
|
+
def _set_openai_agentic_response_attributes(span: Span, response) -> None:
|
732
|
+
set_span_attribute(span, SpanAttributes.LLM_RESPONSE_ID, response.id)
|
733
|
+
set_span_attribute(span, SpanAttributes.LLM_RESPONSE_MODEL, response.model)
|
734
|
+
set_event_completion(span, [{"role": "assistant", "content": response.output_text}])
|
735
|
+
set_usage_attributes(
|
736
|
+
span,
|
737
|
+
{
|
738
|
+
"input_tokens": response.usage.input_tokens,
|
739
|
+
"output_tokens": response.usage.output_tokens,
|
740
|
+
"total_tokens": response.usage.total_tokens,
|
741
|
+
"cached_tokens": response.usage.input_tokens_details["cached_tokens"],
|
742
|
+
},
|
743
|
+
)
|
744
|
+
|
745
|
+
|
637
746
|
@silently_fail
|
638
747
|
def _set_input_attributes(
|
639
748
|
span: Span, kwargs: ChatCompletionsCreateKwargs, attributes: LLMSpanAttributes
|
@@ -707,5 +816,9 @@ def _set_response_attributes(span: Span, result: ResultType) -> None:
|
|
707
816
|
set_span_attribute(
|
708
817
|
span,
|
709
818
|
"gen_ai.usage.cached_tokens",
|
710
|
-
|
819
|
+
(
|
820
|
+
result.usage.prompt_tokens_details.cached_tokens
|
821
|
+
if result.usage.prompt_tokens_details
|
822
|
+
else 0
|
823
|
+
),
|
711
824
|
)
|
{langtrace_python_sdk-3.8.6 → langtrace_python_sdk-3.8.8}/src/langtrace_python_sdk/langtrace.py
RENAMED
@@ -48,8 +48,8 @@ from langtrace_python_sdk.instrumentation import (
|
|
48
48
|
GeminiInstrumentation, GoogleGenaiInstrumentation, GraphlitInstrumentation,
|
49
49
|
GroqInstrumentation, LangchainCommunityInstrumentation,
|
50
50
|
LangchainCoreInstrumentation, LangchainInstrumentation,
|
51
|
-
LanggraphInstrumentation, LiteLLMInstrumentation,
|
52
|
-
|
51
|
+
LanggraphInstrumentation, LiteLLMInstrumentation, LlamaindexInstrumentation,
|
52
|
+
MilvusInstrumentation, MistralInstrumentation, Neo4jGraphRAGInstrumentation,
|
53
53
|
OllamaInstrumentor, OpenAIAgentsInstrumentation, OpenAIInstrumentation,
|
54
54
|
PhiDataInstrumentation, PineconeInstrumentation, PyMongoInstrumentation,
|
55
55
|
QdrantInstrumentation, VertexAIInstrumentation, WeaviateInstrumentation)
|
@@ -284,6 +284,7 @@ def init(
|
|
284
284
|
"phidata": PhiDataInstrumentation(),
|
285
285
|
"agno": AgnoInstrumentation(),
|
286
286
|
"mistralai": MistralInstrumentation(),
|
287
|
+
"neo4j-graphrag": Neo4jGraphRAGInstrumentation(),
|
287
288
|
"boto3": AWSBedrockInstrumentation(),
|
288
289
|
"autogen": AutogenInstrumentation(),
|
289
290
|
"pymongo": PyMongoInstrumentation(),
|