Fix/tracing cleanup (#342)

* tracing usability

* fix bug in prev commit

* more cleanup

* further tracing UI cleanup
This commit is contained in:
Dave Horton
2023-05-08 14:35:07 -04:00
committed by GitHub
parent 5043edfd4e
commit 7a184a8bbc
3 changed files with 18 additions and 12 deletions

View File

@@ -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)});