Skip to content

Commit 01daa83

Browse files
committed
feat:update readme
Change-Id: I75fc347cad09e33dc54c89ff480ad081884d3652 Co-developed-by: Cursor <noreply@cursor.com>
1 parent fd96146 commit 01daa83

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

instrumentation-loongsuite/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
| [loongsuite-instrumentation-dify](./loongsuite-instrumentation-dify) | dify | No | development
77
| [loongsuite-instrumentation-langchain](./loongsuite-instrumentation-langchain) | langchain_core >= 0.1.0 | Yes | development
88
| [loongsuite-instrumentation-mcp](./loongsuite-instrumentation-mcp) | mcp>=1.3.0 | Yes | development
9-
| [loongsuite-instrumentation-mem0](./loongsuite-instrumentation-mem0) | mem0ai >= 1.0.0 | Yes | development
9+
| [loongsuite-instrumentation-mem0](./loongsuite-instrumentation-mem0) | mem0ai >= 1.0.0 | No | development

instrumentation-loongsuite/loongsuite-instrumentation-mem0/README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Mem0 instrumentation is automatically enabled via the standard OpenTelemetry aut
5555
```bash
5656
opentelemetry-instrument \
5757
--traces_exporter console \
58-
--metrics_exporter console \
5958
python demo.py
6059
```
6160

@@ -93,16 +92,26 @@ You can control the Mem0 instrumentation using environment variables.
9392
| Environment Variable | Default | Description |
9493
|-----------------------------------------------------------|---------|-----------------------------------------------------------------------------|
9594
| `OTEL_INSTRUMENTATION_MEM0_ENABLED` | `true` | Enable or disable the Mem0 instrumentation entirely. |
96-
| `OTEL_INSTRUMENTATION_MEM0_INNER_ENABLED` | `true` | Enable internal phases (Vector Store, Graph Store, Reranker). |
95+
| `OTEL_INSTRUMENTATION_MEM0_INNER_ENABLED` | `false` | Enable internal phases (Vector Store, Graph Store, Rerank). |
9796
| `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` | `false` | Capture input/output message content (may contain PII or sensitive data). |
9897

9998
### Configuration Examples
10099

101100
```bash
101+
# Enable internal phases (Vector/Graph/Reranker)
102+
export OTEL_INSTRUMENTATION_MEM0_INNER_ENABLED=true
103+
102104
# Enable content capture (be careful with sensitive data)
103105
export OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true
104106
```
105107

108+
## Semantic Conventions Status
109+
110+
Mem0 instrumentation ships a set of semantic attributes and span names in
111+
`semconv.py` that are tailored for Memory / Vector / Graph / Rerank operations.
112+
These conventions are **not yet part of the upstream OpenTelemetry semantic
113+
conventions** and should be treated as experimental.
114+
106115
## Compatibility
107116

108117
- Python: `>= 3.8, < 3.13`

instrumentation-loongsuite/loongsuite-instrumentation-mem0/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
license = "Apache-2.0"
1111
requires-python = ">=3.9"
1212
authors = [
13-
{ name = "LoongSuite Python Agent Authors", email = "loongsuite-dev@example.com" },
13+
{ name = "LoongSuite Python Agent Authors", email = "sunyumei1991@gmail.com" },
1414
]
1515
classifiers = [
1616
"Development Status :: 4 - Beta",

instrumentation-loongsuite/loongsuite-instrumentation-mem0/src/opentelemetry/instrumentation/mem0/internal/_wrapper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"""
22
Core wrappers for Mem0 instrumentation.
33
Implements wrapping logic for top-level Memory operations and sub-phase operations.
4-
5-
Note: Metrics recording has been removed; this module only records traces.
64
"""
75

86
import inspect
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
_instruments = ("mem0ai >= 1.0.0",)
2-
_supports_metrics = True
2+
_supports_metrics = False

instrumentation-loongsuite/loongsuite-instrumentation-mem0/src/opentelemetry/instrumentation/mem0/semconv.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"""
22
Semantic Conventions for Mem0 instrumentation.
3-
Based on Gen-AI semantic conventions for memory operations.
3+
4+
These attribute names and span naming helpers are **experimental** and are
5+
currently **not** part of the official OpenTelemetry semantic‑conventions
6+
package.
47
"""
58

69

0 commit comments

Comments
 (0)