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

Exception as event #160

Merged
merged 36 commits into from
Jun 19, 2024
Merged

Conversation

mikebosland
Copy link
Contributor

Which problem is this PR solving?

Fix a TODO to correct recordException as an event instead of attributes directly on the span. See the spec: https://opentelemetry.io/docs/specs/otel/trace/exceptions/

Fixes #152 (issue)

Short description of the change

Implement as an event instead of span attributes.

How Has This Been Tested?

Adjusted existing integration test.

Checklist:

  • Unit tests have been added
  • Documentation has been updated

@aviary3-wk
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

Comment on lines 1 to 2
// Copyright 2021-2022 Workiva.
// Licensed under the Apache License, Version 2.0. Please see https://github.com/Workiva/opentelemetry-dart/blob/master/LICENSE for more information
Copy link
Contributor

Choose a reason for hiding this comment

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

could you run make format to reattach this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried make format. It added the copyright header to 116 files. Apparently the logic to detect pre-existing copyright headers isn't working... I've restored the header for this file directly.

Copy link
Contributor

Choose a reason for hiding this comment

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

make format seems to work as expected on my machine when I checkout master. Is this maybe an OS issue?

@blakeroberts-wk
Copy link
Contributor

@mikebosland could you regenerate the mocks?

@mikebosland
Copy link
Contributor Author

@mikebosland could you regenerate the mocks?

Hi, I just went to regenerate the mocks. The only diff was to remove the copyright header, so I suppose they are to date, unless I'm missing something...

@blakeroberts-wk
Copy link
Contributor

@mikebosland I think you will need to merge master and regenerate the mocks to resolve the merge conflicts?

@mikebosland
Copy link
Contributor Author

Okay, I think I've merged the master. Running the command to regenerate the mocks just removes the file, but all tests continue to pass.

@mikebosland
Copy link
Contributor Author

Tests were passing but analyze was not. Removing the mocks.mocks.dart then fixes the analysis problem.

@blakeroberts-wk
Copy link
Contributor

QA +1

@blakeroberts-wk
Copy link
Contributor

@Workiva/release-management-p

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

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

+1 from RM

@rm-astro-wf rm-astro-wf merged commit 70065d7 into Workiva:master Jun 19, 2024
4 checks passed
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.

RecordException doesn't capture Exception as Event