Hyperlinkv0.8.0-beta.28

Tracer

Tracer.ParentSpanKeyconsteffect/Tracer.ts:147
"effect/Tracer/ParentSpan"

Defines the string key for the parent-span context service.

When to use

Use when you need the raw context key for parent span lookup in lower-level tracing code.

Example (Reading the parent span key)

import { Tracer } from "effect"

// The key used to identify parent spans in the context
console.log(Tracer.ParentSpanKey) // "effect/Tracer/ParentSpan"
constants
Source effect/Tracer.ts:1471 lines
export const ParentSpanKey = "effect/Tracer/ParentSpan"
Referenced by 3 symbols