openlit 1.1.3__py3-none-any.whl → 1.5.0__py3-none-any.whl

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.
openlit/otel/tracing.py CHANGED
@@ -40,6 +40,9 @@ def setup_tracing(application_name, environment, tracer, otlp_endpoint, otlp_hea
40
40
  global TRACER_SET
41
41
 
42
42
  try:
43
+ #Disable Haystack Auto Tracing
44
+ os.environ["HAYSTACK_AUTO_TRACE_ENABLED"] = "false"
45
+
43
46
  if not TRACER_SET:
44
47
  # Create a resource with the service name attribute.
45
48
  resource = Resource(attributes={
@@ -86,16 +86,22 @@ class SemanticConvetion:
86
86
  GEN_AI_SYSTEM_COHERE = "cohere"
87
87
  GEN_AI_SYSTEM_MISTRAL = "mistral"
88
88
  GEN_AI_SYSTEM_BEDROCK = "bedrock"
89
+ GEN_AI_SYSTEM_VERTEXAI = "vertexai"
90
+ GEN_AI_SYSTEM_GROQ = "groq"
89
91
  GEN_AI_SYSTEM_LANGCHAIN = "langchain"
92
+ GEN_AI_SYSTEM_LLAMAINDEX = "llama_index"
93
+ GEN_AI_SYSTEM_HAYSTACK = "haystack"
90
94
 
91
95
  # Vector DB
92
96
  DB_REQUESTS = "db.total.requests"
93
97
  DB_SYSTEM = "db.system"
94
- DB_SYSTEM_CHROMA = "chroma"
95
- DB_SYSTEM_PINECONE = "pinecone"
96
98
  DB_COLLECTION_NAME = "db.collection.name"
97
99
  DB_OPERATION = "db.operation"
100
+ DB_OPERATION_STATUS = "db.operation.status"
98
101
  DB_OPERATION_CREATE_INDEX = "create_index"
102
+ DB_OPERATION_CREATE_COLLECTION = "create_collection"
103
+ DB_OPERATION_UPDATE_COLLECTION = "update_collection"
104
+ DB_OPERATION_DELETE_COLLECTION = "delete_collection"
99
105
  DB_OPERATION_QUERY = "query"
100
106
  DB_OPERATION_DELETE = "delete"
101
107
  DB_OPERATION_UPDATE = "update"
@@ -107,6 +113,7 @@ class SemanticConvetion:
107
113
  DB_VECTOR_COUNT = "db.vector_count"
108
114
  DB_METADATA_COUNT = "db.metadatas_count"
109
115
  DB_DOCUMENTS_COUNT = "db.documents_count"
116
+ DB_PAYLOAD_COUNT = "db.payload_count"
110
117
  DB_QUERY_LIMIT = "db.limit"
111
118
  DB_OFFSET = "db.offset"
112
119
  DB_WHERE_DOCUMENT = "db.where_document"
@@ -114,7 +121,7 @@ class SemanticConvetion:
114
121
  DB_STATEMENT = "db.statement"
115
122
  DB_N_RESULTS = "db.n_results"
116
123
  DB_DELETE_ALL = "db.delete_all"
117
- DB_INDEX_NAME = "db.create_index.name"
124
+ DB_INDEX_NAME = "db.index.name"
118
125
  DB_INDEX_DIMENSION = "db.create_index.dimensions"
119
126
  DB_INDEX_METRIC = "db.create_index.metric"
120
127
  DB_INDEX_SPEC = "db.create_index.spec"
@@ -122,3 +129,7 @@ class SemanticConvetion:
122
129
  DB_UPDATE_METADATA = "db.update.metadata"
123
130
  DB_UPDATE_VALUES = "db.update.values"
124
131
  DB_UPDATE_ID = "db.update.id"
132
+
133
+ DB_SYSTEM_CHROMA = "chroma"
134
+ DB_SYSTEM_PINECONE = "pinecone"
135
+ DB_SYSTEM_QDRANT = "qdrant"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openlit
3
- Version: 1.1.3
3
+ Version: 1.5.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
@@ -49,30 +49,38 @@ This project adheres to the [Semantic Conventions](https://github.com/open-telem
49
49
  ## What can be Auto Instrumented?
50
50
 
51
51
  ### LLMs
52
- - ✅ OpenAI
53
- - ✅ Anthropic
54
- - ✅ Cohere
55
- - ✅ Mistral
56
- - ✅ Azure OpenAI
57
- - ✅ HuggingFace Transformers
52
+ - [✅ OpenAI](https://docs.openlit.io/latest/integrations/openai)
53
+ - [✅ Anthropic](https://docs.openlit.io/latest/integrations/anthropic)
54
+ - [✅ Cohere](https://docs.openlit.io/latest/integrations/cohere)
55
+ - [✅ Mistral](https://docs.openlit.io/latest/integrations/mistral)
56
+ - [✅ Azure OpenAI](https://docs.openlit.io/latest/integrations/azure-openai)
57
+ - [✅ HuggingFace Transformers](https://docs.openlit.io/latest/integrations/huggingface)
58
+ - [✅ Amazon Bedrock](https://docs.openlit.io/latest/integrations/bedrock)
59
+ - [✅ Vertex AI](https://docs.openlit.io/latest/integrations/vertexai)
60
+ - [✅ Groq](https://docs.openlit.io/latest/integrations/groq)
58
61
 
59
62
  ### Vector DBs
60
- - ✅ ChromaDB
61
- - ✅ Pinecone
63
+ - [✅ ChromaDB](https://docs.openlit.io/latest/integrations/chromadb)
64
+ - [✅ Pinecone](https://docs.openlit.io/latest/integrations/pinecone)
65
+ - [✅ Qdrant](https://docs.openlit.io/latest/integrations/qdrant)
62
66
 
63
67
  ### Frameworks
64
- - ✅ Langchain
65
- - ✅ LiteLLM
68
+ - [✅ Langchain](https://docs.openlit.io/latest/integrations/langchain)
69
+ - [✅ LiteLLM](https://docs.openlit.io/latest/integrations/litellm)
70
+ - [✅ LlamaIndex](https://docs.openlit.io/latest/integrations/llama-index)
71
+ - [✅ Haystack](https://docs.openlit.io/latest/integrations/haystack)
66
72
 
67
73
  ## Supported Destinations
68
- - ✅ OpenTelemetry Collector
69
- - ✅ Grafana Cloud
70
- - ✅ Grafana Tempo
71
- - ✅ DataDog
72
- - ✅ New Relic
73
- - ✅ SigNoz
74
- - ✅ Dynatrace
75
- - ✅ OpenObserve
74
+ - [✅ OpenTelemetry Collector](https://docs.openlit.io/latest/connections/otelcol)
75
+ - [Prometheus + Tempo](https://docs.openlit.io/latest/connections/prometheus-tempo)
76
+ - [Prometheus + Jaeger](https://docs.openlit.io/latest/connections/prometheus-jaeger)
77
+ - [Grafana Cloud](https://docs.openlit.io/latest/connections/grafanacloud)
78
+ - [DataDog](https://docs.openlit.io/latest/connections/datadog)
79
+ - [New Relic](https://docs.openlit.io/latest/connections/new-relic)
80
+ - [SigNoz](https://docs.openlit.io/latest/connections/signoz)
81
+ - [Dynatrace](https://docs.openlit.io/latest/connections/dynatrace)
82
+ - [✅ OpenObserve](https://docs.openlit.io/latest/connections/openobserve)
83
+ - [✅ Highlight.io](https://docs.openlit.io/latest/connections/highlight)
76
84
 
77
85
  ## 💿 Installation
78
86
 
@@ -0,0 +1,44 @@
1
+ openlit/__helpers.py,sha256=EEbLEUKuCiBp0WiieAvUnGcaU5D7grFgNVDCBgMKjQE,4651
2
+ openlit/__init__.py,sha256=nm6JVVYnaslW5RQRvj1x0qnCQA_WBhAjHioY3w_IXlk,9647
3
+ openlit/instrumentation/anthropic/__init__.py,sha256=oaU53BOPyfUKbEzYvLr1DPymDluurSnwo4Hernf2XdU,1955
4
+ openlit/instrumentation/anthropic/anthropic.py,sha256=CYBui5eEfWdSfFF0xtCQjh1xO-gCVJc_V9Hli0szVZE,16026
5
+ openlit/instrumentation/anthropic/async_anthropic.py,sha256=NW84kTQ3BkUx1zZuMRps_J7zTYkmq5BxOrqSjqWInBs,16068
6
+ openlit/instrumentation/bedrock/__init__.py,sha256=QPvDMQde6Meodu5JvosHdZsnyExS19lcoP5Li4YrOkw,1540
7
+ openlit/instrumentation/bedrock/bedrock.py,sha256=Q5t5283LGEvhyrUCr9ofEQF22JTkc1UvT2_6u7e7gmA,22278
8
+ openlit/instrumentation/chroma/__init__.py,sha256=61lFpHlUEQUobsUJZHXdvOViKwsOH8AOvSfc4VgCmiM,3253
9
+ openlit/instrumentation/chroma/chroma.py,sha256=r75mAdwSDmjgphixRJPiCmcSoqFIH8ojkohkcAOj7i4,10407
10
+ openlit/instrumentation/cohere/__init__.py,sha256=PC5T1qIg9pwLNocBP_WjG5B_6p_z019s8quk_fNLAMs,1920
11
+ openlit/instrumentation/cohere/cohere.py,sha256=_TXAB64-sujs51-JQVu30HqwBaNengNWHEL0hgAAgJA,20381
12
+ openlit/instrumentation/groq/__init__.py,sha256=uW_0G6HSanQyK2dIXYhzR604pDiyPQfybzc37DsfSew,1911
13
+ openlit/instrumentation/groq/async_groq.py,sha256=WQwHpC-NJoyEf-jAJlxEcdnpd5jmlfAsDtEBRJ47CxA,19084
14
+ openlit/instrumentation/groq/groq.py,sha256=4uiEFUjxJ0q-c3GlgPAMc4NijG1YLgQp7o3wcwFrxeg,19048
15
+ openlit/instrumentation/haystack/__init__.py,sha256=QK6XxxZUHX8vMv2Crk7rNBOc64iOOBLhJGL_lPlAZ8s,1758
16
+ openlit/instrumentation/haystack/haystack.py,sha256=oQIZiDhdp3gnJnhYQ1OouJMc9YT0pQ-_31cmNuopa68,3891
17
+ openlit/instrumentation/langchain/__init__.py,sha256=TW1ZR7I1i9Oig-wDWp3j1gmtQFO76jNBXQRBGGKzoOo,2531
18
+ openlit/instrumentation/langchain/langchain.py,sha256=G66UytYwWW0DdvChomzkc5_MJ-sjupuDwlxe4KqlGhY,7639
19
+ openlit/instrumentation/llamaindex/__init__.py,sha256=FwE0iozGbZcd2dWo9uk4EO6qKPAe55byhZBuzuFyxXA,1973
20
+ openlit/instrumentation/llamaindex/llamaindex.py,sha256=uiIigbwhonSbJWA7LpgOVI1R4kxxPODS1K5wyHIQ4hM,4048
21
+ openlit/instrumentation/mistral/__init__.py,sha256=zJCIpFWRbsYrvooOJYuqwyuKeSOQLWbyXWCObL-Snks,3156
22
+ openlit/instrumentation/mistral/async_mistral.py,sha256=PXpiLwkonTtAPVOUh9pXMSYeabwH0GFG_HRDWrEKhMM,21361
23
+ openlit/instrumentation/mistral/mistral.py,sha256=nbAyMlPiuA9hihePkM_nnxAjahZSndT-B-qXRO5VIhk,21212
24
+ openlit/instrumentation/openai/__init__.py,sha256=AZ2cPr3TMKkgGdMl_yXMeSi7bWhtmMqOW1iHdzHHGHA,16265
25
+ openlit/instrumentation/openai/async_azure_openai.py,sha256=QE_5KHaCHAndkf7Y2Iq66mZUc0I1qtqIJ6iYPnwiuXA,46297
26
+ openlit/instrumentation/openai/async_openai.py,sha256=qfJG_gIkSz3Gjau0zQ_G3tvkqkOd-md5LBK6wIjvH0U,45841
27
+ openlit/instrumentation/openai/azure_openai.py,sha256=8nm1hsGdWLhJt97fkV254_biYdGeVJiZP2_Yb3pKSEU,46091
28
+ openlit/instrumentation/openai/openai.py,sha256=VVl0fuQfxitH-V4hVeP5VxB31-yWMI74Xz4katlsG78,46522
29
+ openlit/instrumentation/pinecone/__init__.py,sha256=Mv9bElqNs07_JQkYyNnO0wOM3hdbprmw7sttdMeKC7g,2526
30
+ openlit/instrumentation/pinecone/pinecone.py,sha256=0EhLmtOuvwWVvAKh3e56wyd8wzQq1oaLOmF15SVHxVE,8765
31
+ openlit/instrumentation/qdrant/__init__.py,sha256=OJIg17-IGmBEvBYVKjCHcJ0hFXuEL7XV_jzUTqkolN8,4799
32
+ openlit/instrumentation/qdrant/qdrant.py,sha256=woK7BhmnjRqwU3OmXM6RfQdBBrjk88zV91rvQbPJ46c,14436
33
+ openlit/instrumentation/transformers/__init__.py,sha256=9-KLjq-aPTh13gTBYsWltV6hokGwt3mP4759SwsaaCk,1478
34
+ openlit/instrumentation/transformers/transformers.py,sha256=peT0BGskYt7AZ0b93TZ7qECXfZRgDQMasUeamexYdZI,7592
35
+ openlit/instrumentation/vertexai/__init__.py,sha256=N3E9HtzefD-zC0fvmfGYiDmSqssoavp_i59wfuYLyMw,6079
36
+ openlit/instrumentation/vertexai/async_vertexai.py,sha256=PMHYyLf1J4gZpC_-KZ_ZVx1xIHhZDJSNa7mrjNXZ5M0,52372
37
+ openlit/instrumentation/vertexai/vertexai.py,sha256=UvpNKBHPoV9idVMfGigZnmWuEQiyqSwZn0zK9-U7Lzw,52125
38
+ openlit/otel/metrics.py,sha256=O7NoaDz0bY19mqpE4-0PcKwEe-B-iJFRgOCaanAuZAc,4291
39
+ openlit/otel/tracing.py,sha256=vL1ifMbARPBpqK--yXYsCM6y5dSu5LFIKqkhZXtYmUc,3712
40
+ openlit/semcov/__init__.py,sha256=0BHZuWE4strAmc-ilcVf6Nzoe0FEx0v9FStkccxs6mc,6168
41
+ openlit-1.5.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
42
+ openlit-1.5.0.dist-info/METADATA,sha256=Z0jWHca3OkoU_dcT2STaAvAFDf3xLbPtAXfOxGAK2m0,12146
43
+ openlit-1.5.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
44
+ openlit-1.5.0.dist-info/RECORD,,
@@ -1,32 +0,0 @@
1
- openlit/__helpers.py,sha256=EEbLEUKuCiBp0WiieAvUnGcaU5D7grFgNVDCBgMKjQE,4651
2
- openlit/__init__.py,sha256=XJcBBNOCiFMln1rc2fFqbbAwyJ_F4xXeB0cnKUETZKk,8932
3
- openlit/instrumentation/anthropic/__init__.py,sha256=oaU53BOPyfUKbEzYvLr1DPymDluurSnwo4Hernf2XdU,1955
4
- openlit/instrumentation/anthropic/anthropic.py,sha256=gLN7LrgbTTOxgO8TEn-mX7WCYVGExrIGB-_ueCLPMEY,15993
5
- openlit/instrumentation/anthropic/async_anthropic.py,sha256=wb5U9aF3FtgPZ_1EZudsuKaB6wmOrEVwDIlfcEWnQqU,16035
6
- openlit/instrumentation/bedrock/__init__.py,sha256=QPvDMQde6Meodu5JvosHdZsnyExS19lcoP5Li4YrOkw,1540
7
- openlit/instrumentation/bedrock/bedrock.py,sha256=Q5t5283LGEvhyrUCr9ofEQF22JTkc1UvT2_6u7e7gmA,22278
8
- openlit/instrumentation/chroma/__init__.py,sha256=61lFpHlUEQUobsUJZHXdvOViKwsOH8AOvSfc4VgCmiM,3253
9
- openlit/instrumentation/chroma/chroma.py,sha256=wcY5sN-Lfdr4P56FDy8O_ft20gfxTDP12c2vIUF7Qno,10374
10
- openlit/instrumentation/cohere/__init__.py,sha256=PC5T1qIg9pwLNocBP_WjG5B_6p_z019s8quk_fNLAMs,1920
11
- openlit/instrumentation/cohere/cohere.py,sha256=LdRMStLs-UTxDsGsTObEv-unC8g1tRFaU2EFCUBFGHI,20348
12
- openlit/instrumentation/langchain/__init__.py,sha256=TW1ZR7I1i9Oig-wDWp3j1gmtQFO76jNBXQRBGGKzoOo,2531
13
- openlit/instrumentation/langchain/langchain.py,sha256=D-PiYlmUW5SuE4rvKRMOsMGtW5wI6aA3ldig1JhXUok,7609
14
- openlit/instrumentation/mistral/__init__.py,sha256=zJCIpFWRbsYrvooOJYuqwyuKeSOQLWbyXWCObL-Snks,3156
15
- openlit/instrumentation/mistral/async_mistral.py,sha256=nD1ns326mclIUjd4PEfrSa8mufpoZqjYF1meK9oohkA,21328
16
- openlit/instrumentation/mistral/mistral.py,sha256=fcwm6UfhqTZ9KEJACO90jz_CpabUg8KKsaqXTAkTwgo,21179
17
- openlit/instrumentation/openai/__init__.py,sha256=AZ2cPr3TMKkgGdMl_yXMeSi7bWhtmMqOW1iHdzHHGHA,16265
18
- openlit/instrumentation/openai/async_azure_openai.py,sha256=QE_5KHaCHAndkf7Y2Iq66mZUc0I1qtqIJ6iYPnwiuXA,46297
19
- openlit/instrumentation/openai/async_openai.py,sha256=qfJG_gIkSz3Gjau0zQ_G3tvkqkOd-md5LBK6wIjvH0U,45841
20
- openlit/instrumentation/openai/azure_openai.py,sha256=8nm1hsGdWLhJt97fkV254_biYdGeVJiZP2_Yb3pKSEU,46091
21
- openlit/instrumentation/openai/openai.py,sha256=VVl0fuQfxitH-V4hVeP5VxB31-yWMI74Xz4katlsG78,46522
22
- openlit/instrumentation/pinecone/__init__.py,sha256=Mv9bElqNs07_JQkYyNnO0wOM3hdbprmw7sttdMeKC7g,2526
23
- openlit/instrumentation/pinecone/pinecone.py,sha256=0C-Dd4YOlBCKQ7vmWvFsvokjFCKCn-snquHp7n12yPM,8732
24
- openlit/instrumentation/transformers/__init__.py,sha256=9-KLjq-aPTh13gTBYsWltV6hokGwt3mP4759SwsaaCk,1478
25
- openlit/instrumentation/transformers/transformers.py,sha256=peT0BGskYt7AZ0b93TZ7qECXfZRgDQMasUeamexYdZI,7592
26
- openlit/otel/metrics.py,sha256=O7NoaDz0bY19mqpE4-0PcKwEe-B-iJFRgOCaanAuZAc,4291
27
- openlit/otel/tracing.py,sha256=peismkno0YPoRezHPbF5Ycz15_oOBErn_coW1CPspHg,3612
28
- openlit/semcov/__init__.py,sha256=l8Vd1-HqSOD8d7V_D4HIALBNfHeaI4uYeo-bGiMS5tQ,5724
29
- openlit-1.1.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
30
- openlit-1.1.3.dist-info/METADATA,sha256=lznlkWxsxrqJxH2YSux6X04LBWb9wD23UsGjumwq2JM,10535
31
- openlit-1.1.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- openlit-1.1.3.dist-info/RECORD,,