Google App Engine
Note
An updated Java SDK Java SDK has superseded this deprecated version. Sentry preserves this documentation for customers using the old client. We recommend using the updated Java SDK for new projects.
The sentry-appengine
library provides Google App Engine support for Sentry via the Task Queue API.
The source can be found on GitHub.
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry-appengine</artifactId>
<version>1.7.30</version>
</dependency>
For other dependency managers see the central Maven repository.
This module provides a new SentryClientFactory
implementation which replaces the default async system with a Google App Engine compatible one. You’ll need to configure Sentry to use the io.sentry.appengine.AppEngineSentryClientFactory
as its factory.
The queue size and thread options will not be used as they are specific to the default Java threading system.
By default, the default task queue will be used, but it’s possible to specify which one will be used with the sentry.async.gae.queuename
option:
{DSN}?async.gae.queuename=MyQueueName
As the queued tasks are sent across different instances of the application, it’s important to be able to identify which connection should be used when processing the event. To do so, the GAE module will identify each connection based on an identifier either automatically generated or user defined. To manually set the connection identifier (only used internally) use the option sentry.async.gae.connectionid
:
{DSN}?async.gae.connectionid=MyConnection
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
- Package:
- maven:io.sentry:sentry-servlet
- Version:
- 7.8.0
- Repository:
- https://github.com/getsentry/sentry-java
- API Documentation:
- https://javadoc.io/doc/io.sentry