Skip to content

Commit b41040f

Browse files
committed
remove tests && change params extract
Change-Id: If91c5eb2e6dddc50bac460dee0338d648577fcf4 Co-developed-by: Cursor <[email protected]>
1 parent 3df72ec commit b41040f

File tree

1 file changed

+1
-5
lines changed
  • instrumentation-loongsuite/loongsuite-instrumentation-mem0/src/opentelemetry/instrumentation/mem0/internal

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
def _get_field(payload: dict, field_name: str) -> Any:
3838
"""
39-
DashScope-style helper: fetch a field if present (distinguish between missing vs present None).
39+
fetch a field if present (distinguish between missing vs present None).
4040
"""
4141
if field_name in payload:
4242
return payload.get(field_name)
@@ -269,8 +269,6 @@ def _apply_custom_extractor_output_to_invocation(
269269
- key "attributes": dict[str, Any]
270270
- or any other leftover keys will be treated as custom attributes
271271
"""
272-
273-
# Core invocation fields (DashScope-style "get parameter then set")
274272
if "user_id" in extracted:
275273
raw = _get_field(extracted, "user_id")
276274
invocation.user_id = safe_str(raw) if raw is not None else None
@@ -445,7 +443,6 @@ def _execute_with_handler(
445443
is_memory_client=is_memory_client,
446444
)
447445

448-
# Follow the same explicit start/stop/fail style as other LoongSuite instrumentations (e.g. dashscope)
449446
self.telemetry_handler.start_memory(invocation)
450447
try:
451448
result = func(*args, **kwargs)
@@ -504,7 +501,6 @@ async def _execute_with_handler_async(
504501
is_memory_client=is_memory_client,
505502
)
506503

507-
# Follow the same explicit start/stop/fail style as other LoongSuite instrumentations (e.g. dashscope)
508504
self.telemetry_handler.start_memory(invocation)
509505
try:
510506
result = await func(*args, **kwargs)

0 commit comments

Comments
 (0)