Package io.quarkus.logging.sentry
Class SentryConfig
java.lang.Object
io.quarkus.logging.sentry.SentryConfig
Configuration for Sentry logging.
-
Field Summary
FieldsModifier and TypeFieldDescriptionContext Tags Specifics the MDC tags that are used as Sentry tagsbooleanDebug Enables Sentry debug mode.Sentry DSN The DSN is the first and most important thing to configure because it tells the SDK where to send events.Environment With Sentry you can easily filter issues, releases, and user feedback by environment.You can use this option to set exceptions that will be filtered out before sending to Sentry by adding the names of the exception.(e.g.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.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 sentry log level.The minimum breadcrumb level.The minimum event level.Release A release is a version of your code that is deployed to an environment.Server name Sets the server name that will be sent with each event.Static tags Static tags that are sent to Sentry with every event.This should be a float/double between 0.0 and 1.0 (inclusive) and represents the percentage chance that any given transaction will be sent to Sentry. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
The sentry log level. -
minimumEventLevel
The minimum event level. Every log statement that is greater than minimum event level is turned into Sentry event. -
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
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 -
inAppExcludedPackages
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. You can configure which package prefixes you want to exclude from logging. -
ignoredExceptionsForType
You can use this option to set exceptions that will be filtered out before sending to Sentry by adding the names of the exception.(e.g. java.lang.RuntimeException) -
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
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
Server name Sets the server name that will be sent with each event. -
debug
@ConfigItem(defaultValue="false") public boolean debugDebug Enables Sentry debug mode. -
tracesSampleRate
This should be a float/double between 0.0 and 1.0 (inclusive) and represents the percentage chance that any given transaction will be sent to Sentry. So, barring outside influence, 0.0 is a 0% chance (none will be sent) and 1.0 is a 100% chance (all will be sent). This rate applies equally to all transactions. -
contextTags
Context Tags Specifics the MDC tags that are used as Sentry tags -
tags
Static tags Static tags that are sent to Sentry with every event. -
proxy
-
-
Constructor Details
-
SentryConfig
public SentryConfig()
-