public class AppEngineSentryClientFactory extends DefaultSentryClientFactory
DefaultSentryClientFactory.DaemonThreadFactory| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_IDENTIFIER
Option to define the identifier of the async connection across every instance of the application.
|
static String |
QUEUE_NAME
Option for the queue name used in Google App Engine of threads assigned for the connection.
|
ASYNC_GRACEFUL_SHUTDOWN_OPTION, ASYNC_OPTION, ASYNC_PRIORITY_OPTION, ASYNC_QUEUE_DISCARDNEW, ASYNC_QUEUE_DISCARDOLD, ASYNC_QUEUE_OVERFLOW_DEFAULT, ASYNC_QUEUE_OVERFLOW_OPTION, ASYNC_QUEUE_SIZE_OPTION, ASYNC_QUEUE_SYNC, ASYNC_SHUTDOWN_TIMEOUT_DEFAULT, ASYNC_SHUTDOWN_TIMEOUT_OPTION, ASYNC_THREADS_OPTION, BUFFER_DIR_OPTION, BUFFER_ENABLED_DEFAULT, BUFFER_ENABLED_OPTION, BUFFER_FLUSHTIME_DEFAULT, BUFFER_FLUSHTIME_OPTION, BUFFER_GRACEFUL_SHUTDOWN_OPTION, BUFFER_SHUTDOWN_TIMEOUT_DEFAULT, BUFFER_SHUTDOWN_TIMEOUT_OPTION, BUFFER_SIZE_DEFAULT, BUFFER_SIZE_OPTION, COMPRESSION_OPTION, DIST_OPTION, ENVIRONMENT_OPTION, EXTRA_OPTION, EXTRATAGS_OPTION, HIDE_COMMON_FRAMES_OPTION, HTTP_PROXY_HOST_OPTION, HTTP_PROXY_PASS_OPTION, HTTP_PROXY_PORT_DEFAULT, HTTP_PROXY_PORT_OPTION, HTTP_PROXY_USER_OPTION, IN_APP_FRAMES_OPTION, MAX_MESSAGE_LENGTH_OPTION, MDCTAGS_OPTION, NAIVE_PROTOCOL, QUEUE_SIZE_DEFAULT, RELEASE_OPTION, SAMPLE_RATE_OPTION, SERVERNAME_OPTION, TAGS_OPTION, TIMEOUT_DEFAULT, TIMEOUT_OPTION, UNCAUGHT_HANDLER_ENABLED_OPTION| Constructor and Description |
|---|
AppEngineSentryClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Connection |
createAsyncConnection(Dsn dsn,
Connection connection)
Encapsulates an already existing connection in an
AppEngineAsyncConnection and get the async options
from the Sentry DSN. |
SentryClient |
createSentryClient(Dsn dsn) |
configureSentryClient, createConnection, createHttpConnection, createMarshaller, createStdOutConnection, getAsyncEnabled, getAsyncGracefulShutdownEnabled, getAsyncPriority, getAsyncQueueSize, getAsyncShutdownTimeout, getAsyncThreads, getBuffer, getBufferedConnectionGracefulShutdownEnabled, getBufferedConnectionShutdownTimeout, getBufferEnabled, getBufferFlushtime, getBufferSize, getBypassSecurityEnabled, getCompressionEnabled, getContextManager, getDist, getEnvironment, getExtra, getExtraTags, getHideCommonFramesEnabled, getInAppFrames, getMaxMessageLength, getMdcTags, getProxyHost, getProxyPass, getProxyPort, getProxyUser, getRejectedExecutionHandler, getRelease, getSampleRate, getServerName, getTags, getTimeout, getUncaughtHandlerEnabledsentryClient, sentryClient, sentryClient, toStringpublic static final String QUEUE_NAME
public static final String CONNECTION_IDENTIFIER
It is important to set a different connection identifier for each opened connection to keep the uniqueness of connection ID.
If the connection identifier is not specified, the system will define a connection identifier itself, but its uniqueness within an instance isn't guaranteed.
public SentryClient createSentryClient(Dsn dsn)
createSentryClient in class DefaultSentryClientFactoryprotected Connection createAsyncConnection(Dsn dsn, Connection connection)
AppEngineAsyncConnection and get the async options
from the Sentry DSN.createAsyncConnection in class DefaultSentryClientFactorydsn - Data Source Name of the Sentry server.connection - Connection to encapsulate in an AppEngineAsyncConnection.Copyright © 2012–2017. All rights reserved.