Skip to content

Commit c506c3a

Browse files
authored
Merge pull request #609 from metrico/fix/exception-on-error-log
Fix/exception on error log
2 parents 16f3623 + 9051a17 commit c506c3a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/handlers/otlp_log_push.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function handle (req, res) {
5252
}
5353
await Promise.all(promises)
5454
} catch (error) {
55-
await asyncLogError(error)
55+
await asyncLogError(error, req.log)
5656
res.status(500).send({ error: 'Internal Server Error' })
5757
}
5858
}

traceql/clickhouse_transpiler/attr_condition.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module.exports = class Builder {
7272
for (const term of self.terms) {
7373
const sqlTerm = self.getTerm(term)
7474
self.sqlConditions.push(sqlTerm)
75-
if (!term.Child('label_name').value.match(/^(\.|span\.|resource\.|name)/)) {
75+
if (!term.Child('label_name').value.match(/^(\.|span\.|resource\.|name|status)/)) {
7676
continue
7777
}
7878
self.where.push(sqlTerm)
@@ -181,6 +181,9 @@ module.exports = class Builder {
181181
case 'name':
182182
key = 'name'
183183
break
184+
case 'status':
185+
key = 'status'
186+
break
184187
default:
185188
throw new Error(`unsupported attribute ${key}`)
186189
}

0 commit comments

Comments
 (0)