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

chore(tracing): add span links and events to debug info #9771

Merged
merged 12 commits into from
Jul 24, 2024

Conversation

mabdinur
Copy link
Contributor

@mabdinur mabdinur commented Jul 9, 2024

Span._pprint() is used in span finish debug logs. This PR ensures span_links and span_events values are also printed.

Checklist

  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@mabdinur mabdinur requested a review from a team as a code owner July 9, 2024 19:23
ddtrace/_trace/_span_link.py Outdated Show resolved Hide resolved
@mabdinur mabdinur force-pushed the munir/add-span-events-to-span-finish-debug-logs branch from c5617b3 to 6d946f1 Compare July 9, 2024 19:31
@datadog-dd-trace-py-rkomorn
Copy link

datadog-dd-trace-py-rkomorn bot commented Jul 9, 2024

Datadog Report

Branch report: munir/add-span-events-to-span-finish-debug-logs
Commit report: 8b66d74
Test service: dd-trace-py

✅ 0 Failed, 174641 Passed, 2408 Skipped, 9h 1m 3.85s Total duration (6m 7.24s time saved)

@pr-commenter
Copy link

pr-commenter bot commented Jul 9, 2024

Benchmarks

Benchmark execution time: 2024-07-24 17:39:49

Comparing candidate commit 8b66d74 in PR branch munir/add-span-events-to-span-finish-debug-logs with baseline commit 2de06b2 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 214 metrics, 2 unstable metrics.

@mabdinur mabdinur added the changelog/no-changelog A changelog entry is not required for this PR. label Jul 10, 2024
@brettlangdon brettlangdon enabled auto-merge (squash) July 11, 2024 19:35
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 10.51%. Comparing base (62f0969) to head (94364b7).
Report is 6 commits behind head on main.

Files Patch % Lines
tests/tracer/test_span.py 0.00% 4 Missing ⚠️
ddtrace/_trace/_span_link.py 0.00% 3 Missing ⚠️
ddtrace/_trace/span.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #9771       +/-   ##
===========================================
- Coverage   74.66%   10.51%   -64.15%     
===========================================
  Files        1391     1365       -26     
  Lines      128970   127671     -1299     
===========================================
- Hits        96293    13430    -82863     
- Misses      32677   114241    +81564     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Jul 16, 2024

CODEOWNERS have been resolved as:

ddtrace/_trace/_span_link.py                                            @DataDog/apm-sdk-api-python
ddtrace/_trace/span.py                                                  @DataDog/apm-sdk-api-python
tests/tracer/test_span.py                                               @DataDog/apm-sdk-api-python

@mabdinur mabdinur requested a review from a team as a code owner July 24, 2024 14:10
@brettlangdon brettlangdon merged commit 5b5b702 into main Jul 24, 2024
168 checks passed
@brettlangdon brettlangdon deleted the munir/add-span-events-to-span-finish-debug-logs branch July 24, 2024 19:01
gnufede pushed a commit that referenced this pull request Jul 26, 2024
`Span._pprint()` is used in span finish debug logs. This PR ensures
span_links and span_events values are also printed.

## Checklist

- [x] The PR description includes an overview of the change
- [x] The PR description articulates the motivation for the change
- [x] The change includes tests OR the PR description describes a
testing strategy
- [x] The PR description notes risks associated with the change, if any
- [x] Newly-added code is easy to change
- [x] The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- [x] The change includes or references documentation updates if
necessary
- [x] Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist

- [ ] Title is accurate
- [ ] All changes are related to the pull request's stated goal
- [ ] Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- [ ] Testing strategy adequately addresses listed risks
- [ ] Newly-added code is easy to change
- [ ] Release note makes sense to a user of the library
- [ ] If necessary, author has acknowledged and discussed the
performance implications of this PR as reported in the benchmarks PR
comment
- [ ] Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog A changelog entry is not required for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants