Skip to content

Commit

Permalink
Update SentryTracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Tkach committed Jan 22, 2025
1 parent ff10007 commit f960b66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/rtckit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/rtckit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gcorevideo/rtckit",
"version": "0.85.0",
"version": "0.86.0",
"private": false,
"description": "A WebRTC client for Gcore Streaming Platform",
"license": "Apache-2.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/rtckit/src/trace/SentryTracer.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Client, addBreadcrumb } from "@sentry/core";
import { Client, Scope, addBreadcrumb } from "@sentry/core";

/**
* @beta
*/
export class SentryTracer {
constructor(private client: Client) {}
constructor(private client: Client, private scope: Scope) {}

reportError(e: Error) {
this.client.captureException(e);
}

trace(message: string, data?: Record<string, unknown>) {
addBreadcrumb({
this.scope.addBreadcrumb({
type: "default",
level: "info",
message,
Expand Down

0 comments on commit f960b66

Please sign in to comment.