langtrace-python-sdk 2.3.9__tar.gz → 2.3.11__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-2.3.9 → langtrace_python_sdk-2.3.11}/PKG-INFO +7 -1
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/README.md +5 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/pyproject.toml +1 -0
- langtrace_python_sdk-2.3.11/src/langtrace_python_sdk/constants/__init__.py +2 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/crewai/patch.py +9 -5
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/langtrace.py +45 -14
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/__init__.py +4 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/sdk_version_checker.py +3 -0
- langtrace_python_sdk-2.3.11/src/langtrace_python_sdk/version.py +1 -0
- langtrace_python_sdk-2.3.9/src/langtrace_python_sdk/constants/__init__.py +0 -1
- langtrace_python_sdk-2.3.9/src/langtrace_python_sdk/version.py +0 -1
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/.gitignore +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/LICENSE +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/anthropic_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/anthropic_example/completion.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/azureopenai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/azureopenai_example/completion.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/chroma_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/chroma_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/chat.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/chat_stream.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/embed.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/rerank.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/tools.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/instagram_post/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/instagram_post/agents.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/instagram_post/main.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/instagram_post/tasks.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/instagram_post/tools/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/instagram_post/tools/browser_tools.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/simple_agent/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/simple_agent/agents.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/simple_agent/main.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/simple_agent/tasks.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/trip_planner/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/trip_planner/agents.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/trip_planner/main.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/trip_planner/tasks.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/trip_planner/tools/calculator.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/trip_planner/tools/search_tools.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/dspy_example/math_problems_cot.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/dspy_example/math_problems_cot_parallel.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/dspy_example/program_of_thought_basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/dspy_example/quiz_gen.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/dspy_example/react.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/embedchain_example/simple.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/fastapi_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/fastapi_example/basic_route.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/gemini_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/gemini_example/function_tools.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/gemini_example/main.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/hiveagent_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/inspect_ai_example/basic_eval.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/groq_example.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/langgraph_example.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/langgraph_example_tools.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/sagemaker.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/tool.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/litellm_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/llamaindex_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/llamaindex_example/agent.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/llamaindex_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/llamaindex_example/data/abramov.txt +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/mistral_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/mistral_example/complete.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/mistral_example/complete_async.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/mistral_example/embeddings.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/ollama_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/ollama_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/async_tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/async_tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/chat_completion.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/chat_completion_tool_choice.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/embeddings_create.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/function_calling.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/images_edit.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/images_generate.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/resources/lounge_flamingo.png +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/resources/mask.png +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/send_user_feedback.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/tool_calling.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/otlp_example/otlp_basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/otlp_example/otlp_with_langtrace.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/perplexity_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/pinecone_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/pinecone_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/qdrant_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/qdrant_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/routellm_example/basic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/vertexai_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/vertexai_example/main.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/weaviate_example/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/weaviate_example/query_text.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/exporter/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/anthropic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/chroma.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/cohere.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/common.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/embedchain.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/gemini.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/groq.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/mistral.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/ollama.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/openai.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/pinecone.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/qdrant.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/vertexai.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/constants/instrumentation/weaviate.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/extensions/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/extensions/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/extensions/langtrace_filesystem.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/anthropic/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/anthropic/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/anthropic/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/anthropic/types.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/chroma/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/chroma/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/chroma/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/cohere/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/cohere/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/cohere/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/crewai/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/crewai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/dspy/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/dspy/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/dspy/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/embedchain/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/embedchain/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/embedchain/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/gemini/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/gemini/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/gemini/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/groq/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/groq/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/groq/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain_community/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain_community/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain_community/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain_core/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain_core/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langchain_core/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langgraph/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langgraph/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/langgraph/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/llamaindex/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/llamaindex/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/mistral/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/mistral/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/mistral/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/ollama/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/ollama/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/ollama/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/openai/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/openai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/openai/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/openai/types.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/pinecone/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/pinecone/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/pinecone/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/qdrant/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/qdrant/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/qdrant/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/vertexai/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/vertexai/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/vertexai/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/weaviate/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/weaviate/instrumentation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/instrumentation/weaviate/patch.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/types/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/langtrace_sampler.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/llm.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/misc.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/prompt_registry.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/silently_fail.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/types.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/utils/with_root_span.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/run_example.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/__init__.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/anthropic/cassettes/test_anthropic.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/anthropic/cassettes/test_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/anthropic/cassettes/test_async_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/anthropic/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/anthropic/test_anthropic.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/chroma/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/chroma/test_chroma.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/cassettes/test_cohere_chat.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/cassettes/test_cohere_chat_streaming.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/cassettes/test_cohere_embed.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/cassettes/test_cohere_rerank.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/test_cohere_chat.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/test_cohere_embed.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/cohere/test_cohere_rerank.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/groq/cassettes/test_async_chat_completion.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/groq/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/groq/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/groq/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/groq/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/groq/test_groq.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/langchain/cassettes/test_langchain.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/langchain/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/langchain/test_langchain.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/cassettes/test_async_image_generation.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/cassettes/test_image_generation.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/test_chat_completion.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/test_embeddings.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/openai/test_image_generation.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/pinecone/cassettes/test_query.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/pinecone/cassettes/test_upsert.yaml +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/pinecone/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/pinecone/test_pinecone.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/qdrant/conftest.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/qdrant/test_qdrant.py +0 -0
- {langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: langtrace-python-sdk
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.11
|
|
4
4
|
Summary: Python SDK for LangTrace
|
|
5
5
|
Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
|
|
6
6
|
Author-email: Scale3 Labs <engineering@scale3labs.com>
|
|
@@ -18,6 +18,7 @@ Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.25.0
|
|
|
18
18
|
Requires-Dist: opentelemetry-instrumentation-sqlalchemy>=0.46b0
|
|
19
19
|
Requires-Dist: opentelemetry-instrumentation>=0.47b0
|
|
20
20
|
Requires-Dist: opentelemetry-sdk>=1.25.0
|
|
21
|
+
Requires-Dist: sentry-sdk>=2.14.0
|
|
21
22
|
Requires-Dist: sqlalchemy
|
|
22
23
|
Requires-Dist: tiktoken>=0.1.1
|
|
23
24
|
Requires-Dist: trace-attributes==7.0.4
|
|
@@ -196,6 +197,10 @@ langtrace.init(custom_remote_exporter=<your_exporter>, batch=<True or False>)
|
|
|
196
197
|
| `api_host` | `Optional[str]` | `https://langtrace.ai/` | The API host for the remote exporter. |
|
|
197
198
|
| `disable_instrumentations` | `Optional[DisableInstrumentations]` | `None` | You can pass an object to disable instrumentation for specific vendors ex: `{'only': ['openai']}` or `{'all_except': ['openai']}` |
|
|
198
199
|
|
|
200
|
+
### Error Reporting to Langtrace
|
|
201
|
+
|
|
202
|
+
By default all sdk errors are reported to langtrace via Sentry. This can be disabled by setting the following enviroment variable to `False` like so `LANGTRACE_ERROR_REPORTING=False`
|
|
203
|
+
|
|
199
204
|
### Additional Customization
|
|
200
205
|
|
|
201
206
|
- `@with_langtrace_root_span` - this decorator is designed to organize and relate different spans, in a hierarchical manner. When you're performing multiple operations that you want to monitor together as a unit, this function helps by establishing a "parent" (`LangtraceRootSpan` or whatever is passed to `name`) span. Then, any calls to the LLM APIs made within the given function (fn) will be considered "children" of this parent span. This setup is especially useful for tracking the performance or behavior of a group of operations collectively, rather than individually.
|
|
@@ -277,6 +282,7 @@ prompt = get_prompt_from_registry(<Registry ID>, options={"prompt_version": 1, "
|
|
|
277
282
|
```
|
|
278
283
|
|
|
279
284
|
### Opt out of tracing prompt and completion data
|
|
285
|
+
|
|
280
286
|
By default, prompt and completion data are captured. If you would like to opt out of it, set the following env var,
|
|
281
287
|
|
|
282
288
|
`TRACE_PROMPT_COMPLETION_DATA=false`
|
|
@@ -148,6 +148,10 @@ langtrace.init(custom_remote_exporter=<your_exporter>, batch=<True or False>)
|
|
|
148
148
|
| `api_host` | `Optional[str]` | `https://langtrace.ai/` | The API host for the remote exporter. |
|
|
149
149
|
| `disable_instrumentations` | `Optional[DisableInstrumentations]` | `None` | You can pass an object to disable instrumentation for specific vendors ex: `{'only': ['openai']}` or `{'all_except': ['openai']}` |
|
|
150
150
|
|
|
151
|
+
### Error Reporting to Langtrace
|
|
152
|
+
|
|
153
|
+
By default all sdk errors are reported to langtrace via Sentry. This can be disabled by setting the following enviroment variable to `False` like so `LANGTRACE_ERROR_REPORTING=False`
|
|
154
|
+
|
|
151
155
|
### Additional Customization
|
|
152
156
|
|
|
153
157
|
- `@with_langtrace_root_span` - this decorator is designed to organize and relate different spans, in a hierarchical manner. When you're performing multiple operations that you want to monitor together as a unit, this function helps by establishing a "parent" (`LangtraceRootSpan` or whatever is passed to `name`) span. Then, any calls to the LLM APIs made within the given function (fn) will be considered "children" of this parent span. This setup is especially useful for tracking the performance or behavior of a group of operations collectively, rather than individually.
|
|
@@ -229,6 +233,7 @@ prompt = get_prompt_from_registry(<Registry ID>, options={"prompt_version": 1, "
|
|
|
229
233
|
```
|
|
230
234
|
|
|
231
235
|
### Opt out of tracing prompt and completion data
|
|
236
|
+
|
|
232
237
|
By default, prompt and completion data are captured. If you would like to opt out of it, set the following env var,
|
|
233
238
|
|
|
234
239
|
`TRACE_PROMPT_COMPLETION_DATA=false`
|
|
@@ -51,7 +51,6 @@ def patch_memory(operation_name, version, tracer: Tracer):
|
|
|
51
51
|
)
|
|
52
52
|
if result:
|
|
53
53
|
span.set_status(Status(StatusCode.OK))
|
|
54
|
-
span.end()
|
|
55
54
|
return result
|
|
56
55
|
|
|
57
56
|
except Exception as err:
|
|
@@ -102,7 +101,6 @@ def patch_crew(operation_name, version, tracer: Tracer):
|
|
|
102
101
|
span.set_attribute(
|
|
103
102
|
f"crewai.crew.{attr}", str(getattr(result, attr))
|
|
104
103
|
)
|
|
105
|
-
span.end()
|
|
106
104
|
return result
|
|
107
105
|
|
|
108
106
|
except Exception as err:
|
|
@@ -139,21 +137,27 @@ class CrewAISpanAttributes:
|
|
|
139
137
|
for key, value in self.crew.items():
|
|
140
138
|
key = f"crewai.crew.{key}"
|
|
141
139
|
if value is not None:
|
|
142
|
-
set_span_attribute(
|
|
140
|
+
set_span_attribute(
|
|
141
|
+
self.span, key, str(value) if isinstance(value, list) else value
|
|
142
|
+
)
|
|
143
143
|
|
|
144
144
|
elif instance_name == "Agent":
|
|
145
145
|
agent = self.set_agent_attributes()
|
|
146
146
|
for key, value in agent.items():
|
|
147
147
|
key = f"crewai.agent.{key}"
|
|
148
148
|
if value is not None:
|
|
149
|
-
set_span_attribute(
|
|
149
|
+
set_span_attribute(
|
|
150
|
+
self.span, key, str(value) if isinstance(value, list) else value
|
|
151
|
+
)
|
|
150
152
|
|
|
151
153
|
elif instance_name == "Task":
|
|
152
154
|
task = self.set_task_attributes()
|
|
153
155
|
for key, value in task.items():
|
|
154
156
|
key = f"crewai.task.{key}"
|
|
155
157
|
if value is not None:
|
|
156
|
-
set_span_attribute(
|
|
158
|
+
set_span_attribute(
|
|
159
|
+
self.span, key, str(value) if isinstance(value, list) else value
|
|
160
|
+
)
|
|
157
161
|
|
|
158
162
|
def set_crew_attributes(self):
|
|
159
163
|
for key, value in self.instance.__dict__.items():
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/langtrace.py
RENAMED
|
@@ -17,8 +17,9 @@ limitations under the License.
|
|
|
17
17
|
import os
|
|
18
18
|
import sys
|
|
19
19
|
from typing import Optional
|
|
20
|
-
|
|
20
|
+
import importlib.util
|
|
21
21
|
from colorama import Fore
|
|
22
|
+
from langtrace_python_sdk.constants import LANGTRACE_SDK_NAME, SENTRY_DSN
|
|
22
23
|
from opentelemetry import trace
|
|
23
24
|
from opentelemetry.instrumentation.sqlalchemy import SQLAlchemyInstrumentor
|
|
24
25
|
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
|
|
@@ -60,8 +61,9 @@ from langtrace_python_sdk.types import (
|
|
|
60
61
|
InstrumentationMethods,
|
|
61
62
|
InstrumentationType,
|
|
62
63
|
)
|
|
63
|
-
from langtrace_python_sdk.utils import check_if_sdk_is_outdated
|
|
64
|
+
from langtrace_python_sdk.utils import check_if_sdk_is_outdated, get_sdk_version
|
|
64
65
|
from langtrace_python_sdk.utils.langtrace_sampler import LangtraceSampler
|
|
66
|
+
import sentry_sdk
|
|
65
67
|
|
|
66
68
|
|
|
67
69
|
def init(
|
|
@@ -120,25 +122,25 @@ def init(
|
|
|
120
122
|
all_instrumentations = {
|
|
121
123
|
"openai": OpenAIInstrumentation(),
|
|
122
124
|
"groq": GroqInstrumentation(),
|
|
123
|
-
"pinecone": PineconeInstrumentation(),
|
|
124
|
-
"
|
|
125
|
-
"
|
|
125
|
+
"pinecone-client": PineconeInstrumentation(),
|
|
126
|
+
"llama-index": LlamaindexInstrumentation(),
|
|
127
|
+
"chromadb": ChromaInstrumentation(),
|
|
126
128
|
"embedchain": EmbedchainInstrumentation(),
|
|
127
|
-
"qdrant": QdrantInstrumentation(),
|
|
129
|
+
"qdrant-client": QdrantInstrumentation(),
|
|
128
130
|
"langchain": LangchainInstrumentation(),
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
+
"langchain-core": LangchainCoreInstrumentation(),
|
|
132
|
+
"langchain-community": LangchainCommunityInstrumentation(),
|
|
131
133
|
"langgraph": LanggraphInstrumentation(),
|
|
132
134
|
"anthropic": AnthropicInstrumentation(),
|
|
133
135
|
"cohere": CohereInstrumentation(),
|
|
134
|
-
"weaviate": WeaviateInstrumentation(),
|
|
136
|
+
"weaviate-client": WeaviateInstrumentation(),
|
|
135
137
|
"sqlalchemy": SQLAlchemyInstrumentor(),
|
|
136
138
|
"ollama": OllamaInstrumentor(),
|
|
137
|
-
"dspy": DspyInstrumentation(),
|
|
139
|
+
"dspy-ai": DspyInstrumentation(),
|
|
138
140
|
"crewai": CrewAIInstrumentation(),
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
"
|
|
141
|
+
"google-cloud-aiplatform": VertexAIInstrumentation(),
|
|
142
|
+
"google-generativeai": GeminiInstrumentation(),
|
|
143
|
+
"mistralai": MistralInstrumentation(),
|
|
142
144
|
}
|
|
143
145
|
|
|
144
146
|
init_instrumentations(disable_instrumentations, all_instrumentations)
|
|
@@ -164,6 +166,27 @@ def init(
|
|
|
164
166
|
provider.add_span_processor(batch_processor_remote)
|
|
165
167
|
|
|
166
168
|
sys.stdout = sys.__stdout__
|
|
169
|
+
if os.environ.get("LANGTRACE_ERROR_REPORTING", "True") == "True":
|
|
170
|
+
sentry_sdk.init(
|
|
171
|
+
dsn=SENTRY_DSN,
|
|
172
|
+
traces_sample_rate=1.0,
|
|
173
|
+
profiles_sample_rate=1.0,
|
|
174
|
+
)
|
|
175
|
+
sdk_options = {
|
|
176
|
+
"service_name": os.environ.get("OTEL_SERVICE_NAME")
|
|
177
|
+
or service_name
|
|
178
|
+
or sys.argv[0],
|
|
179
|
+
"disable_logging": disable_logging,
|
|
180
|
+
"disable_instrumentations": disable_instrumentations,
|
|
181
|
+
"disable_tracing_for_functions": disable_tracing_for_functions,
|
|
182
|
+
"batch": batch,
|
|
183
|
+
"write_spans_to_console": write_spans_to_console,
|
|
184
|
+
"custom_remote_exporter": custom_remote_exporter,
|
|
185
|
+
"sdk_name": LANGTRACE_SDK_NAME,
|
|
186
|
+
"sdk_version": get_sdk_version(),
|
|
187
|
+
"api_host": host,
|
|
188
|
+
}
|
|
189
|
+
sentry_sdk.set_context("sdk_init_options", sdk_options)
|
|
167
190
|
|
|
168
191
|
|
|
169
192
|
def init_instrumentations(
|
|
@@ -171,8 +194,9 @@ def init_instrumentations(
|
|
|
171
194
|
):
|
|
172
195
|
if disable_instrumentations is None:
|
|
173
196
|
for idx, (name, v) in enumerate(all_instrumentations.items()):
|
|
197
|
+
if is_package_installed(name):
|
|
198
|
+
v.instrument()
|
|
174
199
|
|
|
175
|
-
v.instrument()
|
|
176
200
|
else:
|
|
177
201
|
|
|
178
202
|
validate_instrumentations(disable_instrumentations)
|
|
@@ -229,3 +253,10 @@ def validate_instrumentations(disable_instrumentations):
|
|
|
229
253
|
raise ValueError(
|
|
230
254
|
"Cannot specify both only and all_except in disable_instrumentations"
|
|
231
255
|
)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
def is_package_installed(package_name):
|
|
259
|
+
import pkg_resources
|
|
260
|
+
|
|
261
|
+
installed_packages = {p.key for p in pkg_resources.working_set}
|
|
262
|
+
return package_name in installed_packages
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.3.11"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
LANGTRACE_SDK_NAME = "langtrace-python-sdk"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/chroma_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/chroma_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/chat.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/embed.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/rerank.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/cohere_example/tools.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/crewai_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/dspy_example/quiz_gen.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/dspy_example/react.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/embedchain_example/simple.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/fastapi_example/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/gemini_example/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/gemini_example/main.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/hiveagent_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/langchain_example/tool.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/litellm_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/llamaindex_example/agent.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/llamaindex_example/basic.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/mistral_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/mistral_example/complete.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/ollama_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/ollama_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/openai_example/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/otlp_example/otlp_basic.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/perplexity_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/pinecone_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/pinecone_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/qdrant_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/qdrant_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/routellm_example/basic.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/vertexai_example/__init__.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/vertexai_example/main.py
RENAMED
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/examples/weaviate_example/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{langtrace_python_sdk-2.3.9 → langtrace_python_sdk-2.3.11}/src/langtrace_python_sdk/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|