Skip to content

Commit

Permalink
feat(repeater): define repeaterId as sentry's bridge_id tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aborovsky committed Nov 26, 2024
1 parent 8904f65 commit 1f2fb1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Repeater/ServerRepeaterLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { CliInfo } from '../Config';
import { RepeaterCommandHub } from './RepeaterCommandHub';
import { delay, inject, injectable } from 'tsyringe';
import chalk from 'chalk';
import { captureException } from '@sentry/node';
import { captureException, setTag } from '@sentry/node';

@injectable()
export class ServerRepeaterLauncher implements RepeaterLauncher {
Expand Down Expand Up @@ -101,6 +101,8 @@ export class ServerRepeaterLauncher implements RepeaterLauncher {

this.repeaterRunning = true;

setTag('bridge_id', repeaterId);

if (asDaemon) {
await this.startupManager.run(() => this.close());
}
Expand Down

0 comments on commit 1f2fb1f

Please sign in to comment.