-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(realtime): add tracing filter (#64)
- Loading branch information
Showing
4 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export const tracingConfig = { | ||
otelServiceName: process.env.OTEL_SERVICE_NAME || "galoy-price-dev", | ||
enableFilter: process.env.TRACING_ENABLE_FILTER === "true", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { DomainError } from "@domain/errors" | ||
import { DomainError, ErrorLevel } from "@domain/errors" | ||
|
||
class PrimitivesError extends DomainError {} | ||
|
||
export class InvalidCurrencyError extends PrimitivesError {} | ||
export class InvalidCurrencyError extends PrimitivesError { | ||
level = ErrorLevel.Warn | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters