Commit b54e55f4 authored by mark burdett's avatar mark burdett
Browse files

Issue #3254091 by mfb: Add another example

parent b2dc9371
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -65,6 +65,10 @@ function hook_raven_filter_alter(array &$filter) {
      $filter['process'] = FALSE;
    }
  }
  // Tag each event with X-Request-ID HTTP header, if present.
  $tags = $filter['event']->getTags();
  $tags['request_id'] = $_SERVER['HTTP_X_REQUEST_ID'] ?? NULL;
  $filter['event']->setTags($tags);
}

/**