openlit 1.11.0__tar.gz → 1.12.0__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.
Files changed (53) hide show
  1. {openlit-1.11.0 → openlit-1.12.0}/PKG-INFO +3 -2
  2. {openlit-1.11.0 → openlit-1.12.0}/README.md +2 -1
  3. {openlit-1.11.0 → openlit-1.12.0}/pyproject.toml +1 -1
  4. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/groq/async_groq.py +1 -1
  5. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/groq/groq.py +1 -1
  6. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/openai/async_azure_openai.py +2 -2
  7. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/openai/async_openai.py +1 -1
  8. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/openai/azure_openai.py +2 -2
  9. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/openai/openai.py +1 -1
  10. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/transformers/transformers.py +1 -1
  11. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/semcov/__init__.py +3 -3
  12. {openlit-1.11.0 → openlit-1.12.0}/LICENSE +0 -0
  13. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/__helpers.py +0 -0
  14. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/__init__.py +0 -0
  15. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/anthropic/__init__.py +0 -0
  16. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/anthropic/anthropic.py +0 -0
  17. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/anthropic/async_anthropic.py +0 -0
  18. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/bedrock/__init__.py +0 -0
  19. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/bedrock/bedrock.py +0 -0
  20. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/chroma/__init__.py +0 -0
  21. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/chroma/chroma.py +0 -0
  22. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/cohere/__init__.py +0 -0
  23. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/cohere/cohere.py +0 -0
  24. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/embedchain/__init__.py +0 -0
  25. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/embedchain/embedchain.py +0 -0
  26. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/gpt4all/__init__.py +0 -0
  27. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/gpt4all/gpt4all.py +0 -0
  28. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/groq/__init__.py +0 -0
  29. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/haystack/__init__.py +0 -0
  30. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/haystack/haystack.py +0 -0
  31. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/langchain/__init__.py +0 -0
  32. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/langchain/langchain.py +0 -0
  33. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/llamaindex/__init__.py +0 -0
  34. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/llamaindex/llamaindex.py +0 -0
  35. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/milvus/__init__.py +0 -0
  36. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/milvus/milvus.py +0 -0
  37. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/mistral/__init__.py +0 -0
  38. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/mistral/async_mistral.py +0 -0
  39. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/mistral/mistral.py +0 -0
  40. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/ollama/__init__.py +0 -0
  41. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/ollama/async_ollama.py +0 -0
  42. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/ollama/ollama.py +0 -0
  43. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/openai/__init__.py +0 -0
  44. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/pinecone/__init__.py +0 -0
  45. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/pinecone/pinecone.py +0 -0
  46. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/qdrant/__init__.py +0 -0
  47. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/qdrant/qdrant.py +0 -0
  48. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/transformers/__init__.py +0 -0
  49. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/vertexai/__init__.py +0 -0
  50. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/vertexai/async_vertexai.py +0 -0
  51. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/instrumentation/vertexai/vertexai.py +0 -0
  52. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/otel/metrics.py +0 -0
  53. {openlit-1.11.0 → openlit-1.12.0}/src/openlit/otel/tracing.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openlit
3
- Version: 1.11.0
3
+ Version: 1.12.0
4
4
  Summary: OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects
5
5
  Home-page: https://github.com/openlit/openlit/tree/main/openlit/python
6
6
  Keywords: OpenTelemetry,otel,otlp,llm,tracing,openai,anthropic,claude,cohere,llm monitoring,observability,monitoring,gpt,Generative AI,chatGPT
@@ -70,8 +70,9 @@ This project adheres to the [Semantic Conventions](https://github.com/open-telem
70
70
  - [✅ Prometheus + Tempo](https://docs.openlit.io/latest/connections/prometheus-tempo)
71
71
  - [✅ Prometheus + Jaeger](https://docs.openlit.io/latest/connections/prometheus-jaeger)
72
72
  - [✅ Grafana Cloud](https://docs.openlit.io/latest/connections/grafanacloud)
73
- - [✅ DataDog](https://docs.openlit.io/latest/connections/datadog)
74
73
  - [✅ New Relic](https://docs.openlit.io/latest/connections/new-relic)
74
+ - [✅ Elastic](https://docs.openlit.io/latest/connections/elastic)
75
+ - [✅ DataDog](https://docs.openlit.io/latest/connections/datadog)
75
76
  - [✅ SigNoz](https://docs.openlit.io/latest/connections/signoz)
76
77
  - [✅ Dynatrace](https://docs.openlit.io/latest/connections/dynatrace)
77
78
  - [✅ OpenObserve](https://docs.openlit.io/latest/connections/openobserve)
@@ -45,8 +45,9 @@ This project adheres to the [Semantic Conventions](https://github.com/open-telem
45
45
  - [✅ Prometheus + Tempo](https://docs.openlit.io/latest/connections/prometheus-tempo)
46
46
  - [✅ Prometheus + Jaeger](https://docs.openlit.io/latest/connections/prometheus-jaeger)
47
47
  - [✅ Grafana Cloud](https://docs.openlit.io/latest/connections/grafanacloud)
48
- - [✅ DataDog](https://docs.openlit.io/latest/connections/datadog)
49
48
  - [✅ New Relic](https://docs.openlit.io/latest/connections/new-relic)
49
+ - [✅ Elastic](https://docs.openlit.io/latest/connections/elastic)
50
+ - [✅ DataDog](https://docs.openlit.io/latest/connections/datadog)
50
51
  - [✅ SigNoz](https://docs.openlit.io/latest/connections/signoz)
51
52
  - [✅ Dynatrace](https://docs.openlit.io/latest/connections/dynatrace)
52
53
  - [✅ OpenObserve](https://docs.openlit.io/latest/connections/openobserve)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "openlit"
3
- version = "1.11.0"
3
+ version = "1.12.0"
4
4
  description = "OpenTelemetry-native Auto instrumentation library for monitoring LLM Applications, facilitating the integration of observability into your GenAI-driven projects"
5
5
  authors = ["OpenLIT"]
6
6
  repository = "https://github.com/openlit/openlit/tree/main/openlit/python"
@@ -268,7 +268,7 @@ def async_chat(gen_ai_endpoint, version, environment, application_name,
268
268
  else:
269
269
  i = 0
270
270
  while i < kwargs["n"] and trace_content is True:
271
- attribute_name = f"gen_ai.content.completion.{i}"
271
+ attribute_name = f"gen_ai.completion.{i}"
272
272
  span.set_attribute(attribute_name,
273
273
  response.choices[i].message.content)
274
274
  i += 1
@@ -268,7 +268,7 @@ def chat(gen_ai_endpoint, version, environment, application_name,
268
268
  else:
269
269
  i = 0
270
270
  while i < kwargs["n"] and trace_content is True:
271
- attribute_name = f"gen_ai.content.completion.{i}"
271
+ attribute_name = f"gen_ai.completion.{i}"
272
272
  span.set_attribute(attribute_name,
273
273
  response.choices[i].message.content)
274
274
  i += 1
@@ -269,7 +269,7 @@ def azure_async_chat_completions(gen_ai_endpoint, version, environment, applicat
269
269
  else:
270
270
  i = 0
271
271
  while i < kwargs["n"] and trace_content is True:
272
- attribute_name = f"gen_ai.content.completion.{i}"
272
+ attribute_name = f"gen_ai.completion.{i}"
273
273
  span.set_attribute(attribute_name,
274
274
  response.choices[i].message.content)
275
275
  i += 1
@@ -550,7 +550,7 @@ def azure_async_completions(gen_ai_endpoint, version, environment, application_n
550
550
  else:
551
551
  i = 0
552
552
  while i < kwargs["n"] and trace_content is True:
553
- attribute_name = f"gen_ai.content.completion.{i}"
553
+ attribute_name = f"gen_ai.completion.{i}"
554
554
  span.set_attribute(attribute_name,
555
555
  response.choices[i].text)
556
556
  i += 1
@@ -273,7 +273,7 @@ def async_chat_completions(gen_ai_endpoint, version, environment, application_na
273
273
  else:
274
274
  i = 0
275
275
  while i < kwargs["n"] and trace_content is True:
276
- attribute_name = f"gen_ai.content.completion.{i}"
276
+ attribute_name = f"gen_ai.completion.{i}"
277
277
  span.set_attribute(attribute_name,
278
278
  response.choices[i].message.content)
279
279
  i += 1
@@ -269,7 +269,7 @@ def azure_chat_completions(gen_ai_endpoint, version, environment, application_na
269
269
  else:
270
270
  i = 0
271
271
  while i < kwargs["n"] and trace_content is True:
272
- attribute_name = f"gen_ai.content.completion.{i}"
272
+ attribute_name = f"gen_ai.completion.{i}"
273
273
  span.set_attribute(attribute_name,
274
274
  response.choices[i].message.content)
275
275
  i += 1
@@ -548,7 +548,7 @@ def azure_completions(gen_ai_endpoint, version, environment, application_name,
548
548
  else:
549
549
  i = 0
550
550
  while i < kwargs["n"] and trace_content is True:
551
- attribute_name = f"gen_ai.content.completion.{i}"
551
+ attribute_name = f"gen_ai.completion.{i}"
552
552
  span.set_attribute(attribute_name,
553
553
  response.choices[i].text)
554
554
  i += 1
@@ -272,7 +272,7 @@ def chat_completions(gen_ai_endpoint, version, environment, application_name,
272
272
  else:
273
273
  i = 0
274
274
  while i < kwargs["n"] and trace_content is True:
275
- attribute_name = f"gen_ai.content.completion.{i}"
275
+ attribute_name = f"gen_ai.completion.{i}"
276
276
  span.set_attribute(attribute_name,
277
277
  response.choices[i].message.content)
278
278
  i += 1
@@ -98,7 +98,7 @@ def text_wrap(gen_ai_endpoint, version, environment, application_name,
98
98
  completion_tokens = 0
99
99
  for completion in response:
100
100
  if len(response) > 1:
101
- attribute_name = f"gen_ai.content.completion.{i}"
101
+ attribute_name = f"gen_ai.completion.{i}"
102
102
  else:
103
103
  attribute_name = SemanticConvetion.GEN_AI_CONTENT_COMPLETION
104
104
  if i == 0:
@@ -21,7 +21,7 @@ class SemanticConvetion:
21
21
  GEN_AI_SYSTEM = "gen_ai.system"
22
22
  GEN_AI_ENVIRONMENT = "gen_ai.environment"
23
23
  GEN_AI_APPLICATION_NAME = "gen_ai.application_name"
24
- GEN_AI_TYPE = "gen_ai.type"
24
+ GEN_AI_TYPE = "gen_ai.operation.name"
25
25
  GEN_AI_HUB_OWNER = "gen_ai.hub.owner"
26
26
  GEN_AI_HUB_REPO = "gen_ai.hub.repo"
27
27
  GEN_AI_RETRIEVAL_SOURCE = "gen_ai.retrieval.source"
@@ -68,8 +68,8 @@ class SemanticConvetion:
68
68
  GEN_AI_RESPONSE_IMAGE_STYLE = "gen_ai.request.image_style"
69
69
 
70
70
  # GenAI Content
71
- GEN_AI_CONTENT_PROMPT = "gen_ai.content.prompt"
72
- GEN_AI_CONTENT_COMPLETION = "gen_ai.content.completion"
71
+ GEN_AI_CONTENT_PROMPT = "gen_ai.prompt"
72
+ GEN_AI_CONTENT_COMPLETION = "gen_ai.completion"
73
73
  GEN_AI_CONTENT_REVISED_PROMPT = "gen_ai.content.revised_prompt"
74
74
 
75
75
  # GenAI Evaluation Metrics
File without changes