Skip to content

Commit

Permalink
Merge pull request #159 from ahom/tr
Browse files Browse the repository at this point in the history
fix: remove origin
  • Loading branch information
ahom authored Mar 6, 2022
2 parents db8dbdd + 501fb2e commit e63113b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ export class HttpRequest {
if (!segment) {
await exec();
} else {
const subSegment = segment?.addNewSubsegment(`Toaztr-${this.event.routeKey?.replace(' ', '-')}`);
const subSegment = segment.addNewSubsegment(`Toaztr-${this.event.routeKey?.replace(' ', '-')}`);
subSegment.addAttribute('namespace', 'remote');
subSegment.addAttribute('origin', 'Toaztr::HTTP');
await getNamespace().runPromise(async function() {
setSegment(subSegment);
await exec();
Expand Down

0 comments on commit e63113b

Please sign in to comment.