Skip to main content
Module

x/blocks/deps.ts>SamplingResult

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
interface SamplingResult
Re-export
import { type SamplingResult } from "https://deno.land/x/blocks@1.48.7/deps.ts";

A sampling result contains a decision for a Span and additional attributes the sampler would like to added to the Span.

Properties

A sampling decision, refer to SamplingDecision for details.

optional
attributes: Readonly<SpanAttributes>

The list of attributes returned by SamplingResult MUST be immutable. Caller may call Sampler.shouldSample any number of times and can safely cache the returned value.

optional
traceState: TraceState

A TraceState that will be associated with the Span through the new SpanContext. Samplers SHOULD return the TraceState from the passed-in Context if they do not intend to change it. Leaving the value undefined will also leave the TraceState unchanged.