Skip to content

Commit

Permalink
chore: change tracerActiveSpan to tracerSpan on LocalBroker
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarim committed Oct 24, 2024
1 parent 633441b commit ae9478d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-services/src/LocalBroker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EventEmitter } from 'events';

import { InstanceStatus } from '@rocket.chat/models';
import { injectCurrentContext, tracerActiveSpan } from '@rocket.chat/tracing';
import { injectCurrentContext, tracerSpan } from '@rocket.chat/tracing';

import { asyncLocalStorage } from '.';
import type { EventSignatures } from './events/Events';
Expand All @@ -18,7 +18,7 @@ export class LocalBroker implements IBroker {
private services = new Set<IServiceClass>();

async call(method: string, data: any): Promise<any> {
return tracerActiveSpan(
return tracerSpan(
`action ${method}`,
{},
() => {
Expand Down

0 comments on commit ae9478d

Please sign in to comment.