Skip to content

[Crashtracker] Track active spans and traces#536

Merged
danielsn merged 13 commits into
mainfrom
dsn/crashtracker-spans
Jul 19, 2024
Merged

[Crashtracker] Track active spans and traces#536
danielsn merged 13 commits into
mainfrom
dsn/crashtracker-spans

Conversation

@danielsn
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Contributor

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

Library Vulnerabilities

✅ No library vulnerabilities found (scanned 519f61c).

@codecov-commenter
Copy link
Copy Markdown

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 thread crashtracker/src/spans.rs
Comment on lines +9 to +10
static ACTIVE_SPANS: AtomicU128Set<2048> = AtomicU128Set::new();
static ACTIVE_TRACES: AtomicU128Set<2048> = AtomicU128Set::new();
Copy link
Copy Markdown
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
@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