MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / merge_dicts_recursive

Function merge_dicts_recursive

app/api/agentops/exporter/processor.py:457–464  ·  view source on GitHub ↗
(old, new)

Source from the content-addressed store, hash-verified

455 # - latency for propagation of updates is apparently comparable to deletion
456
457 def merge_dicts_recursive(old, new):
458 result = old.copy()
459 for key, value in new.items():
460 if key in result and isinstance(result[key], dict) and isinstance(value, dict):
461 result[key] = merge_dicts_recursive(result[key], value)
462 else:
463 result[key] = value
464 return result
465
466 existing_span: dict = await clickhouse_get_span_raw(span_id)
467 if existing_span:

Callers 1

clickhouse_update_spanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…