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

[Crashtracker] Track active spans and traces #536

Merged
merged 13 commits into from
Jul 19, 2024
Merged

Conversation

danielsn
Copy link
Contributor

What does this PR do?

Provides a mechanism for clients to record active spans/traces, and reports them in the crashreport.

Motivation

Error-tracking said this would be useful to help corrlate crashes with the traces they affected.

Additional Notes

Anything else we should know when reviewing?

How to test the change?

Describe here in detail how the change can be validated.

@danielsn danielsn requested review from a team as code owners July 18, 2024 15:22
@pr-commenter
Copy link

pr-commenter bot commented Jul 18, 2024

Benchmarks

This comment was omitted because it was over 65536 characters.Please check the Gitlab Job logs to see its output.

@github-actions github-actions bot added the profiling Relates to the profiling* modules. label Jul 18, 2024
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jul 18, 2024

Library Vulnerabilities

✅ No library vulnerabilities found (scanned 519f61c).

@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 57.54386% with 121 lines in your changes missing coverage. Please review.

Project coverage is 70.50%. Comparing base (b166d86) to head (a504136).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #536      +/-   ##
==========================================
- Coverage   70.63%   70.50%   -0.14%     
==========================================
  Files         206      208       +2     
  Lines       28112    28397     +285     
==========================================
+ Hits        19856    20020     +164     
- Misses       8256     8377     +121     
Components Coverage Δ
crashtracker 25.53% <70.68%> (+9.01%) ⬆️
datadog-alloc 98.73% <ø> (ø)
data-pipeline 50.00% <ø> (ø)
data-pipeline-ffi 0.00% <ø> (ø)
ddcommon 86.43% <ø> (ø)
ddcommon-ffi 75.29% <ø> (ø)
ddtelemetry 58.95% <ø> (ø)
ipc 84.13% <ø> (ø)
profiling 78.09% <0.00%> (-0.69%) ⬇️
profiling-ffi 56.76% <0.00%> (-1.88%) ⬇️
serverless 0.00% <ø> (ø)
sidecar 35.42% <ø> (ø)
sidecar-ffi 0.00% <ø> (ø)
spawn-worker 54.98% <ø> (ø)
trace-mini-agent 71.14% <ø> (ø)
trace-normalization 98.24% <ø> (ø)
trace-obfuscation 95.73% <ø> (ø)
trace-protobuf 77.16% <ø> (ø)
trace-utils 91.63% <ø> (ø)

@taegyunkim taegyunkim self-requested a review July 18, 2024 19:47
Comment on lines +9 to +10
static ACTIVE_SPANS: AtomicU128Set<2048> = AtomicU128Set::new();
static ACTIVE_TRACES: AtomicU128Set<2048> = AtomicU128Set::new();
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did 2048 come from?

@danielsn danielsn merged commit 1f350c9 into main Jul 19, 2024
32 checks passed
@danielsn danielsn deleted the dsn/crashtracker-spans branch July 19, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Relates to the profiling* modules.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants