canvas-lms/gems/request_context/spec
Isaac Moore c3f03e6186 Add Sentry trace ID to X-Canvas-Meta response header
This change adds Sentry's distributed trace ID to the `X-Canvas-Meta`
response header, so that it may be ingested by the logging pipeline and
accessed downstream.

flag=none
refs DE-1032

test plan:
- with Sentry initialized with a valid DSN, verify that the
  `X-Canvas-Meta` header contains a `st` value containing the Sentry
  trace ID
- verify that the trace ID present in the response header matches the one
  in the `meta` tag inside the body's `<head>`
- verify that when Sentry is not initialized with a valid DSN, the value
  is omitted from the response header, and the app still renders
  responses correctly

Change-Id: I63580b4d5057cebf55e6a4fdbc628d58ed7973f7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/284991
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Isaac Moore <isaac.moore@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
2022-02-15 23:48:15 +00:00
..
request_context Add Sentry trace ID to X-Canvas-Meta response header 2022-02-15 23:48:15 +00:00
spec_helper.rb RuboCop: Style/StringLiterals, Style/StringLiteralsInInterpolation 2021-11-25 14:03:06 +00:00