Add Span.add_link() method to add link after span start. by chittalpatel · Pull Request #3618 · open-telemetry/opentelemetry-python
Conversation
Description
Implementation of adding links after span start, defined in: open-telemetry/opentelemetry-specification#3678
Fixes #3607
Type of change
- New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Added two new unit tests in opentelemetry-sdk.
- TestSpan::test_add_link
- TestSpan::test_add_link_with_invalid_span_context
Does This PR Require a Contrib Repo Change?
- No.
Checklist:
- Followed the style guidelines of this project
- Changelogs have been updated
- Unit tests have been added
- Documentation has been updated
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked code for style, correctness, and conformance to spec: LGTM but would like someone else to look as well.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, just one comment
@aabmass PTAL, are you ok with this PR as it is right now or do you want further changes?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters