Reduce instruction count handling traces on ingress

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • N&O 2026-07-20
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The two key changes driving the decrease in instructions:

      • Check the presence of telemetry context on the request before checking if tracing is enabled. Checking if tracing is enabled requieres reading flags and FCV, so is many more instructions.
      • Use TelemetryContext diectly in `startIngressSpan` instead of getting it from `opCtx`. Loading it via the decoration takes more instructions.

            Assignee:
            Michael Nugent
            Reporter:
            Michael Nugent
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: