monocle-apptrace 0.5.2__py3-none-any.whl → 0.6.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.

Potentially problematic release.


This version of monocle-apptrace might be problematic. Click here for more details.

Files changed (47) hide show
  1. monocle_apptrace/exporters/file_exporter.py +15 -2
  2. monocle_apptrace/instrumentation/common/instrumentor.py +1 -1
  3. monocle_apptrace/instrumentation/common/span_handler.py +8 -4
  4. monocle_apptrace/instrumentation/common/utils.py +10 -2
  5. monocle_apptrace/instrumentation/common/wrapper_method.py +5 -1
  6. monocle_apptrace/instrumentation/metamodel/adk/_helper.py +6 -4
  7. monocle_apptrace/instrumentation/metamodel/adk/entities/agent.py +12 -2
  8. monocle_apptrace/instrumentation/metamodel/adk/entities/tool.py +8 -3
  9. monocle_apptrace/instrumentation/metamodel/agents/_helper.py +5 -5
  10. monocle_apptrace/instrumentation/metamodel/agents/entities/inference.py +22 -5
  11. monocle_apptrace/instrumentation/metamodel/aiohttp/_helper.py +22 -7
  12. monocle_apptrace/instrumentation/metamodel/aiohttp/entities/http.py +14 -3
  13. monocle_apptrace/instrumentation/metamodel/azfunc/_helper.py +21 -11
  14. monocle_apptrace/instrumentation/metamodel/azfunc/entities/http.py +7 -2
  15. monocle_apptrace/instrumentation/metamodel/fastapi/_helper.py +19 -6
  16. monocle_apptrace/instrumentation/metamodel/fastapi/entities/http.py +6 -2
  17. monocle_apptrace/instrumentation/metamodel/fastapi/methods.py +19 -19
  18. monocle_apptrace/instrumentation/metamodel/finish_types.py +32 -1
  19. monocle_apptrace/instrumentation/metamodel/flask/_helper.py +20 -6
  20. monocle_apptrace/instrumentation/metamodel/flask/entities/http.py +7 -2
  21. monocle_apptrace/instrumentation/metamodel/hugging_face/__init__.py +0 -0
  22. monocle_apptrace/instrumentation/metamodel/hugging_face/_helper.py +138 -0
  23. monocle_apptrace/instrumentation/metamodel/hugging_face/entities/__init__.py +0 -0
  24. monocle_apptrace/instrumentation/metamodel/hugging_face/entities/inference.py +97 -0
  25. monocle_apptrace/instrumentation/metamodel/hugging_face/methods.py +23 -0
  26. monocle_apptrace/instrumentation/metamodel/lambdafunc/_helper.py +25 -14
  27. monocle_apptrace/instrumentation/metamodel/lambdafunc/entities/http.py +7 -2
  28. monocle_apptrace/instrumentation/metamodel/langgraph/_helper.py +4 -2
  29. monocle_apptrace/instrumentation/metamodel/langgraph/entities/inference.py +8 -3
  30. monocle_apptrace/instrumentation/metamodel/llamaindex/entities/agent.py +1 -1
  31. monocle_apptrace/instrumentation/metamodel/mcp/_helper.py +6 -5
  32. monocle_apptrace/instrumentation/metamodel/mcp/entities/inference.py +5 -0
  33. monocle_apptrace/instrumentation/metamodel/mistral/__init__.py +0 -0
  34. monocle_apptrace/instrumentation/metamodel/mistral/_helper.py +223 -0
  35. monocle_apptrace/instrumentation/metamodel/mistral/entities/__init__.py +0 -0
  36. monocle_apptrace/instrumentation/metamodel/mistral/entities/inference.py +94 -0
  37. monocle_apptrace/instrumentation/metamodel/mistral/entities/retrieval.py +41 -0
  38. monocle_apptrace/instrumentation/metamodel/mistral/methods.py +58 -0
  39. monocle_apptrace/instrumentation/metamodel/teamsai/_helper.py +2 -2
  40. {monocle_apptrace-0.5.2.dist-info → monocle_apptrace-0.6.0.dist-info}/METADATA +9 -76
  41. {monocle_apptrace-0.5.2.dist-info → monocle_apptrace-0.6.0.dist-info}/RECORD +44 -36
  42. monocle_apptrace/README.md +0 -101
  43. monocle_apptrace/mcp_server.py +0 -94
  44. monocle_apptrace-0.5.2.dist-info/licenses/NOTICE +0 -4
  45. {monocle_apptrace-0.5.2.dist-info → monocle_apptrace-0.6.0.dist-info}/WHEEL +0 -0
  46. {monocle_apptrace-0.5.2.dist-info → monocle_apptrace-0.6.0.dist-info}/entry_points.txt +0 -0
  47. {monocle_apptrace-0.5.2.dist-info → monocle_apptrace-0.6.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,10 +1,8 @@
1
- monocle_apptrace/README.md,sha256=T5NFC01bF8VR0oVnAX_n0bhsEtttwqfTxDNAe5Y_ivE,3765
2
1
  monocle_apptrace/__init__.py,sha256=XtoX7gHUSZgkY1nry8IFny8RslPhutZQUuEkqIrBzFQ,30
3
2
  monocle_apptrace/__main__.py,sha256=MLLPbC4YTp8O2wQrn8BROSZGvQpQd5brk_d1n_dWVWA,573
4
- monocle_apptrace/mcp_server.py,sha256=X5NFOE1QHkIktykGlRH-bzOnLsby5E9sTRAT-4BOQx0,5591
5
3
  monocle_apptrace/exporters/base_exporter.py,sha256=xm2MkDjuVZc-vmSXBMMsNMyIoy4z0O4g6wOAyuEnHwo,2062
6
4
  monocle_apptrace/exporters/exporter_processor.py,sha256=-spCIJ_UfJ0fax_jE-ii3ODQBwtnHZgYIGVNd91Q718,6298
7
- monocle_apptrace/exporters/file_exporter.py,sha256=bqRo1h9ubuUltYTj7-LxHWtPwlevBV6dvRbnJXQEwqs,7873
5
+ monocle_apptrace/exporters/file_exporter.py,sha256=wgYuCJRCC_H4S7hkPh6K5w8ps51sUXkeldNbU_uicmw,8426
8
6
  monocle_apptrace/exporters/monocle_exporters.py,sha256=qo6S53dp2ko6EzMP-ICL2buqgmw8HZboy19j7iHp1Qk,2882
9
7
  monocle_apptrace/exporters/aws/s3_exporter.py,sha256=9GA2tiWOUBLtDdGIdLLyYJEdQ1jRC5SdxxVH3qqR8Qk,8260
10
8
  monocle_apptrace/exporters/aws/s3_exporter_opendal.py,sha256=0aEUxdMgJaDUwqjw0DqlCMr8kjl01KgwUt3_RRCVFds,5917
@@ -14,45 +12,45 @@ monocle_apptrace/exporters/okahu/okahu_exporter.py,sha256=wFkHd87nOXzFMRejrUiO6N
14
12
  monocle_apptrace/instrumentation/__init__.py,sha256=wCzg-Ivla7p2F01pM1fEEQMztzcZZB4vD5cZ9CsTigw,94
15
13
  monocle_apptrace/instrumentation/common/__init__.py,sha256=iVcdQectswd-J_h5n0n-PqAXsrmCRxdK8YeyqYGArC8,432
16
14
  monocle_apptrace/instrumentation/common/constants.py,sha256=dAbIKrfI97oYMKNj5gdPWvP-YEvnLcRbd6Qec2k2MYk,6281
17
- monocle_apptrace/instrumentation/common/instrumentor.py,sha256=2mxnnxlnBpaJUpIhS2dihIfbmbUEbLN8H2hUtN34c9o,10849
15
+ monocle_apptrace/instrumentation/common/instrumentor.py,sha256=4n2USZsjfGSkK6FuNnx78PR3cMbxuSEI6UC86Asb92Q,10864
18
16
  monocle_apptrace/instrumentation/common/method_wrappers.py,sha256=jC3G_R2YVD0JWCzxx1zNzJbe_BsNhsveVMegJRXA3IQ,10152
19
17
  monocle_apptrace/instrumentation/common/scope_wrapper.py,sha256=Ysr4zmb71sZm3R-fNabctnNJHnmLVL9FE-4EmQo3HxA,3927
20
- monocle_apptrace/instrumentation/common/span_handler.py,sha256=ZpFyw1YY6JtNjLB5HRdgVkugqOTx27Pe4lezDbBULpo,15084
18
+ monocle_apptrace/instrumentation/common/span_handler.py,sha256=j8hOrdc-bLZYC0ST1kOqn9OvA1KiRl9HAR77m1p5JQs,15282
21
19
  monocle_apptrace/instrumentation/common/tracing.md,sha256=6Lr8QGxEFHKhj-mMvLV3xjFnplKSs6HEdwl0McPK47M,7577
22
- monocle_apptrace/instrumentation/common/utils.py,sha256=TZmKMYCfHAGycMLQyqnrnto5llgBlKp-yPN0QtNKRfE,15621
20
+ monocle_apptrace/instrumentation/common/utils.py,sha256=hsF1Opoa7kJA9eEWNzYAU88u3JFYMsNQlUilL8fcqiE,15761
23
21
  monocle_apptrace/instrumentation/common/wrapper.py,sha256=vbt2650Z3YNcxIvrT3odZ1RHIIeAHrrvYQOqFNUGXHQ,20285
24
- monocle_apptrace/instrumentation/common/wrapper_method.py,sha256=E_OWQ2I4AAthWAtSBWHrzicHs0ug7vMkZIWJlp6D-H8,6583
22
+ monocle_apptrace/instrumentation/common/wrapper_method.py,sha256=wwsClwlwyhPjfMiz1PY_VJLFzje8_j1R1Xa9HKMovRQ,6816
25
23
  monocle_apptrace/instrumentation/metamodel/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
- monocle_apptrace/instrumentation/metamodel/finish_types.py,sha256=ck-bWfMezrNIkUHy9QpW25cLCmNsjmceYzBzEydm92w,19267
24
+ monocle_apptrace/instrumentation/metamodel/finish_types.py,sha256=Bkto3dHkabTjSsPXLnzPiOW1_xal5CGNrIfIfqdHYSk,20748
27
25
  monocle_apptrace/instrumentation/metamodel/a2a/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
28
26
  monocle_apptrace/instrumentation/metamodel/a2a/_helper.py,sha256=BHuhF5OnEFEQR081lM4R538c83P--t1J5xHOREFDBpo,1281
29
27
  monocle_apptrace/instrumentation/metamodel/a2a/methods.py,sha256=_KiCczpRZWfTkzpwQ36kLp5t6Fw-8UEse2Yg4kaHwUk,675
30
28
  monocle_apptrace/instrumentation/metamodel/a2a/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
29
  monocle_apptrace/instrumentation/metamodel/a2a/entities/inference.py,sha256=5v37Q5mqE0JzWsmC6x1ZvJB3Zpkyce3hKyfCHF7iD9Q,3715
32
30
  monocle_apptrace/instrumentation/metamodel/adk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- monocle_apptrace/instrumentation/metamodel/adk/_helper.py,sha256=mEs8AU1ti9ClWDdKzNGDYdOw_gMqKdbHc39hN7WxFKU,6417
31
+ monocle_apptrace/instrumentation/metamodel/adk/_helper.py,sha256=ljQutMjk5j6dPEx8QCGcJSOgM2XN4_Wq1L6ri3NbLMA,6454
34
32
  monocle_apptrace/instrumentation/metamodel/adk/methods.py,sha256=Wp6MJArvLotY2CIAf1PlwJzdcH8qBk7II1KPBRET7c0,917
35
- monocle_apptrace/instrumentation/metamodel/adk/entities/agent.py,sha256=qIdDqnsu1yiJS2UERhi7gfjnqogquOdr6ZRR1PDqMEs,3450
36
- monocle_apptrace/instrumentation/metamodel/adk/entities/tool.py,sha256=uKTOBbyJtP1nn-gI-zsF__MkhRY_Y7xgcQr6keG4VtA,1933
33
+ monocle_apptrace/instrumentation/metamodel/adk/entities/agent.py,sha256=esRSIJRE91tzasEqMouXKsU8vj01Zf24a-7Uyxq0DKg,3905
34
+ monocle_apptrace/instrumentation/metamodel/adk/entities/tool.py,sha256=EEZxYM9bdH7KCmO-jnTywXAiN45hel5eAqLyHKZ1BbU,2157
37
35
  monocle_apptrace/instrumentation/metamodel/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- monocle_apptrace/instrumentation/metamodel/agents/_helper.py,sha256=bHF3BaJyCli8VFgd-eRxaditoYT5UXLF7a1-zzMafik,7625
36
+ monocle_apptrace/instrumentation/metamodel/agents/_helper.py,sha256=5j6ZkR9Dh1WMUrC-zSH3M2OJvKd4ZsZs3gIR87Ws0lI,7595
39
37
  monocle_apptrace/instrumentation/metamodel/agents/agents_processor.py,sha256=P95dNBh18M74Bw-BklwcN3wRfyi4vC3Q9EOcR8QBheg,6194
40
38
  monocle_apptrace/instrumentation/metamodel/agents/methods.py,sha256=l7KwBLm_olUfZsN9UxUVc_spvSGLNqBJzKh3cyX40-o,1758
41
39
  monocle_apptrace/instrumentation/metamodel/agents/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- monocle_apptrace/instrumentation/metamodel/agents/entities/inference.py,sha256=5drQmhd4fRVzKs7ossH3RmbdQRKXerEiqtq7xAKlpX8,6110
40
+ monocle_apptrace/instrumentation/metamodel/agents/entities/inference.py,sha256=UUbnGdCkF2CGRzDZdD3r3pv_-tXXb9W5shDEtcFq_3Q,6859
43
41
  monocle_apptrace/instrumentation/metamodel/aiohttp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
- monocle_apptrace/instrumentation/metamodel/aiohttp/_helper.py,sha256=LjAYaZUUXw59dzol-NDTiz9uZNTZ2Mwu6WXggGpefd8,2088
42
+ monocle_apptrace/instrumentation/metamodel/aiohttp/_helper.py,sha256=6wTmycVbETB0fOc99No2rePVgACKR3J6HCUkaedV0o8,2539
45
43
  monocle_apptrace/instrumentation/metamodel/aiohttp/methods.py,sha256=rcfGoRMLJeu-X2O9fGv6nhhjUrBJALKOJ-axiedavMI,435
46
- monocle_apptrace/instrumentation/metamodel/aiohttp/entities/http.py,sha256=8j5x6Mgkoq076_ZvOFP05zBpsGt5hmREk8IqVihwwYQ,1783
44
+ monocle_apptrace/instrumentation/metamodel/aiohttp/entities/http.py,sha256=OC7qgaKLUD_otmtP5jNyWcR_D0GGSbBZAxNa6RtQXwE,2201
47
45
  monocle_apptrace/instrumentation/metamodel/anthropic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
46
  monocle_apptrace/instrumentation/metamodel/anthropic/_helper.py,sha256=fuILJFil-Gr2hIDIK-2xlHyibCwVXLbakFgJ2P9AKNE,8615
49
47
  monocle_apptrace/instrumentation/metamodel/anthropic/methods.py,sha256=WVXoN_i5h9hXjrJV5xF9wIQIpmP_gCN3P8HEPfAsfik,703
50
48
  monocle_apptrace/instrumentation/metamodel/anthropic/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
49
  monocle_apptrace/instrumentation/metamodel/anthropic/entities/inference.py,sha256=6mwMs-ZYoS0B4mkUXwy1VFBzJQd8olEwhEqYgUSyVIc,3643
52
- monocle_apptrace/instrumentation/metamodel/azfunc/_helper.py,sha256=Syy5hvVBGdA_NUebidt_wzcCWDUx-eAaThclr-oHVsQ,2725
50
+ monocle_apptrace/instrumentation/metamodel/azfunc/_helper.py,sha256=7c1yKH9coWdGku8BOAp83H0GtSkfZF3sHFv7uRWL8Yg,3041
53
51
  monocle_apptrace/instrumentation/metamodel/azfunc/methods.py,sha256=dCcptd9nLsXkkWtSgXBh7zRia-1g-A3rgiC4cqt5Tzo,916
54
52
  monocle_apptrace/instrumentation/metamodel/azfunc/wrapper.py,sha256=zssmQNWG-kn9cSfE1JYwqHsl1hU4zrN2xUcFbyos8oM,712
55
- monocle_apptrace/instrumentation/metamodel/azfunc/entities/http.py,sha256=UyZ88dLw_PMHsC6k-VbT_eCKVWcx8a1bZNSMvpcbloc,2013
53
+ monocle_apptrace/instrumentation/metamodel/azfunc/entities/http.py,sha256=gWjUe5t4JWOGtzJDRFWbZqjPi8ER6hFa_2V43M8D2do,2208
56
54
  monocle_apptrace/instrumentation/metamodel/azureaiinference/__init__.py,sha256=zHdtJf4MZKSIi-4KPxdDR_dZdRAdZuy7Z8yDRa6cBps,44
57
55
  monocle_apptrace/instrumentation/metamodel/azureaiinference/_helper.py,sha256=j0f9ej0k0696kXrmOq_bmO4uQuxcgM5UsMCVDWXcbCI,11734
58
56
  monocle_apptrace/instrumentation/metamodel/azureaiinference/methods.py,sha256=PsxJPFSc9yp9uzdpwVUWUAd2PVwF7MYwf3I2_cqHSOk,810
@@ -64,14 +62,14 @@ monocle_apptrace/instrumentation/metamodel/botocore/entities/__init__.py,sha256=
64
62
  monocle_apptrace/instrumentation/metamodel/botocore/entities/inference.py,sha256=-YW5pBQ3fWy3TMbiRfBfJyDx_4bR4OgTjS2poG-hWoM,3073
65
63
  monocle_apptrace/instrumentation/metamodel/botocore/handlers/botocore_span_handler.py,sha256=aZ_jxngqjihxxTPFOqYH8rjoEdF_WVwE_3-TB57d_8I,1444
66
64
  monocle_apptrace/instrumentation/metamodel/fastapi/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
- monocle_apptrace/instrumentation/metamodel/fastapi/_helper.py,sha256=3hdf-3oag50k5cPfknWwMrYJTS6Oo93WJHE4l-oLWzg,3205
68
- monocle_apptrace/instrumentation/metamodel/fastapi/methods.py,sha256=iOtZc-D5jSQuH9mPzhymuxe2wsx2QbwT1yLwef2hJ1A,841
65
+ monocle_apptrace/instrumentation/metamodel/fastapi/_helper.py,sha256=6gObluSeIJgp4yoVF_tMoLe65DjtDiRQMpwI224k3WM,3643
66
+ monocle_apptrace/instrumentation/metamodel/fastapi/methods.py,sha256=n2nAGaxrjC-E5UGJwVlriNkFlFRAG80RrxGK5yHoobY,816
69
67
  monocle_apptrace/instrumentation/metamodel/fastapi/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
- monocle_apptrace/instrumentation/metamodel/fastapi/entities/http.py,sha256=Q2cyNNMenDU63tZBbL5dNKqEnu08NC8NmLp46SEusu8,1339
68
+ monocle_apptrace/instrumentation/metamodel/fastapi/entities/http.py,sha256=HUH_lrxezw96t-9hCle-yALEZaHfZpOTEVB0kNkacv4,1476
71
69
  monocle_apptrace/instrumentation/metamodel/flask/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
- monocle_apptrace/instrumentation/metamodel/flask/_helper.py,sha256=vvP1k3ArXfX7oMqnjaEE77rOYcl_ssAmjjknBRX8jlg,2821
70
+ monocle_apptrace/instrumentation/metamodel/flask/_helper.py,sha256=gPrzlz9W3NY6DYQz9grMBnuYqiKuNvNMIpQwQboQlYE,3268
73
71
  monocle_apptrace/instrumentation/metamodel/flask/methods.py,sha256=dWCMEDk-HWHiD0vlMoAVYbIFclstmVkUpRrCtqDWyFE,739
74
- monocle_apptrace/instrumentation/metamodel/flask/entities/http.py,sha256=-4VAWx2vHEONIyG-JCVBadJt0F8eI_WliDCi5BjpAmo,1607
72
+ monocle_apptrace/instrumentation/metamodel/flask/entities/http.py,sha256=bj_A7_tiz9oY-1nAXYL1V_Kj4g3Z6HLKqdCOdw4qgUc,1804
75
73
  monocle_apptrace/instrumentation/metamodel/gemini/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
74
  monocle_apptrace/instrumentation/metamodel/gemini/_helper.py,sha256=qCjZGPYP_aidE4Eue4GK0x8RbTkh74ayJfJkFRLdhpg,5103
77
75
  monocle_apptrace/instrumentation/metamodel/gemini/methods.py,sha256=prvi1oY4n1DAefP6IJ7McfrtprHRlwmtGBb-R1kxlPQ,881
@@ -84,10 +82,15 @@ monocle_apptrace/instrumentation/metamodel/haystack/methods.py,sha256=fuICw7KVTA
84
82
  monocle_apptrace/instrumentation/metamodel/haystack/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
85
83
  monocle_apptrace/instrumentation/metamodel/haystack/entities/inference.py,sha256=pykGCW_ucEdPkp_yshSyHeK7p2WxJpnzxHEPt7TONp0,3880
86
84
  monocle_apptrace/instrumentation/metamodel/haystack/entities/retrieval.py,sha256=bWagT0us1sGFlvHEToYlVk4PPDxFimQC0l_BJmrjnxc,2439
87
- monocle_apptrace/instrumentation/metamodel/lambdafunc/_helper.py,sha256=tA79BQtHoCmQrEhUdpwPvOXjM3IrCzR_9cLbds9xBgI,2496
85
+ monocle_apptrace/instrumentation/metamodel/hugging_face/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
+ monocle_apptrace/instrumentation/metamodel/hugging_face/_helper.py,sha256=f5-U7Uga7UIO0VKbsH0PzxEWKwDugbEEebFdFqX03Sc,4812
87
+ monocle_apptrace/instrumentation/metamodel/hugging_face/methods.py,sha256=U4kui4NiZ2drAvahira1__qVAUCT-OR0zZEn-rN_4nc,751
88
+ monocle_apptrace/instrumentation/metamodel/hugging_face/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
89
+ monocle_apptrace/instrumentation/metamodel/hugging_face/entities/inference.py,sha256=FO9cV4teok2WCV95FOUPy6XtGHtycuzJ-AN8TbbD028,3654
90
+ monocle_apptrace/instrumentation/metamodel/lambdafunc/_helper.py,sha256=mKD-IbylOUugK9GGuGv-S53AUei_8swQ4Ak8A5iwUxw,3043
88
91
  monocle_apptrace/instrumentation/metamodel/lambdafunc/methods.py,sha256=-b5dfI5oZVdRmBjfrVJgQuN910p7SUOu9Tc1AUhkz3A,934
89
92
  monocle_apptrace/instrumentation/metamodel/lambdafunc/wrapper.py,sha256=nxnfCwPftoRdHfjuRNrILEFOvB1e8oXqHRfPn-qxyZY,716
90
- monocle_apptrace/instrumentation/metamodel/lambdafunc/entities/http.py,sha256=QKROulDBLkzhWRdn0Aq-3JYhs9jwqegvTw0TU3fQc68,1789
93
+ monocle_apptrace/instrumentation/metamodel/lambdafunc/entities/http.py,sha256=ws2tSnf77rHdJ2E0ER2SOB9U7EDp33d9yNh2O29yDRA,1984
91
94
  monocle_apptrace/instrumentation/metamodel/langchain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
92
95
  monocle_apptrace/instrumentation/metamodel/langchain/_helper.py,sha256=Xt-PRVLDMU6buiKLcUhw-IwL5sj1FF-etkp403HGRs0,12339
93
96
  monocle_apptrace/instrumentation/metamodel/langchain/methods.py,sha256=sQLrji0NLuG8i8q5UdbgzPUjWh_WmromfvWL3pGZdCk,2941
@@ -95,11 +98,11 @@ monocle_apptrace/instrumentation/metamodel/langchain/entities/__init__.py,sha256
95
98
  monocle_apptrace/instrumentation/metamodel/langchain/entities/inference.py,sha256=Bqv7pDj-wQGtD5iJf4sG67aEHF4nJxHy7FfTEw4Ec5g,3646
96
99
  monocle_apptrace/instrumentation/metamodel/langchain/entities/retrieval.py,sha256=rRzp_oi_-yEKgCnQUxIS2ForJKtUQFGADYOou91sXU0,2121
97
100
  monocle_apptrace/instrumentation/metamodel/langgraph/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
98
- monocle_apptrace/instrumentation/metamodel/langgraph/_helper.py,sha256=O0x8fLwc5SqIZCQVovvbxAtR1ewZJobNLmOqM1DzQWA,4031
101
+ monocle_apptrace/instrumentation/metamodel/langgraph/_helper.py,sha256=HOciW1fomZrXg52K8wLbdiV6oUlvC1C1j8TTvDAx7RM,4085
99
102
  monocle_apptrace/instrumentation/metamodel/langgraph/langgraph_processor.py,sha256=0JZKLwWcdXTvp7QoBhCV6CoplohMoH3jdZ0EtfUNi2s,3156
100
103
  monocle_apptrace/instrumentation/metamodel/langgraph/methods.py,sha256=xu3BkxjupktwdAPAvavOd2_ZhjllqfYQQ3s1RWrhWlE,1295
101
104
  monocle_apptrace/instrumentation/metamodel/langgraph/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
- monocle_apptrace/instrumentation/metamodel/langgraph/entities/inference.py,sha256=Md5IMxvqPu1FRSwMkxLE-9uJi3UuVafBFp7DgHHJvdw,5134
105
+ monocle_apptrace/instrumentation/metamodel/langgraph/entities/inference.py,sha256=6_EEYgFfyOWbLP4PmdXx13SLVlnizBBhzYLtnBDo9t0,5367
103
106
  monocle_apptrace/instrumentation/metamodel/litellm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
104
107
  monocle_apptrace/instrumentation/metamodel/litellm/_helper.py,sha256=Yo0RtiJ4WKDRuC9VqUmXmdQmRLduOsVGHMNwswwdcLk,3433
105
108
  monocle_apptrace/instrumentation/metamodel/litellm/methods.py,sha256=D3rT7bQKzPRxGIs3GxwPmjmmti8ndF7_5Cmz8ojfSJQ,627
@@ -110,15 +113,21 @@ monocle_apptrace/instrumentation/metamodel/llamaindex/_helper.py,sha256=-Vw215wW
110
113
  monocle_apptrace/instrumentation/metamodel/llamaindex/llamaindex_processor.py,sha256=BRZWUSY5M6cpU1YpsBjL2jBtrWD2suWLN04eDcL1xsM,3903
111
114
  monocle_apptrace/instrumentation/metamodel/llamaindex/methods.py,sha256=OQjFgyBC6ykHOrsV3otw81gHPtPiAV20UUT_-c9L-Vs,5166
112
115
  monocle_apptrace/instrumentation/metamodel/llamaindex/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
113
- monocle_apptrace/instrumentation/metamodel/llamaindex/entities/agent.py,sha256=sSJBS6F7lmQGeRSSbud9UTQ0l0R7SkClnVrpSJWVV5k,5256
116
+ monocle_apptrace/instrumentation/metamodel/llamaindex/entities/agent.py,sha256=toYHGAoBFqyQU94oejX_xtCKp9djkXbWFluf-NJlkmc,5255
114
117
  monocle_apptrace/instrumentation/metamodel/llamaindex/entities/inference.py,sha256=sWXR1-Vp6QxQVm9yYrrb3N6i8vS4vuR7G1MkS-DFY9o,3401
115
118
  monocle_apptrace/instrumentation/metamodel/llamaindex/entities/retrieval.py,sha256=z9jWZW_UCYL0fKCUKXEiIzloZeYi14kGkOPqewO4If8,1952
116
119
  monocle_apptrace/instrumentation/metamodel/mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
117
- monocle_apptrace/instrumentation/metamodel/mcp/_helper.py,sha256=m67hrdAD_plMdMOvUzUU3AcC6zVRSQ3NwOfYDNl9PxM,3937
120
+ monocle_apptrace/instrumentation/metamodel/mcp/_helper.py,sha256=Pq_7Qv8aiaRcxskjiwFSMVHBPLcRNcIGRSwVLt7RDng,3977
118
121
  monocle_apptrace/instrumentation/metamodel/mcp/mcp_processor.py,sha256=bCAEUYNudGcXhpS-U7GP6Zt917AhvxJWJpoykfjE044,377
119
122
  monocle_apptrace/instrumentation/metamodel/mcp/methods.py,sha256=rgd5lZG8Z8x4vGZ5JxZiPeAwBoaZp6wOuwO8uYzHRCs,685
120
123
  monocle_apptrace/instrumentation/metamodel/mcp/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
121
- monocle_apptrace/instrumentation/metamodel/mcp/entities/inference.py,sha256=CcceJdDcBtAMu4Jlpchd6qQ37KXNLeVzvulkj3L77sQ,1545
124
+ monocle_apptrace/instrumentation/metamodel/mcp/entities/inference.py,sha256=hd1K63T3DHInaTvcCHm8VO7IZsT5cV3todvOucWPL34,1783
125
+ monocle_apptrace/instrumentation/metamodel/mistral/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
+ monocle_apptrace/instrumentation/metamodel/mistral/_helper.py,sha256=u9L6GEwwOrEj6U_-wB9wtX_LMURnkZ_hBlEEFBDaWak,8965
127
+ monocle_apptrace/instrumentation/metamodel/mistral/methods.py,sha256=FGaCINeeEi8fthnDzzf8sPHz1qUh83u67BlJWxul9Ik,2254
128
+ monocle_apptrace/instrumentation/metamodel/mistral/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
129
+ monocle_apptrace/instrumentation/metamodel/mistral/entities/inference.py,sha256=Pz6lI2yZEZFcb4CvC0TF8rzZCRk7HU5Nwh3aAVUHSiY,3849
130
+ monocle_apptrace/instrumentation/metamodel/mistral/entities/retrieval.py,sha256=M5nc4bPbln0wKxzdXwkZzNBQ2etieBSAoHtbECUbHhg,1327
122
131
  monocle_apptrace/instrumentation/metamodel/openai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
123
132
  monocle_apptrace/instrumentation/metamodel/openai/_helper.py,sha256=Iy8bsvpMTXEj0Ay60aBZKT1u2h2fxllBCnj0zb7FLHc,14985
124
133
  monocle_apptrace/instrumentation/metamodel/openai/methods.py,sha256=jpqZyfiJbzMz1r3W3fwMCGiQsbiDSkhqgADJextGxFQ,1796
@@ -130,16 +139,15 @@ monocle_apptrace/instrumentation/metamodel/requests/_helper.py,sha256=GS03VbT9Li
130
139
  monocle_apptrace/instrumentation/metamodel/requests/methods.py,sha256=O7lkglRvV97zqnCu6r2JwvW8WQqi4uvlpmNkAPpXigE,440
131
140
  monocle_apptrace/instrumentation/metamodel/requests/entities/http.py,sha256=wM7HVf6GMnnso7sAO-YfRkYLWW21M_kLPMM8Ak9czLk,1751
132
141
  monocle_apptrace/instrumentation/metamodel/teamsai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
133
- monocle_apptrace/instrumentation/metamodel/teamsai/_helper.py,sha256=9DJgmdHNEeTELnv4Qu0ZCbeknFFtTA8f0XsSOIsmETs,7195
142
+ monocle_apptrace/instrumentation/metamodel/teamsai/_helper.py,sha256=0wX6HOdzjQecYnrzWmR0RBX3Bm_WWbq1bKJO8DUhfM4,7212
134
143
  monocle_apptrace/instrumentation/metamodel/teamsai/methods.py,sha256=5fPh2l8nSi524KwHGp-m6GVEy3lXmBG-97i7r0CpE2g,3453
135
144
  monocle_apptrace/instrumentation/metamodel/teamsai/sample.json,sha256=GnlzIad8rjugqkOh18bhKdxNlrJW77zSjwT6JEqDwyU,26003
136
145
  monocle_apptrace/instrumentation/metamodel/teamsai/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
137
146
  monocle_apptrace/instrumentation/metamodel/teamsai/entities/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
138
147
  monocle_apptrace/instrumentation/metamodel/teamsai/entities/inference/actionplanner_output_processor.py,sha256=FRR9iBdDBXfYscP-lkORMNKl_lllflZN6gMlC7m_94w,3206
139
148
  monocle_apptrace/instrumentation/metamodel/teamsai/entities/inference/teamsai_output_processor.py,sha256=o9jrBIEqPDg3VfR6zexUCpkq3jlX0lQji8CKLUUK4Wk,3022
140
- monocle_apptrace-0.5.2.dist-info/METADATA,sha256=pufVYfeOIobN_TS0FTijcy6thhkuLNW2U_aj1CUdsso,8011
141
- monocle_apptrace-0.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
142
- monocle_apptrace-0.5.2.dist-info/entry_points.txt,sha256=rxpPKb3klrgZEbSyOFQ2J6KRPO7ri9ES-zmC8Jtikx8,70
143
- monocle_apptrace-0.5.2.dist-info/licenses/LICENSE,sha256=ay9trLiP5I7ZsFXo6AqtkLYdRqe5S9r-DrPOvsNlZrg,9136
144
- monocle_apptrace-0.5.2.dist-info/licenses/NOTICE,sha256=9jn4xtwM_uUetJMx5WqGnhrR7MIhpoRlpokjSTlyt8c,112
145
- monocle_apptrace-0.5.2.dist-info/RECORD,,
149
+ monocle_apptrace-0.6.0.dist-info/METADATA,sha256=MuWDvk_AW8zeODDSnclP5a5iN3qBn_IcJXaGL4wXvp8,4981
150
+ monocle_apptrace-0.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
151
+ monocle_apptrace-0.6.0.dist-info/entry_points.txt,sha256=rxpPKb3klrgZEbSyOFQ2J6KRPO7ri9ES-zmC8Jtikx8,70
152
+ monocle_apptrace-0.6.0.dist-info/licenses/LICENSE,sha256=ay9trLiP5I7ZsFXo6AqtkLYdRqe5S9r-DrPOvsNlZrg,9136
153
+ monocle_apptrace-0.6.0.dist-info/RECORD,,
@@ -1,101 +0,0 @@
1
- ## Monocle Concepts
2
-
3
- ### Traces
4
- Traces are the full view of a single end-to-end application execution.
5
-
6
- Examples of traces include one response to end user’s question by a chatbot app. Traces consists of various metadata about the application run including status, start time, duration, input/outputs etc. It also includes a list of individual steps aka “spans with details about that step.It’s typically the workflow code components of an application that generate the traces for application runs.
7
-
8
- Traces are collections of spans.
9
-
10
- ### Spans
11
- Spans are the individual steps executed by the application to perform a GenAI related task.
12
-
13
- Examples of spans include app retrieving vectors from DB, app querying LLM for inference etc. The span includes the type of operation, start time, duration and metadata relevant to that step eg Model name, parameters and model endpoint/server for an inference request.
14
-
15
- ## Contribute to Monocle
16
-
17
- Monocle includes:
18
- - Methods for instrumentation of app code
19
- - Base code for wrapping methods of interest in included in current folder
20
- - Framework specific code is organized in a folder with the framework name
21
- - Metamodel for how attributes and events for GenAI components are represented in OpenTelemety format
22
- - See [metamodel](./metamodel/README.md) for supported GenAI entities, how functions operating on those entities map to spans and format of spans
23
- - Exporters to send trace data to various locations. See [exporters](./exporters)
24
-
25
- See [Monocle committer guide](/Monocle_committer_guide.md).
26
-
27
- ## Get Monocle
28
-
29
- Option 1 - Download released packages from Pypi
30
- ```
31
- python3 -m pip install pipenv
32
- pip install monocle-apptrace
33
- ```
34
-
35
- Option 2 - Build and install locally from source
36
- ```
37
- pip install .
38
- pip install -e ".[dev]"
39
-
40
- python3 -m pip install pipenv
41
- pipenv install build
42
- ```
43
-
44
- ## Examples of app instrumentation with Monocle
45
-
46
- ### apps written using LLM orchestration frameworks
47
-
48
- ```python
49
- from langchain.chains import LLMChain
50
- from langchain_openai import OpenAI
51
- from langchain.prompts import PromptTemplate
52
-
53
- # Import the monocle_apptrace instrumentation method
54
- from monocle_apptrace.instrumentor import setup_monocle_telemetry
55
- from opentelemetry.sdk.trace.export import BatchSpanProcessor, ConsoleSpanExporter
56
-
57
- # Call the setup Monocle telemetry method
58
- setup_monocle_telemetry(workflow_name = "simple_math_app",
59
- span_processors=[BatchSpanProcessor(ConsoleSpanExporter())])
60
-
61
- llm = OpenAI()
62
- prompt = PromptTemplate.from_template("1 + {number} = ")
63
-
64
- chain = LLMChain(llm=llm, prompt=prompt)
65
- chain.invoke({"number":2})
66
-
67
- # Trace is generated when invoke() method is called
68
-
69
- ```
70
-
71
- ### apps with custom methods
72
-
73
- ```python
74
-
75
- # Import the monocle_apptrace instrumentation method
76
- from monocle_apptrace.wrapper import WrapperMethod,task_wrapper,atask_wrapper
77
- from opentelemetry.sdk.trace.export import BatchSpanProcessor, ConsoleSpanExporter
78
-
79
- # Extend the default wrapped methods list as follows
80
- app_name = "simple_math_app"
81
- setup_monocle_telemetry(
82
- workflow_name=app_name,
83
- span_processors=[BatchSpanProcessor(ConsoleSpanExporter())],
84
- wrapper_methods=[
85
- WrapperMethod(
86
- package="langchain.schema.runnable",
87
- object_name="RunnableParallel",
88
- method="invoke",
89
- span_name="langchain.workflow",
90
- wrapper=task_wrapper),
91
- WrapperMethod(
92
- package="langchain.schema.runnable",
93
- object_name="RunnableParallel",
94
- method="ainvoke",
95
- span_name="langchain.workflow",
96
- wrapper=atask_wrapper)
97
- ])
98
-
99
- # Trace is generated when the invoke() method is called in langchain.schema.runnable package
100
-
101
- ```
@@ -1,94 +0,0 @@
1
- import logging
2
- import click
3
- from mcp.server.fastmcp import FastMCP
4
-
5
- logger = logging.getLogger(__name__)
6
-
7
- app = FastMCP(
8
- "monocle-mcp",
9
- )
10
- code_snippets = {
11
- "python": "from monocle_apptrace import setup_monocle_telemetry"
12
- "setup_monocle_telemetry(workflow_name='my_workflow')\n",
13
- "typescript": "import { trace } from 'monocle';\n\ntrace();\n",
14
- }
15
- setup_instructions = {
16
- "python": "pip install monocle_apptrace package and add monocle_apptrace at the end of the requirement.txt for future. This code snippet provided below should be just below other imports in your application code.",
17
- "typescript": "Install monocle package and add the trace function call at the top of your application. This code snippet provided below should be just below other imports in your application code.",
18
- }
19
-
20
- description = {
21
- "python": "This will automatically trace your Python application, capturing telemetry data for your genAI operations.",
22
- "typescript": "This will automatically trace your TypeScript application, capturing telemetry data for your genAI operations.",
23
- }
24
-
25
-
26
- # Use the existing dictionaries to get language-specific information
27
- # code_snippet = code_snippets.get(app_language, code_snippets['python'])
28
- # instructions = setup_instructions.get(app_language, setup_instructions['python'])
29
- # desc = description.get(app_language, description['python'])
30
- enable_monocle_prompt = """Do following changes to the project:
31
- 1. run command 'pip install monocle_apptrace'
32
- 2. Add following line to requirements.txt in current directory 'monocle_apptrace' if it's not there already
33
- 3. Add following lines just below other imports in the file if it's not there already:
34
- from monocle_apptrace import setup_monocle_telemetry
35
- setup_monocle_telemetry(workflow_name=<module-name>, monocle_exporters_list='file'))
36
- """
37
-
38
- monocle_trace_prompt: str = """
39
- You are a helpful assistant to analyze given Monocle trace data. Review the trace data and provide a summary of whether the execution was successful or if there were any errors. Your job is to analyze the trace data and provide a summary. Be very concise in reporting. Check for errors or problem situations. First provide a headline that indicates status of the trace and if there are problems. If there are problems, then provide a brief summary of the problems. If there are problems, then provide a brief summary of the root causes.
40
- Use the trace details provided below to understand the data.
41
-
42
- Monocle trace has recorded the traced the execution of a genAI application. Each step of the genAI operation is captured as span. The trace file is a JSON structure that is an array of span JSON elements. There's a root span that represents the overall execution context.
43
- The important span JSON elements are as follows:
44
- - context.trace_id is the unique id common for alls spans.
45
- - context.span_id is the unique id for each span.
46
- - parent_id indicates the parent span of that span. The span that has no parent is the root span.
47
- - status.status_code indicate the status of span. It can be OK or ERROR or UNSET. If the span status is ERROR, then it generally propogated to it's parent and all the way to the root span. This means the entire trace is in error. However, sometimes the parent span will handle the error (eg. if parent name indicagtes 'retry') and the trace will be successful, even though an individual span has error.
48
- - attributes captures various attributes involved in that span's operation
49
- - attribute."span.type" indicates the type of operation
50
- - When the span.type is "workflow", that span captures the summary of the entire application
51
- - entity.[NUMBER] are the different entties involved in the operation, for example large language model, agent, tool etc
52
- - entity.type indicates the type of that entity
53
- - events is an array that captures the details of the operation such as input, output and metadata
54
- - events array element with name=data.input captures the input provided to the operation
55
- - events array element with name=data.output captures the output generated by the operation
56
- - events array element with name=metaata captures the metadata of the operation
57
- - total_tokens is the count of tokens
58
- - completion_tokens is the count of ouput tokens
59
- - prompt_tokens is the count of input tokens
60
- - finish_type indicates how the operation finished, for example stop sequence or max tokens etc. If the finish_type is not success and indicates problems such as max tokens, then the operation is not successful. Check the status of it's parent span and check if it's due to the finish type of this child span. In that case callout the root cause as the child span error for the parent span error.
61
- """
62
-
63
- @app.prompt(name="enable_tracing")
64
- def enable_monocle_tracing_prompt(app_language: str = "python") -> str:
65
- """Trace agentic code"""
66
- return enable_monocle_prompt.format(app_language=app_language)
67
-
68
-
69
- @app.prompt(name="analyze")
70
- def analyze_monocle_tracing_prompt() -> str:
71
- """Identify root cause from trace"""
72
- return monocle_trace_prompt
73
-
74
-
75
- @click.command()
76
- @click.option(
77
- "--log-level",
78
- default="info",
79
- help="Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)",
80
- )
81
- def main(log_level: str) -> int:
82
- # Configure logging
83
- logging.basicConfig(
84
- level=getattr(logging, log_level.upper()),
85
- format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
86
- )
87
-
88
- # Run the FastMCP server using stdio transport
89
- app.run(transport="stdio")
90
- return 0
91
-
92
-
93
- if __name__ == "__main__":
94
- main() # type: ignore
@@ -1,4 +0,0 @@
1
- Monocle
2
- Copyright 2018-2021 Monocle Project Authors
3
-
4
- Licensed under Apache License 2.0. See LICENSE for terms.