langtrace-python-sdk 3.0.2__tar.gz → 3.1.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/PKG-INFO +1 -1
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/litellm_example/basic.py +1 -5
- langtrace_python_sdk-3.1.1/src/examples/litellm_example/config.yaml +10 -0
- langtrace_python_sdk-3.1.1/src/examples/litellm_example/proxy_basic.py +16 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/langtrace.py +59 -11
- langtrace_python_sdk-3.1.1/src/langtrace_python_sdk/version.py +1 -0
- langtrace_python_sdk-3.0.2/src/langtrace_python_sdk/version.py +0 -1
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/.gitignore +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/LICENSE +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/README.md +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/pyproject.toml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/anthropic_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/anthropic_example/completion.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/autogen_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/autogen_example/main.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/azureopenai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/azureopenai_example/completion.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/chroma_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/chroma_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/chat.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/chat_stream.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/embed.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/rerank.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/tools.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/instagram_post/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/instagram_post/agents.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/instagram_post/main.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/instagram_post/tasks.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/instagram_post/tools/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/instagram_post/tools/browser_tools.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/simple_agent/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/simple_agent/agents.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/simple_agent/main.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/simple_agent/tasks.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/trip_planner/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/trip_planner/agents.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/trip_planner/main.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/trip_planner/tasks.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/trip_planner/tools/calculator.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/trip_planner/tools/search_tools.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/QA_basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/QA_basic_with_chain_of_thought.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/QA_basic_with_signature.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/QA_multi_step_with_chain_of_thought.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/math_problems_cot.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/math_problems_cot_parallel.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/optimizers/bootstrap_fewshot.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/program_of_thought_basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/quiz_gen.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/react.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/embedchain_example/simple.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/fastapi_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/fastapi_example/basic_route.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/gemini_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/gemini_example/function_tools.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/gemini_example/main.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/hiveagent_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/inspect_ai_example/basic_eval.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/groq_example.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/langchain_google_example.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/langgraph_example.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/langgraph_example_tools.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/sagemaker.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/tool.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/llamaindex_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/llamaindex_example/agent.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/llamaindex_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/llamaindex_example/data/abramov.txt +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/mistral_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/mistral_example/complete.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/mistral_example/complete_async.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/mistral_example/embeddings.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/ollama_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/ollama_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/async_tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/async_tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/chat_completion.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/chat_completion_tool_choice.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/embeddings_create.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/function_calling.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/images_edit.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/images_generate.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/resources/lounge_flamingo.png +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/resources/mask.png +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/send_user_feedback.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/tool_calling.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/tool_calling_nonstreaming.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/tool_calling_streaming.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/otlp_example/otlp_basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/otlp_example/otlp_with_langtrace.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/perplexity_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/pinecone_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/pinecone_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/qdrant_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/qdrant_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/routellm_example/basic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/vertexai_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/vertexai_example/main.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/weaviate_example/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/weaviate_example/query_text.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/exporter/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/anthropic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/chroma.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/cohere.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/common.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/embedchain.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/gemini.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/groq.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/litellm.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/mistral.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/ollama.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/openai.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/pinecone.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/qdrant.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/vertexai.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/constants/instrumentation/weaviate.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/extensions/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/extensions/langtrace_exporter.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/extensions/langtrace_filesystem.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/anthropic/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/anthropic/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/anthropic/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/anthropic/types.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/autogen/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/autogen/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/autogen/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/chroma/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/chroma/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/chroma/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/cohere/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/cohere/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/cohere/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/crewai/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/crewai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/crewai/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/dspy/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/dspy/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/dspy/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/embedchain/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/embedchain/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/embedchain/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/gemini/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/gemini/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/gemini/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/groq/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/groq/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/groq/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain_community/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain_community/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain_community/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain_core/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain_core/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langchain_core/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langgraph/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langgraph/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/langgraph/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/litellm/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/litellm/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/litellm/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/litellm/types.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/llamaindex/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/llamaindex/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/mistral/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/mistral/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/mistral/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/ollama/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/ollama/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/ollama/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/openai/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/openai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/openai/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/openai/types.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/pinecone/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/pinecone/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/pinecone/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/qdrant/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/qdrant/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/qdrant/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/vertexai/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/vertexai/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/vertexai/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/weaviate/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/weaviate/instrumentation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/instrumentation/weaviate/patch.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/types/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/langtrace_sampler.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/llm.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/misc.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/prompt_registry.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/sdk_version_checker.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/silently_fail.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/types.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/utils/with_root_span.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/run_example.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/__init__.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/anthropic/cassettes/test_anthropic.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/anthropic/cassettes/test_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/anthropic/cassettes/test_async_anthropic_streaming.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/anthropic/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/anthropic/test_anthropic.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/chroma/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/chroma/test_chroma.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/cassettes/test_cohere_chat.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/cassettes/test_cohere_chat_streaming.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/cassettes/test_cohere_embed.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/cassettes/test_cohere_rerank.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/test_cohere_chat.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/test_cohere_embed.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/cohere/test_cohere_rerank.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/groq/cassettes/test_async_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/groq/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/groq/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/groq/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/groq/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/groq/test_groq.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/langchain/cassettes/test_langchain.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/langchain/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/langchain/test_langchain.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/cassettes/test_async_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/cassettes/test_async_image_generation.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/cassettes/test_chat_completion.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/cassettes/test_chat_completion_streaming.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/cassettes/test_image_generation.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/test_chat_completion.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/test_embeddings.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/openai/test_image_generation.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/pinecone/cassettes/test_query.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/pinecone/cassettes/test_upsert.yaml +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/pinecone/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/pinecone/test_pinecone.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/qdrant/conftest.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/qdrant/test_qdrant.py +0 -0
- {langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/tests/utils.py +0 -0
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/litellm_example/basic.py
RENAMED
@@ -1,4 +1,3 @@
|
|
1
|
-
from langtrace_python_sdk import with_langtrace_root_span, langtrace
|
2
1
|
from dotenv import load_dotenv
|
3
2
|
from litellm import completion, acompletion
|
4
3
|
import litellm
|
@@ -8,11 +7,9 @@ load_dotenv()
|
|
8
7
|
|
9
8
|
|
10
9
|
litellm.success_callback = ["langtrace"]
|
11
|
-
langtrace.init()
|
12
10
|
litellm.set_verbose = False
|
13
11
|
|
14
12
|
|
15
|
-
@with_langtrace_root_span("Litellm Example OpenAI")
|
16
13
|
def openAI(streaming=False):
|
17
14
|
response = completion(
|
18
15
|
model="gpt-3.5-turbo",
|
@@ -56,7 +53,6 @@ def anthropic(streaming=False):
|
|
56
53
|
print("ERORRRR", e)
|
57
54
|
|
58
55
|
|
59
|
-
# @with_langtrace_root_span("Litellm Example OpenAI Async Streaming")
|
60
56
|
async def async_anthropic(streaming=False):
|
61
57
|
response = await acompletion(
|
62
58
|
model="claude-2.1",
|
@@ -93,6 +89,6 @@ def cohere(streaming=False):
|
|
93
89
|
|
94
90
|
if __name__ == "__main__":
|
95
91
|
# openAI()
|
96
|
-
anthropic(streaming=False)
|
92
|
+
# anthropic(streaming=False)
|
97
93
|
cohere(streaming=True)
|
98
94
|
# asyncio.run(async_anthropic(streaming=True))
|
@@ -0,0 +1,10 @@
|
|
1
|
+
model_list:
|
2
|
+
- model_name: "gpt-4" # all requests where model not in your config go to this deployment
|
3
|
+
litellm_params:
|
4
|
+
model: openai/gpt-4 # set `openai/` to use the openai route
|
5
|
+
|
6
|
+
litellm_settings:
|
7
|
+
success_callback: ["langtrace"]
|
8
|
+
|
9
|
+
environment_variables:
|
10
|
+
LANGTRACE_API_KEY: "fake-api-key"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import openai
|
2
|
+
from dotenv import load_dotenv
|
3
|
+
|
4
|
+
load_dotenv()
|
5
|
+
|
6
|
+
client = openai.OpenAI(base_url="http://0.0.0.0:4000")
|
7
|
+
|
8
|
+
# request sent to model set on litellm proxy, `litellm --model`
|
9
|
+
response = client.chat.completions.create(
|
10
|
+
model="gpt-4",
|
11
|
+
messages=[
|
12
|
+
{"role": "user", "content": "this is a test request, write a short poem"}
|
13
|
+
],
|
14
|
+
)
|
15
|
+
|
16
|
+
print(response)
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/langtrace_python_sdk/langtrace.py
RENAMED
@@ -31,10 +31,15 @@ from opentelemetry.sdk.trace.export import (
|
|
31
31
|
SimpleSpanProcessor,
|
32
32
|
)
|
33
33
|
|
34
|
+
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import (
|
35
|
+
OTLPSpanExporter as GRPCExporter,
|
36
|
+
)
|
37
|
+
from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
|
38
|
+
OTLPSpanExporter as HTTPExporter,
|
39
|
+
)
|
34
40
|
from langtrace_python_sdk.constants.exporter.langtrace_exporter import (
|
35
41
|
LANGTRACE_REMOTE_URL,
|
36
42
|
)
|
37
|
-
from langtrace_python_sdk.extensions.langtrace_exporter import LangTraceExporter
|
38
43
|
from langtrace_python_sdk.instrumentation import (
|
39
44
|
AnthropicInstrumentation,
|
40
45
|
ChromaInstrumentation,
|
@@ -59,6 +64,8 @@ from langtrace_python_sdk.instrumentation import (
|
|
59
64
|
VertexAIInstrumentation,
|
60
65
|
WeaviateInstrumentation,
|
61
66
|
)
|
67
|
+
from opentelemetry.util.re import parse_env_headers
|
68
|
+
|
62
69
|
from langtrace_python_sdk.types import DisableInstrumentations, InstrumentationMethods
|
63
70
|
from langtrace_python_sdk.utils import (
|
64
71
|
check_if_sdk_is_outdated,
|
@@ -74,7 +81,7 @@ logging.disable(level=logging.INFO)
|
|
74
81
|
|
75
82
|
class LangtraceConfig:
|
76
83
|
def __init__(self, **kwargs):
|
77
|
-
self.api_key = kwargs.get("api_key")
|
84
|
+
self.api_key = kwargs.get("api_key") or os.environ.get("LANGTRACE_API_KEY")
|
78
85
|
self.batch = kwargs.get("batch", True)
|
79
86
|
self.write_spans_to_console = kwargs.get("write_spans_to_console", False)
|
80
87
|
self.custom_remote_exporter = kwargs.get("custom_remote_exporter")
|
@@ -83,7 +90,11 @@ class LangtraceConfig:
|
|
83
90
|
self.disable_tracing_for_functions = kwargs.get("disable_tracing_for_functions")
|
84
91
|
self.service_name = kwargs.get("service_name")
|
85
92
|
self.disable_logging = kwargs.get("disable_logging", False)
|
86
|
-
self.headers =
|
93
|
+
self.headers = (
|
94
|
+
kwargs.get("headers")
|
95
|
+
or os.environ.get("LANGTRACE_HEADERS")
|
96
|
+
or os.environ.get("OTEL_EXPORTER_OTLP_HEADERS")
|
97
|
+
)
|
87
98
|
|
88
99
|
|
89
100
|
def get_host(config: LangtraceConfig) -> str:
|
@@ -96,23 +107,51 @@ def get_host(config: LangtraceConfig) -> str:
|
|
96
107
|
)
|
97
108
|
|
98
109
|
|
110
|
+
def get_service_name(config: LangtraceConfig):
|
111
|
+
service_name = os.environ.get("OTEL_SERVICE_NAME")
|
112
|
+
if service_name:
|
113
|
+
return service_name
|
114
|
+
|
115
|
+
resource_attributes = os.environ.get("OTEL_RESOURCE_ATTRIBUTES")
|
116
|
+
if resource_attributes:
|
117
|
+
attrs = dict(attr.split("=") for attr in resource_attributes.split(","))
|
118
|
+
if "service.name" in attrs:
|
119
|
+
return attrs["service.name"]
|
120
|
+
|
121
|
+
if config.service_name:
|
122
|
+
return config.service_name
|
123
|
+
|
124
|
+
return sys.argv[0]
|
125
|
+
|
126
|
+
|
99
127
|
def setup_tracer_provider(config: LangtraceConfig, host: str) -> TracerProvider:
|
100
128
|
sampler = LangtraceSampler(disabled_methods=config.disable_tracing_for_functions)
|
101
|
-
resource = Resource.create(
|
102
|
-
attributes={
|
103
|
-
SERVICE_NAME: os.environ.get("OTEL_SERVICE_NAME")
|
104
|
-
or config.service_name
|
105
|
-
or sys.argv[0]
|
106
|
-
}
|
107
|
-
)
|
129
|
+
resource = Resource.create(attributes={SERVICE_NAME: get_service_name(config)})
|
108
130
|
return TracerProvider(resource=resource, sampler=sampler)
|
109
131
|
|
110
132
|
|
133
|
+
def get_headers(config: LangtraceConfig):
|
134
|
+
if not config.headers:
|
135
|
+
return {
|
136
|
+
"x-api-key": config.api_key,
|
137
|
+
}
|
138
|
+
|
139
|
+
if isinstance(config.headers, str):
|
140
|
+
return parse_env_headers(config.headers, liberal=True)
|
141
|
+
|
142
|
+
return config.headers
|
143
|
+
|
144
|
+
|
111
145
|
def get_exporter(config: LangtraceConfig, host: str):
|
112
146
|
if config.custom_remote_exporter:
|
113
147
|
return config.custom_remote_exporter
|
114
148
|
|
115
|
-
|
149
|
+
headers = get_headers(config)
|
150
|
+
host = f"{host}/api/trace" if host == LANGTRACE_REMOTE_URL else host
|
151
|
+
if "http" in host.lower() or "https" in host.lower():
|
152
|
+
return HTTPExporter(endpoint=host, headers=headers)
|
153
|
+
else:
|
154
|
+
return GRPCExporter(endpoint=host, headers=headers)
|
116
155
|
|
117
156
|
|
118
157
|
def add_span_processor(provider: TracerProvider, config: LangtraceConfig, exporter):
|
@@ -200,6 +239,15 @@ def init(
|
|
200
239
|
+ Fore.RESET
|
201
240
|
)
|
202
241
|
|
242
|
+
if host == LANGTRACE_REMOTE_URL and not config.api_key:
|
243
|
+
print(Fore.RED)
|
244
|
+
print(
|
245
|
+
"Missing Langtrace API key, proceed to https://langtrace.ai to create one"
|
246
|
+
)
|
247
|
+
print("Set the API key as an environment variable LANGTRACE_API_KEY")
|
248
|
+
print(Fore.RESET)
|
249
|
+
return
|
250
|
+
|
203
251
|
provider = setup_tracer_provider(config, host)
|
204
252
|
exporter = get_exporter(config, host)
|
205
253
|
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "3.1.1"
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "3.0.2"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/anthropic_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/autogen_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/autogen_example/main.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/chroma_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/chroma_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/chat.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/chat_stream.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/embed.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/rerank.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/cohere_example/tools.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/crewai_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/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
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/QA_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
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/quiz_gen.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/dspy_example/react.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/embedchain_example/simple.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/fastapi_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/gemini_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/gemini_example/main.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/hiveagent_example/basic.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/basic.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/langchain_example/tool.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/llamaindex_example/agent.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/llamaindex_example/basic.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/mistral_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/mistral_example/complete.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/mistral_example/embeddings.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/ollama_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/ollama_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/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
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/openai_example/images_edit.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
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/otlp_example/otlp_basic.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/perplexity_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/pinecone_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/pinecone_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/qdrant_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/qdrant_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/routellm_example/basic.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/vertexai_example/__init__.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/vertexai_example/main.py
RENAMED
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/src/examples/weaviate_example/__init__.py
RENAMED
File without changes
|
File without changes
|
{langtrace_python_sdk-3.0.2 → langtrace_python_sdk-3.1.1}/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
|
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
|