Skip to content

@flarelog/sdk


@flarelog/sdk / RequestContext

Interface: RequestContext

Defined in: types.ts:399

Options for request-scoped logging (Cloudflare Workers)

Properties

request

request: Request

Defined in: types.ts:401

The incoming Request object


traceId?

optional traceId?: string

Defined in: types.ts:403

Trace ID for distributed tracing (auto-extracted from W3C traceparent if omitted)


metadata?

optional metadata?: Record<string, unknown>

Defined in: types.ts:405

Additional context metadata


skipInstrumentation?

optional skipInstrumentation?: boolean

Defined in: types.ts:412

When true, skip all instrumentation for this request — no span, no log enrichment, no end-of-request flush. Set this from your wrapper when you've decided the request doesn't need telemetry (e.g. favicon, static assets, OPTIONS/HEAD preflight). The handler still runs.

Released under the MIT License.