pub struct Processing {
pub enabled: bool,
pub geoip_path: Option<PathBuf>,
pub max_secs_in_future: u32,
pub max_session_secs_in_past: u32,
pub kafka_config: Vec<KafkaConfigParam>,
pub secondary_kafka_configs: BTreeMap<String, Vec<KafkaConfigParam>>,
pub topics: TopicAssignments,
pub kafka_validate_topics: bool,
pub redis: Option<RedisConfigs>,
pub attachment_chunk_size: ByteSize,
pub projectconfig_cache_prefix: String,
pub max_rate_limit: Option<u32>,
}
Expand description
Controls Sentry-internal event processing.
Fields§
§enabled: bool
True if the Relay should do processing. Defaults to false
.
geoip_path: Option<PathBuf>
GeoIp DB file source.
max_secs_in_future: u32
Maximum future timestamp of ingested events.
max_session_secs_in_past: u32
Maximum age of ingested sessions. Older sessions will be dropped.
kafka_config: Vec<KafkaConfigParam>
Kafka producer configurations.
secondary_kafka_configs: BTreeMap<String, Vec<KafkaConfigParam>>
Additional kafka producer configurations.
The kafka_config
is the default producer configuration used for all topics. A secondary
kafka config can be referenced in topics:
like this:
secondary_kafka_configs:
mycustomcluster:
- name: 'bootstrap.servers'
value: 'sentry_kafka_metrics:9093'
topics:
transactions: ingest-transactions
metrics:
name: ingest-metrics
config: mycustomcluster
Then metrics will be produced to an entirely different Kafka cluster.
topics: TopicAssignments
Kafka topic names.
kafka_validate_topics: bool
Whether to validate the supplied topics by calling Kafka’s metadata endpoints.
redis: Option<RedisConfigs>
Redis hosts to connect to for storing state for rate limits.
attachment_chunk_size: ByteSize
Maximum chunk size of attachments for Kafka.
projectconfig_cache_prefix: String
Prefix to use when looking up project configs in Redis. Defaults to “relayconfig”.
max_rate_limit: Option<u32>
Maximum rate limit to report to clients.
Trait Implementations§
source§impl Debug for Processing
impl Debug for Processing
source§impl Default for Processing
impl Default for Processing
source§impl<'de> Deserialize<'de> for Processing
impl<'de> Deserialize<'de> for Processing
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Processing
impl RefUnwindSafe for Processing
impl Send for Processing
impl Sync for Processing
impl Unpin for Processing
impl UnwindSafe for Processing
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more