Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding possibility of recording exception #1372

Merged
merged 16 commits into from
Aug 24, 2020

Conversation

obecny
Copy link
Member

@obecny obecny commented Jul 31, 2020

Which problem is this PR solving?

Short description of the changes

  • It adds a new api function recordException to span so that it will be possible to record exception in span as events

@obecny obecny self-assigned this Jul 31, 2020
@obecny obecny added release:required-for-ga size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 31, 2020
@codecov
Copy link

codecov bot commented Jul 31, 2020

Codecov Report

Merging #1372 into master will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1372      +/-   ##
==========================================
+ Coverage   93.74%   93.79%   +0.04%     
==========================================
  Files         149      149              
  Lines        4505     4525      +20     
  Branches      929      939      +10     
==========================================
+ Hits         4223     4244      +21     
+ Misses        282      281       -1     
Impacted Files Coverage Δ
packages/opentelemetry-api/src/trace/NoopSpan.ts 100.00% <100.00%> (ø)
packages/opentelemetry-tracing/src/Span.ts 100.00% <100.00%> (ø)
...emetry-core/src/platform/node/RandomIdGenerator.ts 93.75% <0.00%> (+6.25%) ⬆️

@dyladan dyladan added API enhancement New feature or request labels Jul 31, 2020
@obecny obecny requested a review from dyladan August 4, 2020 00:09
Copy link
Member

@mwear mwear left a comment

Choose a reason for hiding this comment

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

LGTM

@dyladan
Copy link
Member

dyladan commented Aug 19, 2020

@obecny when conflicts are fixed this can be merged

@obecny obecny merged commit 2ee9f1a into open-telemetry:master Aug 24, 2020
@obecny obecny deleted the errors branch August 24, 2020 22:35
dyladan pushed a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
* feat: adding possibility of recording exception

* chore: copy

* chore: copy

* chore: linting

* chore: reviews

* chore: updating exception type

* chore: reviews

* chore: reviews

* chore: fixing test when waiting for files to be loaded
dyladan pushed a commit to dyladan/opentelemetry-js that referenced this pull request Sep 9, 2022
* feat: adding possibility of recording exception

* chore: copy

* chore: copy

* chore: linting

* chore: reviews

* chore: updating exception type

* chore: reviews

* chore: reviews

* chore: fixing test when waiting for files to be loaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement capturing error type/msg/stacktrace as events per spec
5 participants