Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/observability / / Sampler
Interface: Sampler
Defined in: packages/observability/src/tracer/sampling.ts:56
Stable
Methods
shouldIncludeChunkContent()
ts
shouldIncludeChunkContent(): boolean;Defined in: packages/observability/src/tracer/sampling.ts:62
Returns whether chunk content should travel through the exporter.
Returns
boolean
shouldRecordEvent()
ts
shouldRecordEvent(name): boolean;Defined in: packages/observability/src/tracer/sampling.ts:60
Decide whether a span event of the given name should be recorded.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
boolean
shouldSample()
ts
shouldSample(type, parentSampled?): boolean;Defined in: packages/observability/src/tracer/sampling.ts:58
Decide whether a span of the given type should be recorded.
Parameters
| Parameter | Type |
|---|---|
type | string |
parentSampled? | boolean |
Returns
boolean