Relay can operate in one of several major modes, and it is critical to understand the modes prior if you are configuring the Relay server rather than using the default settings.
The mode is stored in the configuration file, which contains the
relay.mode field. This field specifies the mode in which Relay will run:
proxy. The Relay mode controls the way Relay obtains
managed mode is available only on the Business and Enterprise plans.
In Sentry, event processing is configured according to both project and organization settings. Some settings, such as privacy controls, are set at the organization level, then inherited by all projects in that organization; other settings are specified per project. For Relay, events are processed according to the inherited project settings to which the event is sent.
Configuration for Relay is refreshed in regular intervals by polling Sentry. Sentry does not need line-of-sight to your Relays. See Configuration Options regarding configuration of intervals, timeouts, and retries.
Managed is Relay's default mode. Because settings are obtained from Sentry, authentication is required in this mode. If authentication fails, no events will be accepted by Relay.
As Relay receives events from your applications, it will request
To activate managed mode, set this configuration:
relay: mode: managed
In static mode, projects must be configured manually. In this mode, Relay will process events for only statically configured projects, and reject events for all other projects.
This mode is useful when you know the projects sending events and you need to explicitly control the projects allowed to send events through this Relay.
To activate static mode, set this configuration:
relay: mode: static
To configure projects, add files using the format
projects/<PROJECT_ID>.json to your Relay configuration folder. For a description of the contents of this file,
refer to Project Configuration.
Proxy mode is similar to
static mode, but it forwards events from unknown
projects. In this mode, events for statically configured projects are handled
static mode. Events for unknown projects -- projects for which
there are no statically configured settings -- are forwarded (proxied) with
To activate proxy mode, set this configuration:
relay: mode: proxy
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").