Skip to content

feat(elixir): allows to record throw/exit kind exceptions#965

Draft
grzuy wants to merge 1 commit intoopen-telemetry:mainfrom
mimiquate:record-exception
Draft

feat(elixir): allows to record throw/exit kind exceptions#965
grzuy wants to merge 1 commit intoopen-telemetry:mainfrom
mimiquate:record-exception

Conversation

@grzuy
Copy link
Contributor

@grzuy grzuy commented Mar 12, 2026

Proof of concept to address #798.


See [specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.8.0/specification/trace/api.md#record-exception)
"""
@spec record_exception(OpenTelemetry.span_ctx(), Exception.t()) :: boolean()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to update this spec definition to include the new clause.

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.54%. Comparing base (a66e0ae) to head (b7fbe6e).

Files with missing lines Patch % Lines
apps/opentelemetry_api/lib/open_telemetry/span.ex 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #965      +/-   ##
==========================================
- Coverage   17.59%   17.54%   -0.05%     
==========================================
  Files          24       24              
  Lines         722      724       +2     
==========================================
  Hits          127      127              
- Misses        595      597       +2     
Flag Coverage Δ
api 17.54% <0.00%> (-0.05%) ⬇️
elixir 17.54% <0.00%> (-0.05%) ⬇️

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.

@grzuy grzuy changed the title feat(elixir): allows record_exception to record throws/exits feat(elixir): allows to record throws/exits kind exceptions Mar 12, 2026
@grzuy grzuy changed the title feat(elixir): allows to record throws/exits kind exceptions feat(elixir): allows to record throw/exit kind exceptions Mar 12, 2026
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.

1 participant