Skip to content

docs(jaegermcp): Fix documentation inconsistencies in ADR-002 and README#8509

Merged
yurishkuro merged 1 commit into
jaegertracing:mainfrom
Vi-shub:docs/fix-jaegermcp-documentation
May 10, 2026
Merged

docs(jaegermcp): Fix documentation inconsistencies in ADR-002 and README#8509
yurishkuro merged 1 commit into
jaegertracing:mainfrom
Vi-shub:docs/fix-jaegermcp-documentation

Conversation

@Vi-shub
Copy link
Copy Markdown
Contributor

@Vi-shub Vi-shub commented May 8, 2026

Which problem is this PR solving?

#8508

Description of the changes

  • Update ADR-002 sample outputs: change _ms to _us, 'path' to 'segments', 'section_start/end_ms' to 'start/end_offset_us'
  • Add missing get_service_dependencies to README Available Tools list

How was this change tested?

Checklist

AI Usage in this PR (choose one)

See AI Usage Policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

Copilot AI review requested due to automatic review settings May 8, 2026 19:47
@Vi-shub Vi-shub requested a review from a team as a code owner May 8, 2026 19:47
@dosubot dosubot Bot added the documentation label May 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Jaeger MCP documentation to better match the current jaegermcp tool contracts and server registration.

Changes:

  • Update ADR-002 example JSON outputs to use microsecond (*_us) fields and current critical-path field names (segments, start_offset_us, end_offset_us).
  • Add the missing get_service_dependencies tool to the jaegermcp README’s “Available Tools” list.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/adr/002-mcp-server.md Align sample outputs with current jaegermcp JSON field names/units (noting remaining inconsistencies called out in comments).
cmd/jaeger/internal/extension/jaegermcp/README.md Add get_service_dependencies to match the tools registered by the MCP server.
Comments suppressed due to low confidence (1)

docs/adr/002-mcp-server.md:190

  • The search_traces sample output omits the services field, but the actual tool output includes services (sorted list of unique service names) in each trace summary. This sample should either include services or explicitly note that fields may be omitted for brevity to avoid implying the API doesn’t return it.
  "traces": [
    {
      "trace_id": "1a2b3c4d5e6f7890",
      "root_service": "frontend",
      "root_span_name": "/api/checkout",
      "start_time": "2024-01-15T10:30:00Z",
      "duration_us": 2450000,
      "span_count": 47,
      "service_count": 8,
      "has_errors": true
    }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/adr/002-mcp-server.md Outdated
Comment thread docs/adr/002-mcp-server.md Outdated
- Update ADR-002 sample outputs: change _ms to _us, 'path' to 'segments',
  'section_start/end_ms' to 'start/end_offset_us'
- Add missing get_service_dependencies to README Available Tools list

Signed-off-by: Vi-shub <[email protected]>
@Vi-shub Vi-shub force-pushed the docs/fix-jaegermcp-documentation branch from 90b35a6 to 4ab1dd8 Compare May 8, 2026 19:56
@yurishkuro yurishkuro merged commit ad4af35 into jaegertracing:main May 10, 2026
17 of 18 checks passed
@codecov
Copy link
Copy Markdown

codecov Bot commented May 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.49%. Comparing base (2bc46e4) to head (4ab1dd8).
⚠️ Report is 26 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8509      +/-   ##
==========================================
- Coverage   96.50%   96.49%   -0.02%     
==========================================
  Files         325      325              
  Lines       17191    17191              
==========================================
- Hits        16591    16589       -2     
- Misses        451      452       +1     
- Partials      149      150       +1     
Flag Coverage Δ
badger_direct 9.04% <ø> (ø)
badger_e2e 1.04% <ø> (ø)
cassandra-4.x-direct-manual 14.69% <ø> (ø)
cassandra-4.x-e2e-auto 1.03% <ø> (ø)
cassandra-4.x-e2e-manual 1.03% <ø> (ø)
cassandra-5.x-direct-manual 14.69% <ø> (ø)
cassandra-5.x-e2e-auto 1.03% <ø> (ø)
cassandra-5.x-e2e-manual 1.03% <ø> (ø)
clickhouse-direct 9.09% <ø> (ø)
clickhouse-e2e 1.16% <ø> (ø)
elasticsearch-6.x-direct 17.00% <ø> (ø)
elasticsearch-7.x-direct 17.03% <ø> (ø)
elasticsearch-8.x-direct 17.18% <ø> (ø)
elasticsearch-8.x-e2e 1.04% <ø> (ø)
elasticsearch-9.x-e2e 1.04% <ø> (ø)
grpc_direct 7.97% <ø> (ø)
grpc_e2e 1.04% <ø> (ø)
kafka-3.x-v2 1.04% <ø> (ø)
memory_v2 1.04% <ø> (ø)
opensearch-1.x-direct 17.08% <ø> (ø)
opensearch-2.x-direct 17.08% <ø> (ø)
opensearch-2.x-e2e 1.04% <ø> (ø)
opensearch-3.x-e2e 1.04% <ø> (ø)
query 1.04% <ø> (ø)
tailsampling-processor 0.52% <ø> (ø)
unittests 94.76% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown

CI Summary Report

Metrics Comparison

✅ No significant metric changes

Code Coverage

❌ Coverage 97.2% (baseline 97.3%)

➡️ View CI run | View publish logs
2026-05-10 21:05:46 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants