monocle-apptrace 0.1.1__py3-none-any.whl → 0.3.0b1__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.
Potentially problematic release.
This version of monocle-apptrace might be problematic. Click here for more details.
- monocle_apptrace/botocore/__init__.py +9 -0
- monocle_apptrace/constants.py +18 -4
- monocle_apptrace/exporters/aws/s3_exporter.py +158 -0
- monocle_apptrace/exporters/azure/blob_exporter.py +125 -0
- monocle_apptrace/exporters/base_exporter.py +48 -0
- monocle_apptrace/exporters/exporter_processor.py +19 -0
- monocle_apptrace/exporters/monocle_exporters.py +27 -0
- monocle_apptrace/exporters/okahu/okahu_exporter.py +115 -0
- monocle_apptrace/haystack/__init__.py +4 -4
- monocle_apptrace/haystack/wrap_pipeline.py +3 -2
- monocle_apptrace/instrumentor.py +14 -17
- monocle_apptrace/langchain/__init__.py +6 -3
- monocle_apptrace/llamaindex/__init__.py +8 -7
- monocle_apptrace/message_processing.py +80 -0
- monocle_apptrace/metamodel/entities/README.md +33 -10
- monocle_apptrace/metamodel/entities/app_hosting_types.json +29 -0
- monocle_apptrace/metamodel/entities/entities.json +49 -0
- monocle_apptrace/metamodel/entities/inference_types.json +33 -0
- monocle_apptrace/metamodel/entities/model_types.json +41 -0
- monocle_apptrace/metamodel/entities/vector_store_types.json +25 -0
- monocle_apptrace/metamodel/entities/workflow_types.json +22 -0
- monocle_apptrace/metamodel/maps/attributes/inference/botocore_entities.json +27 -0
- monocle_apptrace/metamodel/maps/attributes/inference/haystack_entities.json +57 -0
- monocle_apptrace/metamodel/maps/attributes/inference/langchain_entities.json +57 -0
- monocle_apptrace/metamodel/maps/attributes/inference/llamaindex_entities.json +57 -0
- monocle_apptrace/metamodel/maps/attributes/retrieval/haystack_entities.json +31 -0
- monocle_apptrace/metamodel/maps/attributes/retrieval/langchain_entities.json +31 -0
- monocle_apptrace/metamodel/maps/attributes/retrieval/llamaindex_entities.json +31 -0
- monocle_apptrace/metamodel/maps/botocore_methods.json +13 -0
- monocle_apptrace/metamodel/maps/haystack_methods.json +26 -6
- monocle_apptrace/metamodel/maps/{lang_chain_methods.json → langchain_methods.json} +31 -8
- monocle_apptrace/metamodel/maps/{llama_index_methods.json → llamaindex_methods.json} +30 -8
- monocle_apptrace/metamodel/spans/span_example.json +1 -1
- monocle_apptrace/metamodel/spans/span_types.json +16 -0
- monocle_apptrace/utils.py +179 -20
- monocle_apptrace/wrap_common.py +350 -150
- monocle_apptrace/wrapper.py +5 -2
- {monocle_apptrace-0.1.1.dist-info → monocle_apptrace-0.3.0b1.dist-info}/METADATA +8 -3
- monocle_apptrace-0.3.0b1.dist-info/RECORD +48 -0
- {monocle_apptrace-0.1.1.dist-info → monocle_apptrace-0.3.0b1.dist-info}/WHEEL +1 -1
- monocle_apptrace/haystack/wrap_node.py +0 -27
- monocle_apptrace/haystack/wrap_openai.py +0 -44
- monocle_apptrace/metamodel/entities/entity_types.json +0 -157
- monocle_apptrace/metamodel/entities/entity_types.py +0 -51
- monocle_apptrace-0.1.1.dist-info/RECORD +0 -29
- {monocle_apptrace-0.1.1.dist-info → monocle_apptrace-0.3.0b1.dist-info}/licenses/LICENSE +0 -0
- {monocle_apptrace-0.1.1.dist-info → monocle_apptrace-0.3.0b1.dist-info}/licenses/NOTICE +0 -0
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: monocle_apptrace
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0b1
|
|
4
4
|
Summary: package with monocle genAI tracing
|
|
5
5
|
Project-URL: Homepage, https://github.com/monocle2ai/monocle
|
|
6
6
|
Project-URL: Issues, https://github.com/monocle2ai/monocle/issues
|
|
7
|
-
License-File: LICENSE
|
|
8
|
-
License-File: NOTICE
|
|
9
7
|
Classifier: License :: OSI Approved :: MIT License
|
|
10
8
|
Classifier: Operating System :: OS Independent
|
|
11
9
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -15,17 +13,24 @@ Requires-Dist: opentelemetry-instrumentation
|
|
|
15
13
|
Requires-Dist: opentelemetry-sdk>=1.21.0
|
|
16
14
|
Requires-Dist: requests
|
|
17
15
|
Requires-Dist: wrapt>=1.14.0
|
|
16
|
+
Provides-Extra: aws
|
|
17
|
+
Requires-Dist: boto3==1.35.19; extra == 'aws'
|
|
18
|
+
Provides-Extra: azure
|
|
19
|
+
Requires-Dist: azure-storage-blob==12.22.0; extra == 'azure'
|
|
18
20
|
Provides-Extra: dev
|
|
19
21
|
Requires-Dist: datasets==2.20.0; extra == 'dev'
|
|
20
22
|
Requires-Dist: faiss-cpu==1.8.0; extra == 'dev'
|
|
21
23
|
Requires-Dist: instructorembedding==1.0.1; extra == 'dev'
|
|
22
24
|
Requires-Dist: langchain-chroma==0.1.1; extra == 'dev'
|
|
23
25
|
Requires-Dist: langchain-community==0.2.5; extra == 'dev'
|
|
26
|
+
Requires-Dist: langchain-mistralai==0.1.13; extra == 'dev'
|
|
24
27
|
Requires-Dist: langchain-openai==0.1.8; extra == 'dev'
|
|
25
28
|
Requires-Dist: langchain==0.2.5; extra == 'dev'
|
|
26
29
|
Requires-Dist: llama-index-embeddings-huggingface==0.2.0; extra == 'dev'
|
|
30
|
+
Requires-Dist: llama-index-llms-mistralai==0.1.20; extra == 'dev'
|
|
27
31
|
Requires-Dist: llama-index-vector-stores-chroma==0.1.9; extra == 'dev'
|
|
28
32
|
Requires-Dist: llama-index==0.10.30; extra == 'dev'
|
|
33
|
+
Requires-Dist: mistral-haystack==0.0.2; extra == 'dev'
|
|
29
34
|
Requires-Dist: numpy==1.26.4; extra == 'dev'
|
|
30
35
|
Requires-Dist: parameterized==0.9.0; extra == 'dev'
|
|
31
36
|
Requires-Dist: pytest==8.0.0; extra == 'dev'
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
monocle_apptrace/README.md,sha256=T5NFC01bF8VR0oVnAX_n0bhsEtttwqfTxDNAe5Y_ivE,3765
|
|
2
|
+
monocle_apptrace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
monocle_apptrace/constants.py,sha256=Q1rREmswflNn_ZeNhDGCOCpHXY6msaOqesS_LoXXBdg,1633
|
|
4
|
+
monocle_apptrace/instrumentor.py,sha256=bTgN3pWz5cGyOBBEbiNt8O4W5QJAprUCk7JhvLdd_C8,5346
|
|
5
|
+
monocle_apptrace/message_processing.py,sha256=NEg_F1epAAGNtwN_ht6TCKPnTMgx1da95-bamm-dZeE,3025
|
|
6
|
+
monocle_apptrace/utils.py,sha256=Png2ucLNww_0_UFQxzdPs5xaEMqyezhIbjpbb5gy-GI,9764
|
|
7
|
+
monocle_apptrace/wrap_common.py,sha256=DTb1SsqKNYWDodsbISJOy6WagRJxcN4h1F5KS3rXnW8,22465
|
|
8
|
+
monocle_apptrace/wrapper.py,sha256=GVgImJasbHfrNxT8FLoMeZmGB_JRp09RjSs6Nn7OouE,904
|
|
9
|
+
monocle_apptrace/botocore/__init__.py,sha256=SkRoVm6zFUHFG8JVFKhBXWsMHk2yOLpAxgq3mD-euY4,398
|
|
10
|
+
monocle_apptrace/exporters/base_exporter.py,sha256=Gov_QKp5fonVZ-YdNM2ynoPot7GCaSNmKbCHIP3bDlE,1680
|
|
11
|
+
monocle_apptrace/exporters/exporter_processor.py,sha256=BTcBgMuFLHCdCgVvc9TKIo9y8g1BvShI0L4vX6Q-cmk,393
|
|
12
|
+
monocle_apptrace/exporters/file_exporter.py,sha256=gN9pJ_X5pcstVVsyivgHsjWhr443eRa6Y6Hx1rGLQAM,2280
|
|
13
|
+
monocle_apptrace/exporters/monocle_exporters.py,sha256=mvVoGr4itvUBuakH17zNEuXYpHtqRhq2CBH5JXhleoM,1418
|
|
14
|
+
monocle_apptrace/exporters/aws/s3_exporter.py,sha256=1WhZ_xCk1_c1vD8u2d_6z2QIedM89A-wsHGHLQsnGtY,6618
|
|
15
|
+
monocle_apptrace/exporters/azure/blob_exporter.py,sha256=m7Hsw3OXlP2GOCQcdxf8LM6Fe12fZmih45x82Z12dbI,5597
|
|
16
|
+
monocle_apptrace/exporters/okahu/okahu_exporter.py,sha256=p2rjStwo0OMEdHWQt_QvREpUWXbDm5jGx3qXeYai4_M,4407
|
|
17
|
+
monocle_apptrace/haystack/__init__.py,sha256=zMvF6Dh1-vVIAQD__HC1ubT5bs-EupUghg7HNhDv7_c,448
|
|
18
|
+
monocle_apptrace/haystack/wrap_pipeline.py,sha256=yZAw7Hdv7FXe6rrM7gA2y5SjaZYQZCAi0q-R-uqUEvk,2254
|
|
19
|
+
monocle_apptrace/langchain/__init__.py,sha256=3yhbdw1h9I1nVEfnOOPKz9yD5NqwdLSZsxtXbMplRkw,400
|
|
20
|
+
monocle_apptrace/llamaindex/__init__.py,sha256=TgV1ZM8Cz113pZ2aAgpYwsCJyHA2aHOvNoW1QMBp0mM,709
|
|
21
|
+
monocle_apptrace/metamodel/README.md,sha256=KYuuYqgA9PNbOjG0zYj2nAdvNEpyNN_Bk9M2tNdnZ_s,4598
|
|
22
|
+
monocle_apptrace/metamodel/entities/README.md,sha256=dY7Q8QT_Ju-2ul65J-k0x6beDLvRirlbGufZN1Q0tpk,2068
|
|
23
|
+
monocle_apptrace/metamodel/entities/app_hosting_types.json,sha256=MWeHUe77n4HvO1hm2PX8iWjbRONBuNy2I84vd-lymYk,568
|
|
24
|
+
monocle_apptrace/metamodel/entities/entities.json,sha256=6eDoDm_6aPUgH_ROjI2H9Tk3J5Lj55VkX3Li-TJmaxg,1285
|
|
25
|
+
monocle_apptrace/metamodel/entities/inference_types.json,sha256=Gkq7qNw5Qn91tuq-rBxHJ4BSzT-etCshNjT5_G4Bg8I,651
|
|
26
|
+
monocle_apptrace/metamodel/entities/model_types.json,sha256=Oz9DzuX_ptpLEVTc1Epv4_Y80TrYxR7cyc9kM0Zk780,785
|
|
27
|
+
monocle_apptrace/metamodel/entities/vector_store_types.json,sha256=EA0KayHMOG7wMIkec54en03_3yT1qpdGh5TiDrAoh4g,462
|
|
28
|
+
monocle_apptrace/metamodel/entities/workflow_types.json,sha256=eD0W3_FocKrzrrW0bks0hIJb9Kj7w8c1dpXzxmGLOwk,386
|
|
29
|
+
monocle_apptrace/metamodel/maps/botocore_methods.json,sha256=FvobptTS-whE5fI14-3QGqGErLijmUshIvzJWF1-6fE,338
|
|
30
|
+
monocle_apptrace/metamodel/maps/haystack_methods.json,sha256=yWOs2LHgrDpwhGC2aVJqNOLt0kPwlzZdzMb2yzHP1QI,1611
|
|
31
|
+
monocle_apptrace/metamodel/maps/langchain_methods.json,sha256=lfU8nd6td5qzTI01glM063Vg0UoZM9HGPirwN4OZcKc,4285
|
|
32
|
+
monocle_apptrace/metamodel/maps/llamaindex_methods.json,sha256=dqfDQ4H8qB-GvctBzrgH0ldjdarbTRV0ID5a4LerN5I,3328
|
|
33
|
+
monocle_apptrace/metamodel/maps/attributes/inference/botocore_entities.json,sha256=GCFQPlTTlE64dFc9DPM1sf3Uk1x6g0UdsrABlyFwl6k,936
|
|
34
|
+
monocle_apptrace/metamodel/maps/attributes/inference/haystack_entities.json,sha256=e-0SOcP6b4A1hRYtDBQT3Mx94J73xqQNqdvqWyJSFmo,1756
|
|
35
|
+
monocle_apptrace/metamodel/maps/attributes/inference/langchain_entities.json,sha256=QZJkP4JZ0VmWWtegCxFXASO8bJSYtJTz2ObpWzSyF7o,1826
|
|
36
|
+
monocle_apptrace/metamodel/maps/attributes/inference/llamaindex_entities.json,sha256=-0ARREkmWRQLbFAufiBIAbPhunuUYVBTUoP5lNJrk90,1755
|
|
37
|
+
monocle_apptrace/metamodel/maps/attributes/retrieval/haystack_entities.json,sha256=_SNwWIoO4anww-UDrTFIvDeFaHJKmg3R8IzZLbRGBD8,1035
|
|
38
|
+
monocle_apptrace/metamodel/maps/attributes/retrieval/langchain_entities.json,sha256=-Dj7U0of2TmPjhYZ2SAMztQBHeeN81H-_4rTCfoAzyQ,916
|
|
39
|
+
monocle_apptrace/metamodel/maps/attributes/retrieval/llamaindex_entities.json,sha256=opfmuUWizZvfTD7FVxG21OrpHXc8HcL32En9ftC3eRA,903
|
|
40
|
+
monocle_apptrace/metamodel/spans/README.md,sha256=_uMkLLaWitQ_rPh7oQbW5Oe7uGSv2h_QA6YwxHRJi74,5433
|
|
41
|
+
monocle_apptrace/metamodel/spans/span_example.json,sha256=7ZAUssL1UYXlbKHre8PfeNlIhHnM28e2CH9EyHDTOt8,4402
|
|
42
|
+
monocle_apptrace/metamodel/spans/span_format.json,sha256=GhfioGgMhG7St0DeYA1fgNtMkbr9wiQ1L2hovekRQ24,1512
|
|
43
|
+
monocle_apptrace/metamodel/spans/span_types.json,sha256=jwVyPbYMhEf2Ea6Egmb3m1Za28ap9dgZIpJDhdE1BlY,361
|
|
44
|
+
monocle_apptrace-0.3.0b1.dist-info/METADATA,sha256=PSSgPDB9-1HHTIw9WpIzuN3s2_B_a_fNgrD5EtH5UQs,5503
|
|
45
|
+
monocle_apptrace-0.3.0b1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
46
|
+
monocle_apptrace-0.3.0b1.dist-info/licenses/LICENSE,sha256=ay9trLiP5I7ZsFXo6AqtkLYdRqe5S9r-DrPOvsNlZrg,9136
|
|
47
|
+
monocle_apptrace-0.3.0b1.dist-info/licenses/NOTICE,sha256=9jn4xtwM_uUetJMx5WqGnhrR7MIhpoRlpokjSTlyt8c,112
|
|
48
|
+
monocle_apptrace-0.3.0b1.dist-info/RECORD,,
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import logging
|
|
4
|
-
from opentelemetry import context as context_api
|
|
5
|
-
from opentelemetry.context import attach, set_value
|
|
6
|
-
from opentelemetry.instrumentation.utils import (
|
|
7
|
-
_SUPPRESS_INSTRUMENTATION_KEY,
|
|
8
|
-
)
|
|
9
|
-
from monocle_apptrace.wrap_common import WORKFLOW_TYPE_MAP, with_tracer_wrapper
|
|
10
|
-
|
|
11
|
-
logger = logging.getLogger(__name__)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@with_tracer_wrapper
|
|
15
|
-
def wrap(tracer, to_wrap, wrapped, instance, args, kwargs):
|
|
16
|
-
if context_api.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
|
|
17
|
-
return wrapped(*args, **kwargs)
|
|
18
|
-
name = instance.name
|
|
19
|
-
attach(set_value("workflow_name", name))
|
|
20
|
-
with tracer.start_as_current_span(f"{name}.task") as span:
|
|
21
|
-
workflow_name = span.resource.attributes.get("service.name")
|
|
22
|
-
span.set_attribute("workflow_name",workflow_name)
|
|
23
|
-
span.set_attribute("workflow_type", WORKFLOW_TYPE_MAP["haystack"])
|
|
24
|
-
|
|
25
|
-
response = wrapped(*args, **kwargs)
|
|
26
|
-
|
|
27
|
-
return response
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import logging
|
|
2
|
-
from opentelemetry import context as context_api
|
|
3
|
-
from opentelemetry.instrumentation.utils import _SUPPRESS_INSTRUMENTATION_KEY
|
|
4
|
-
from monocle_apptrace.wrap_common import with_tracer_wrapper
|
|
5
|
-
from monocle_apptrace.utils import (
|
|
6
|
-
dont_throw,
|
|
7
|
-
set_span_attribute
|
|
8
|
-
)
|
|
9
|
-
|
|
10
|
-
logger = logging.getLogger(__name__)
|
|
11
|
-
|
|
12
|
-
@dont_throw
|
|
13
|
-
def _set_input_attributes(span, kwargs, instance, args):
|
|
14
|
-
set_span_attribute(span, "llm_input", kwargs.get("prompt"))
|
|
15
|
-
|
|
16
|
-
if 'model' in instance.__dict__:
|
|
17
|
-
model_name = instance.__dict__.get("model")
|
|
18
|
-
set_span_attribute(span, "model_name", model_name)
|
|
19
|
-
|
|
20
|
-
@dont_throw
|
|
21
|
-
def _set_response_attributes(span, response):
|
|
22
|
-
|
|
23
|
-
if "meta" in response:
|
|
24
|
-
token_usage = response["meta"][0]["usage"]
|
|
25
|
-
set_span_attribute(span, "completion_tokens", token_usage.get("completion_tokens"))
|
|
26
|
-
set_span_attribute(span, "prompt_tokens", token_usage.get("prompt_tokens"))
|
|
27
|
-
set_span_attribute(span, "total_tokens", token_usage.get("total_tokens"))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@with_tracer_wrapper
|
|
31
|
-
def wrap_openai(tracer, to_wrap, wrapped, instance, args, kwargs):
|
|
32
|
-
if context_api.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
|
|
33
|
-
return wrapped(*args, **kwargs)
|
|
34
|
-
|
|
35
|
-
with tracer.start_as_current_span("haystack.openai") as span:
|
|
36
|
-
if span.is_recording():
|
|
37
|
-
_set_input_attributes(span, kwargs, instance, args)
|
|
38
|
-
response = wrapped(*args, **kwargs)
|
|
39
|
-
|
|
40
|
-
if response:
|
|
41
|
-
if span.is_recording():
|
|
42
|
-
_set_response_attributes(span, response)
|
|
43
|
-
|
|
44
|
-
return response
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "Monocle entities represents kinds GenAI technology components and their implementations supported by Monocle",
|
|
3
|
-
"monocle_entities": [
|
|
4
|
-
{
|
|
5
|
-
"attributes" : [
|
|
6
|
-
{
|
|
7
|
-
"attribute_name": "name",
|
|
8
|
-
"attribute_description": "Monocle entity name",
|
|
9
|
-
"required": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"attribute_name": "type",
|
|
13
|
-
"attribute_description": "Monocle entity type",
|
|
14
|
-
"required": true
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
|
-
"entities": [
|
|
18
|
-
{
|
|
19
|
-
"name": "workflow",
|
|
20
|
-
"attributes" : [],
|
|
21
|
-
"types": [
|
|
22
|
-
{
|
|
23
|
-
"type": "llama_index",
|
|
24
|
-
"attributes" : []
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"type": "langchain",
|
|
28
|
-
"attributes" : []
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"type": "haystack",
|
|
32
|
-
"attributes" : []
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "generic",
|
|
36
|
-
"attributes" : []
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "model",
|
|
42
|
-
"attributes" : [
|
|
43
|
-
{
|
|
44
|
-
"attribute_name": "model_name",
|
|
45
|
-
"attribute_description": "Model name",
|
|
46
|
-
"required": true
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"types": [
|
|
50
|
-
{
|
|
51
|
-
"type": "llm",
|
|
52
|
-
"attributes" : []
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"type": "embedding",
|
|
56
|
-
"attributes" : []
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"type": "generic",
|
|
60
|
-
"attributes" : []
|
|
61
|
-
}
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"name": "vector_store",
|
|
66
|
-
"attributes" : [],
|
|
67
|
-
"types": [
|
|
68
|
-
{
|
|
69
|
-
"type": "chroma",
|
|
70
|
-
"attributes" : []
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"type": "aws_es",
|
|
74
|
-
"attributes" : []
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"type": "milvus",
|
|
78
|
-
"attributes" : []
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"type": "pinecone",
|
|
82
|
-
"attributes" : []
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"type": "generic",
|
|
86
|
-
"attributes" : []
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"name": "app_hosting",
|
|
92
|
-
"attributes" : [],
|
|
93
|
-
"types": [
|
|
94
|
-
{
|
|
95
|
-
"type": "aws_lambda",
|
|
96
|
-
"attributes" : []
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"type": "aws_sagemaker",
|
|
100
|
-
"attributes" : []
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"type": "azure_func",
|
|
104
|
-
"attributes" : []
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"type": "azure_mlw",
|
|
108
|
-
"attributes" : []
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"type": "github_codespace",
|
|
112
|
-
"attributes" : []
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"type": "generic",
|
|
116
|
-
"attributes" : []
|
|
117
|
-
}
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"name": "inference",
|
|
122
|
-
"attributes" : [],
|
|
123
|
-
"types": [
|
|
124
|
-
{
|
|
125
|
-
"type": "aws_sagemaker",
|
|
126
|
-
"attributes" : []
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"type": "aws_bedrock",
|
|
130
|
-
"attributes" : []
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"type": "azure_oai",
|
|
134
|
-
"attributes" : []
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"type": "openai",
|
|
138
|
-
"attributes" : []
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "nvidia_triton",
|
|
142
|
-
"attributes" : []
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"type": "hugging_face",
|
|
146
|
-
"attributes" : []
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"type": "generic",
|
|
150
|
-
"attributes" : []
|
|
151
|
-
}
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
]
|
|
157
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Monocle meta model:
|
|
2
|
-
# Monocle Entities --> Entity Type --> Entity
|
|
3
|
-
|
|
4
|
-
import enum
|
|
5
|
-
|
|
6
|
-
class MonocleEntity(enum):
|
|
7
|
-
# Supported Workflow/language frameworks
|
|
8
|
-
class Workflow(enum):
|
|
9
|
-
generic = 0
|
|
10
|
-
langchain = 1
|
|
11
|
-
llama_index = 2
|
|
12
|
-
haystack = 3
|
|
13
|
-
|
|
14
|
-
# Supported model types
|
|
15
|
-
class Model(enum):
|
|
16
|
-
generic = 0
|
|
17
|
-
llm = 1
|
|
18
|
-
embedding = 2
|
|
19
|
-
|
|
20
|
-
# Support Vector databases
|
|
21
|
-
class VectorStore(enum):
|
|
22
|
-
generic = 0
|
|
23
|
-
chroma = 1
|
|
24
|
-
aws_es = 2
|
|
25
|
-
Milvus = 3
|
|
26
|
-
Pinecone = 4
|
|
27
|
-
|
|
28
|
-
# Support application hosting frameworks
|
|
29
|
-
class AppHosting(enum):
|
|
30
|
-
generic = 0
|
|
31
|
-
aws_lambda = 1
|
|
32
|
-
aws_sagemaker = 2
|
|
33
|
-
azure_func = 3
|
|
34
|
-
github_codespace = 4
|
|
35
|
-
azure_mlw = 5
|
|
36
|
-
|
|
37
|
-
# Supported inference infra/services
|
|
38
|
-
class Inference(enum):
|
|
39
|
-
generic = 0
|
|
40
|
-
nvidia_triton = 1
|
|
41
|
-
openai = 2
|
|
42
|
-
azure_oai = 3
|
|
43
|
-
aws_sagemaker = 4
|
|
44
|
-
aws_bedrock = 5
|
|
45
|
-
hugging_face = 6
|
|
46
|
-
|
|
47
|
-
class SpanType(enum):
|
|
48
|
-
internal = 0
|
|
49
|
-
retrieval = 2
|
|
50
|
-
inference = 3
|
|
51
|
-
workflow = 4
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
monocle_apptrace/README.md,sha256=T5NFC01bF8VR0oVnAX_n0bhsEtttwqfTxDNAe5Y_ivE,3765
|
|
2
|
-
monocle_apptrace/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
monocle_apptrace/constants.py,sha256=wjObbmMTFL201x-bf3EOXevYygwkFH_1ng5dDrpE3z0,810
|
|
4
|
-
monocle_apptrace/instrumentor.py,sha256=txKj7tZaXY0gznc8QVOyMI-LA5r7tfSPJkleZPI1fWQ,5051
|
|
5
|
-
monocle_apptrace/utils.py,sha256=l3FAVF0rFbsph1LFdTMcs7K5ASiaovRQBmBeFYEHZmU,3174
|
|
6
|
-
monocle_apptrace/wrap_common.py,sha256=rhiY2PE2WoLYofbby3LioTSjFG8YrMlhUnc82yXRkFk,12612
|
|
7
|
-
monocle_apptrace/wrapper.py,sha256=cNUdfciAXNYAhvtOA2O4ONRvuT2bbHb4ax_7pALijEI,734
|
|
8
|
-
monocle_apptrace/exporters/file_exporter.py,sha256=gN9pJ_X5pcstVVsyivgHsjWhr443eRa6Y6Hx1rGLQAM,2280
|
|
9
|
-
monocle_apptrace/haystack/__init__.py,sha256=95LGUcUZbOcX5h-NwNrquKycp-qhuwCmcMfWAwxGylQ,321
|
|
10
|
-
monocle_apptrace/haystack/wrap_node.py,sha256=IK07Wn3Lk1Os9URsyrmB1HXOH2FNdzK9fNLlR8TZdYc,908
|
|
11
|
-
monocle_apptrace/haystack/wrap_openai.py,sha256=Yp916DhOl0WI6virRi3L43snfsQm7PhI28wlDsg19v8,1536
|
|
12
|
-
monocle_apptrace/haystack/wrap_pipeline.py,sha256=1bufscslUpjbSw_kVl24rngTMsiGV33oCKbTxwtWM6Q,2173
|
|
13
|
-
monocle_apptrace/langchain/__init__.py,sha256=3ABxFk92mmRj67Y3z70leZ4j1ig9Z6OU--rtxzfNIIM,271
|
|
14
|
-
monocle_apptrace/llamaindex/__init__.py,sha256=lr-rdprhXJdSt-Fp1LghW-hMxWgDN6lPFTQgyqnb7N0,573
|
|
15
|
-
monocle_apptrace/metamodel/README.md,sha256=KYuuYqgA9PNbOjG0zYj2nAdvNEpyNN_Bk9M2tNdnZ_s,4598
|
|
16
|
-
monocle_apptrace/metamodel/entities/README.md,sha256=ZE8PYne9F8xN4uu0CB1BOS8iM5QdKdpQjHuqCaw7Vkg,1553
|
|
17
|
-
monocle_apptrace/metamodel/entities/entity_types.json,sha256=-J1ZbzrZny1c9HSQKwRZu2Un3c0JjX9FvsfHwlZvaaw,5435
|
|
18
|
-
monocle_apptrace/metamodel/entities/entity_types.py,sha256=4CzobOm692tou1Tsv8YX_yrOhhnwMBF8hBAt1Czn_8Q,1076
|
|
19
|
-
monocle_apptrace/metamodel/maps/haystack_methods.json,sha256=JmngkaKICAzOyrWNTWEOLYFrp99l5wcERYKE_SQRNxE,698
|
|
20
|
-
monocle_apptrace/metamodel/maps/lang_chain_methods.json,sha256=HaOhhxb3PkI7tXPxXhWR4cnWrnEHU--k5pOY9RS0Uew,3119
|
|
21
|
-
monocle_apptrace/metamodel/maps/llama_index_methods.json,sha256=qpODnBHkaDjPBYZNd7clwmp_2subTu-fmI08Ky5OWdg,2192
|
|
22
|
-
monocle_apptrace/metamodel/spans/README.md,sha256=_uMkLLaWitQ_rPh7oQbW5Oe7uGSv2h_QA6YwxHRJi74,5433
|
|
23
|
-
monocle_apptrace/metamodel/spans/span_example.json,sha256=R4YVyz3rkhVc_FxpeBkY9JfO0GwluFa2A2wn4LkOPbo,4402
|
|
24
|
-
monocle_apptrace/metamodel/spans/span_format.json,sha256=GhfioGgMhG7St0DeYA1fgNtMkbr9wiQ1L2hovekRQ24,1512
|
|
25
|
-
monocle_apptrace-0.1.1.dist-info/METADATA,sha256=2Oz22Sjk1qarR4h_RctVoYnQWq0LSklrXu05_GFJjjE,5215
|
|
26
|
-
monocle_apptrace-0.1.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
27
|
-
monocle_apptrace-0.1.1.dist-info/licenses/LICENSE,sha256=ay9trLiP5I7ZsFXo6AqtkLYdRqe5S9r-DrPOvsNlZrg,9136
|
|
28
|
-
monocle_apptrace-0.1.1.dist-info/licenses/NOTICE,sha256=9jn4xtwM_uUetJMx5WqGnhrR7MIhpoRlpokjSTlyt8c,112
|
|
29
|
-
monocle_apptrace-0.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|