variable TELEMETRY_SPAN_KEY
Since 0.2.0

The key used to store the active span on ctx.state.

Downstream handlers and middleware can read the active span via ctx.state.get(TELEMETRY_SPAN_KEY) and cast to ISpan.

Type

"telemetry-plugin:span"

Usage

import { TELEMETRY_SPAN_KEY } from "telemetry-plugin/src/index.ts";