Add OTEL metric attributes to all links and add metric validation tests (CON-6)#154
Merged
pavanputhra merged 1 commit intomainfrom Apr 22, 2026
Merged
Add OTEL metric attributes to all links and add metric validation tests (CON-6)#154pavanputhra merged 1 commit intomainfrom
pavanputhra merged 1 commit intomainfrom
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
link.nameandvcon.uuidattributes 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)chain.nameattribute toconserver.main_loop.vcon_processing_timeandconserver.main_loop.count_vcons_processedconserver.link.execution_timehistogram per link inVconChainRequest._process_link()conserver.lib.vcon_redis.get_vcon_not_foundcounter inVconRedis.get_vcon()diet,jq_link,post_analysis_to_slack,sampler,webhook,tag_router,datatrailsconserver/tests/withInMemoryMetricReaderpytest fixture and 25 OTEL metric validation testsTest plan
docker compose run --rm conserver pytest conserver/tests/test_link_metrics.py -vlink.name/vcon.uuidattributes appear in your OTEL backend for any processed vCon🤖 Generated with Claude Code