mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-31 07:44:25 +00:00
tracing usability
This commit is contained in:
1 parent
5043edfd4e
commit
1b91e8d0a0
2 files changed
+4
-3
No files matched your search
+1
-1
@@ -155,7 +155,7 @@ class Task extends Emitter {
|
||||
if (this.actionHook) {
|
||||
const type = this.name === TaskName.Redirect ? 'session:redirect' : 'verb:hook';
|
||||
const params = results ? Object.assign(this.cs.callInfo.toJSON(), results) : this.cs.callInfo.toJSON();
|
||||
const span = this.startSpan(type, {'hook.url': this.actionHook});
|
||||
const span = this.startSpan(`${type} (${this.actionHook}`);
|
||||
const b3 = this.getTracingPropagation('b3', span);
|
||||
const httpHeaders = b3 && {b3};
|
||||
span.setAttributes({'http.body': JSON.stringify(params)});
|
||||
|
||||
Reference in new issue
Block a user