OpenTelemetry PHP

ConstantSampler extends Message
in package

Sampler that always makes a constant decision on span sampling.

Generated from protobuf message opentelemetry.proto.trace.v1.ConstantSampler

Table of Contents

Properties

$decision  : mixed
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision decision = 1;</code>

Methods

__construct()  : mixed
Constructor.
getDecision()  : int
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision decision = 1;</code>
setDecision()  : $this
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision decision = 1;</code>

Properties

$decision

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision decision = 1;</code>

protected mixed $decision = 0

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
$data : array<string|int, mixed> = NULL

{ Optional. Data for populating the Message object.

@type int $decision

}

getDecision()

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision decision = 1;</code>

public getDecision() : int
Return values
int

setDecision()

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler.ConstantDecision decision = 1;</code>

public setDecision(int $var) : $this
Parameters
$var : int
Return values
$this

        
On this page

Search results