OpenTelemetry PHP

TraceConfig extends Message
in package

Global configuration of the trace service. All fields must be specified, or the default (zero) values will be used for each type.

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

Table of Contents

Properties

$max_number_of_attributes  : mixed
The global default max number of attributes per span.
$max_number_of_attributes_per_link  : mixed
The global default max number of attributes per span.
$max_number_of_attributes_per_timed_event  : mixed
The global default max number of attributes per timed event.
$max_number_of_links  : mixed
The global default max number of link entries per span.
$max_number_of_timed_events  : mixed
The global default max number of annotation events per span.
$sampler  : mixed

Methods

__construct()  : mixed
Constructor.
getConstantSampler()  : ConstantSampler|null
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;</code>
getMaxNumberOfAttributes()  : int|string
The global default max number of attributes per span.
getMaxNumberOfAttributesPerLink()  : int|string
The global default max number of attributes per span.
getMaxNumberOfAttributesPerTimedEvent()  : int|string
The global default max number of attributes per timed event.
getMaxNumberOfLinks()  : int|string
The global default max number of link entries per span.
getMaxNumberOfTimedEvents()  : int|string
The global default max number of annotation events per span.
getRateLimitingSampler()  : RateLimitingSampler|null
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;</code>
getSampler()  : string
getTraceIdRatioBased()  : TraceIdRatioBased|null
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;</code>
hasConstantSampler()  : mixed
hasRateLimitingSampler()  : mixed
hasTraceIdRatioBased()  : mixed
setConstantSampler()  : $this
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;</code>
setMaxNumberOfAttributes()  : $this
The global default max number of attributes per span.
setMaxNumberOfAttributesPerLink()  : $this
The global default max number of attributes per span.
setMaxNumberOfAttributesPerTimedEvent()  : $this
The global default max number of attributes per timed event.
setMaxNumberOfLinks()  : $this
The global default max number of link entries per span.
setMaxNumberOfTimedEvents()  : $this
The global default max number of annotation events per span.
setRateLimitingSampler()  : $this
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;</code>
setTraceIdRatioBased()  : $this
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;</code>

Properties

$max_number_of_attributes

The global default max number of attributes per span.

protected mixed $max_number_of_attributes = 0

Generated from protobuf field int64 max_number_of_attributes = 4;

The global default max number of attributes per span.

protected mixed $max_number_of_attributes_per_link = 0

Generated from protobuf field int64 max_number_of_attributes_per_link = 8;

$max_number_of_attributes_per_timed_event

The global default max number of attributes per timed event.

protected mixed $max_number_of_attributes_per_timed_event = 0

Generated from protobuf field int64 max_number_of_attributes_per_timed_event = 6;

The global default max number of link entries per span.

protected mixed $max_number_of_links = 0

Generated from protobuf field int64 max_number_of_links = 7;

$max_number_of_timed_events

The global default max number of annotation events per span.

protected mixed $max_number_of_timed_events = 0

Generated from protobuf field int64 max_number_of_timed_events = 5;

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 \Opentelemetry\Proto\Trace\V1\ConstantSampler $constant_sampler
@type \Opentelemetry\Proto\Trace\V1\TraceIdRatioBased $trace_id_ratio_based
@type \Opentelemetry\Proto\Trace\V1\RateLimitingSampler $rate_limiting_sampler
@type int|string $max_number_of_attributes
      The global default max number of attributes per span.
@type int|string $max_number_of_timed_events
      The global default max number of annotation events per span.
@type int|string $max_number_of_attributes_per_timed_event
      The global default max number of attributes per timed event.
@type int|string $max_number_of_links
      The global default max number of link entries per span.
@type int|string $max_number_of_attributes_per_link
      The global default max number of attributes per span.

}

getConstantSampler()

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

public getConstantSampler() : ConstantSampler|null
Return values
ConstantSampler|null

getMaxNumberOfAttributes()

The global default max number of attributes per span.

public getMaxNumberOfAttributes() : int|string

Generated from protobuf field int64 max_number_of_attributes = 4;

Return values
int|string

The global default max number of attributes per span.

public getMaxNumberOfAttributesPerLink() : int|string

Generated from protobuf field int64 max_number_of_attributes_per_link = 8;

Return values
int|string

getMaxNumberOfAttributesPerTimedEvent()

The global default max number of attributes per timed event.

public getMaxNumberOfAttributesPerTimedEvent() : int|string

Generated from protobuf field int64 max_number_of_attributes_per_timed_event = 6;

Return values
int|string

The global default max number of link entries per span.

public getMaxNumberOfLinks() : int|string

Generated from protobuf field int64 max_number_of_links = 7;

Return values
int|string

getMaxNumberOfTimedEvents()

The global default max number of annotation events per span.

public getMaxNumberOfTimedEvents() : int|string

Generated from protobuf field int64 max_number_of_timed_events = 5;

Return values
int|string

getRateLimitingSampler()

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;</code>

public getRateLimitingSampler() : RateLimitingSampler|null
Return values
RateLimitingSampler|null

getSampler()

public getSampler() : string
Return values
string

getTraceIdRatioBased()

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;</code>

public getTraceIdRatioBased() : TraceIdRatioBased|null
Return values
TraceIdRatioBased|null

hasConstantSampler()

public hasConstantSampler() : mixed

hasRateLimitingSampler()

public hasRateLimitingSampler() : mixed

hasTraceIdRatioBased()

public hasTraceIdRatioBased() : mixed

setConstantSampler()

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

public setConstantSampler(ConstantSampler $var) : $this
Parameters
$var : ConstantSampler
Return values
$this

setMaxNumberOfAttributes()

The global default max number of attributes per span.

public setMaxNumberOfAttributes(int|string $var) : $this

Generated from protobuf field int64 max_number_of_attributes = 4;

Parameters
$var : int|string
Return values
$this

The global default max number of attributes per span.

public setMaxNumberOfAttributesPerLink(int|string $var) : $this

Generated from protobuf field int64 max_number_of_attributes_per_link = 8;

Parameters
$var : int|string
Return values
$this

setMaxNumberOfAttributesPerTimedEvent()

The global default max number of attributes per timed event.

public setMaxNumberOfAttributesPerTimedEvent(int|string $var) : $this

Generated from protobuf field int64 max_number_of_attributes_per_timed_event = 6;

Parameters
$var : int|string
Return values
$this

The global default max number of link entries per span.

public setMaxNumberOfLinks(int|string $var) : $this

Generated from protobuf field int64 max_number_of_links = 7;

Parameters
$var : int|string
Return values
$this

setMaxNumberOfTimedEvents()

The global default max number of annotation events per span.

public setMaxNumberOfTimedEvents(int|string $var) : $this

Generated from protobuf field int64 max_number_of_timed_events = 5;

Parameters
$var : int|string
Return values
$this

setRateLimitingSampler()

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.RateLimitingSampler rate_limiting_sampler = 3;</code>

public setRateLimitingSampler(RateLimitingSampler $var) : $this
Parameters
$var : RateLimitingSampler
Return values
$this

setTraceIdRatioBased()

Generated from protobuf field <code>.opentelemetry.proto.trace.v1.TraceIdRatioBased trace_id_ratio_based = 2;</code>

public setTraceIdRatioBased(TraceIdRatioBased $var) : $this
Parameters
$var : TraceIdRatioBased
Return values
$this

        
On this page

Search results