Package io.quarkus.logging.sentry
Class SentryConfig
- java.lang.Object
-
- io.quarkus.logging.sentry.SentryConfig
-
@ConfigRoot(phase=RUN_TIME, name="log.sentry") public class SentryConfig extends Object
Configuration for Sentry logging.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
debug
Debug Enables Sentry debug mode.Optional<String>
dsn
Sentry DSN The DSN is the first and most important thing to configure because it tells the SDK where to send events.(package private) boolean
enable
Determine whether to enable the Sentry logging extension.Optional<String>
environment
Environment With Sentry you can easily filter issues, releases, and user feedback by environment.Optional<List<String>>
inAppPackages
Sentry differentiates stack frames that are directly related to your application (“in application”) from stack frames that come from other packages such as the standard library, frameworks, or other dependencies.Level
level
The sentry log level.Level
minimumBreadcrumbLevel
The minimum breadcrumb level.Level
minimumEventLevel
The minimum event level.Optional<String>
release
Release A release is a version of your code that is deployed to an environment.Optional<String>
serverName
Server name Sets the server name that will be sent with each event.
-
Constructor Summary
Constructors Constructor Description SentryConfig()
-
-
-
Field Detail
-
enable
@ConfigItem(name="<<parent>>") boolean enable
Determine whether to enable the Sentry logging extension.
-
dsn
@ConfigItem public Optional<String> dsn
Sentry DSN The DSN is the first and most important thing to configure because it tells the SDK where to send events. You can find your project’s DSN in the “Client Keys” section of your “Project Settings” in Sentry.
-
level
@ConfigItem(defaultValue="WARN") public Level level
The sentry log level.
-
minimumEventLevel
@ConfigItem(defaultValue="WARN") public Level minimumEventLevel
The minimum event level. Every log statement that is greater than minimum event level is turned into Sentry event.
-
minimumBreadcrumbLevel
@ConfigItem(defaultValue="INFO") public Level minimumBreadcrumbLevel
The minimum breadcrumb level. Every log statement that is greater than minimum breadcrumb level is added to Sentry scope as a breadcrumb, which can be later attached to SentryEvent if one is triggered.
-
inAppPackages
@ConfigItem public Optional<List<String>> inAppPackages
Sentry differentiates stack frames that are directly related to your application (“in application”) from stack frames that come from other packages such as the standard library, frameworks, or other dependencies. The difference is visible in the Sentry web interface where only the “in application” frames are displayed by default. You can configure which package prefixes your application uses with this option. This option is highly recommended as it affects stacktrace grouping and display on Sentry. See documentation: https://quarkus.io/guides/logging-sentry#in-app-packages
-
environment
@ConfigItem public Optional<String> environment
Environment With Sentry you can easily filter issues, releases, and user feedback by environment. The environment filter on sentry affects all issue-related metrics like count of users affected, times series graphs, and event count. By setting the environment option, an environment tag will be added to each new issue sent to Sentry. There are a few restrictions: -> the environment name cannot contain newlines or spaces, cannot be the string “None” or exceed 64 characters.
-
release
@ConfigItem public Optional<String> release
Release A release is a version of your code that is deployed to an environment. When you give Sentry information about your releases, you unlock a number of new features: - Determine the issues and regressions introduced in a new release - Predict which commit caused an issue and who is likely responsible - Resolve issues by including the issue number in your commit message - Receive email notifications when your code gets deployed
-
serverName
@ConfigItem public Optional<String> serverName
Server name Sets the server name that will be sent with each event.
-
debug
@ConfigItem(defaultValue="false") public boolean debug
Debug Enables Sentry debug mode.
-
-