Skip to content

Compiled regex exceeds size limit of 262144 bytes #5812

Description

@sentry

Sentry Issue: RELAY-1B

CompiledTooBig: Compiled regex exceeds size limit of 262144 bytes.
RegexError: could not parse pattern
tracing::error!: unable to compile pattern into regex
  File "config.rs", line 77, in relay_pii::config::LazyPattern::compiled::{{closure}}
    relay_log::error!(
  File "config.rs", line 69, in relay_pii::config::LazyPattern::compiled
    .get_or_init(|| {
  File "regexes.rs", line 57, in relay_pii::regexes::get_regex_for_rule_type
    if let Ok(pattern) = redact_pair.key_pattern.compiled() {
  File "processor.rs", line 465, in relay_pii::processor::apply_rule_to_value
    for (pattern_type, regex, replace_behavior) in regexes::get_regex_for_rule_type(&rule.ty) {
  File "processor.rs", line 73, in relay_pii::processor::PiiProcessor::apply_all_rules
    apply_rule_to_value(meta, rule, state.path().key(), reborrowed_value)?;
...
(96 additional frame(s) were not displayed)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfillerRequires little effort to resolve. Ready to be picked up anytime.maintenanceTasks with this label generally have a lower priority and due date

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions