Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
238 changes: 224 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/crashtracker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ path = "src/bin/receiver.rs"

[dependencies]
anyhow = "1"
libdd-crashtracker = { git = "https://github.com/DataDog/libdatadog.git", tag = "v26.0.0" }
libdd-crashtracker = { git = "https://github.com/DataDog/libdatadog.git", tag = "v27.0.0" }
napi = { version = "2", features = ["serde-json"] }
napi-derive = { version = "2", default-features = false }
rustls = { version = "*", default-features = false, features = ["aws-lc-rs"] }
8 changes: 4 additions & 4 deletions test/crashtracker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ app.use(bodyParser.json())
app.post('/telemetry/proxy/api/v2/apmtelemetry', (req, res) => {
res.status(200).send()

const payload = req.body.payload[0]
const tags = payload.tags ? payload.tags.split(',') : []
const logPayload = req.body.payload.logs[0]
const tags = logPayload.tags ? logPayload.tags.split(',') : []

// Only process crash reports (not pings)
if (!tags.some(tag => tag === 'is_crash:true')) {
if (!logPayload.is_crash) {
return
}

clearTimeout(timeout)

server.close(() => {
const stackTrace = JSON.parse(payload.message).error.stack.frames
const stackTrace = JSON.parse(logPayload.message).error.stack.frames

const boomFrame = stackTrace.find(frame => frame.function?.toLowerCase().includes('segfaultify'))

Expand Down
Loading