Skip to content

feat: OTel HTTP semantic convention compliance#7

Closed
Taure wants to merge 2 commits intomainfrom
feat/otel-semconv-compliance
Closed

feat: OTel HTTP semantic convention compliance#7
Taure wants to merge 2 commits intomainfrom
feat/otel-semconv-compliance

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented Mar 11, 2026

Summary

  • Add missing span attributes: http.route, error.type, network.protocol.version, client.address (with X-Forwarded-For/Forwarded header support)
  • Add missing metric attributes: http.response.status_code, http.route, error.type on duration/body size histograms
  • Fix span naming to standard {METHOD} {route} format (e.g. GET /users/:id) instead of GET controller:action
  • Route template reconstruction from path + bindings via plugin → process dictionary → stream handler bridge
  • Add warnings_as_errors, xref checks, and dialyzer config with proper PLT setup (0 warnings across all tools)
  • Patch upstream eqwalizer:dynamic/0dynamic() in otel_metrics.hrl via pre-compile hook (OTP 28+ built-in type)

Test plan

  • 9 new test cases covering all new attributes and metric enrichment
  • All 29 tests pass
  • rebar3 compile — 0 warnings (warnings_as_errors)
  • rebar3 xref — 0 warnings
  • rebar3 dialyzer — 0 warnings

🤖 Generated with Claude Code

Taure and others added 2 commits March 11, 2026 11:19
Add http.route, error.type, network.protocol.version, and client.address
span attributes. Include http.response.status_code, http.route, and
error.type in metric attributes. Fix span naming to use standard
{METHOD} {route} format. Add proper xref and dialyzer configuration
with warnings_as_errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… license

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Taure Taure requested a review from burbas March 11, 2026 20:30
@Taure
Copy link
Copy Markdown
Contributor Author

Taure commented Mar 17, 2026

Closing — all changes from this PR were already merged to main via #8.

@Taure Taure closed this Mar 17, 2026
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.

2 participants