Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Latest commit

 

History

History
44 lines (24 loc) · 1.12 KB

oc_sampler.md

File metadata and controls

44 lines (24 loc) · 1.12 KB

Module oc_sampler

Behaviour each sampler must implement.

This module defines the oc_sampler behaviour.
Required callback functions: init/1, should_sample/4.

Description

The function should_trace is given the trace id of the current trace, if one exists, the span id of what would be the parent of any new span in this trace and a boolean for whether the trace was enabled in the process that propagated this context.

Function Index

init/1Called at the start of a trace.
should_sample/3

Function Details

init/1

init(X1) -> any()

Called at the start of a trace.

should_sample/3

should_sample(TraceId, SpanId, Enabled) -> any()