Skip to content

Add OTEL metric attributes to all links and add metric validation tests (CON-6)#154

Merged
pavanputhra merged 1 commit intomainfrom
pr-140-link-metrics
Apr 22, 2026
Merged

Add OTEL metric attributes to all links and add metric validation tests (CON-6)#154
pavanputhra merged 1 commit intomainfrom
pr-140-link-metrics

Conversation

@pavanputhra
Copy link
Copy Markdown
Contributor

Summary

  • Thread link.name and vcon.uuid attributes through all existing metric calls across 16 link modules (deepgram_link, groq_whisper, hugging_face_whisper, openai_transcribe, analyze, analyze_and_label, analyze_vcon, check_and_tag, detect_engagement, hugging_llm_link, sampler, post_analysis_to_slack, webhook, tag_router, scitt, datatrails)
  • Add chain.name attribute to conserver.main_loop.vcon_processing_time and conserver.main_loop.count_vcons_processed
  • Add conserver.link.execution_time histogram per link in VconChainRequest._process_link()
  • Add conserver.lib.vcon_redis.get_vcon_not_found counter in VconRedis.get_vcon()
  • Add failure counters to links that were previously missing them: diet, jq_link, post_analysis_to_slack, sampler, webhook, tag_router, datatrails
  • Add conserver/tests/ with InMemoryMetricReader pytest fixture and 25 OTEL metric validation tests

Test plan

  • docker compose run --rm conserver pytest conserver/tests/test_link_metrics.py -v
  • All 25 tests pass (covers: counter emitted, histogram emitted, failure counter on exception, no metric on skip)
  • Verify link.name / vcon.uuid attributes appear in your OTEL backend for any processed vCon

🤖 Generated with Claude Code

…sts (CON-6)

- Thread link.name and vcon.uuid attributes through all existing metric calls in 16 link modules
- Add chain.name attribute to main-loop processing-time histogram and vcon-processed counter
- Add conserver.link.execution_time histogram per-link in VconChainRequest._process_link()
- Add conserver.lib.vcon_redis.get_vcon_not_found counter in VconRedis.get_vcon()
- Add failure counters to datatrails, diet, jq_link, post_analysis_to_slack, sampler, webhook, tag_router
- Add conserver/tests/ with InMemoryMetricReader fixture and 25 OTEL metric validation tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pavanputhra pavanputhra merged commit 262d262 into main Apr 22, 2026
1 check failed
@pavanputhra pavanputhra deleted the pr-140-link-metrics branch April 22, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant