OpenTelemetry PHP

OtlpBench
in package

TODO https://github.com/open-telemetry/opentelemetry-go/blob/051227c9edded2c772a07a4d4e60dda27c3e4b20/sdk/trace/benchmark_test.go

Table of Contents

Constants

BATCH  = 'batch'
JSON  = 'application/json'
PROTOBUF  = 'application/x-protobuf'
SIMPLE  = 'simple'

Properties

$resource  : ResourceInfo
$sampler  : SamplerInterface
$tracer  : TracerInterface

Methods

__construct()  : mixed
benchCreateSpans()  : void
benchCreateSpansWithMultipleEvents()  : void
benchCreateSpansWithStackTrace()  : void
benchExportSpans_Oltp()  : void
provideEventCounts()  : Generator
provideOtlp()  : Generator
setUpNoExporter()  : void
setUpOtlpExporter()  : void
createTransport()  : TransportInterface

Constants

JSON

private mixed JSON = 'application/json'

PROTOBUF

private mixed PROTOBUF = 'application/x-protobuf'

Properties

Methods

benchCreateSpans()

public benchCreateSpans() : void
Tags
BeforeMethods

("setUpNoExporter")

Revs

(1000)

Iterations

(10)

OutputTimeUnit

("microseconds")

benchCreateSpansWithMultipleEvents()

public benchCreateSpansWithMultipleEvents(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>
Tags
BeforeMethods

("setUpNoExporter")

ParamProviders

("provideEventCounts")

Revs

(1000)

Iterations

(5)

OutputTimeUnit

("microseconds")

benchCreateSpansWithStackTrace()

public benchCreateSpansWithStackTrace() : void
Tags
BeforeMethods

("setUpNoExporter")

Revs

(1000)

Iterations

(10)

OutputTimeUnit

("microseconds")

benchExportSpans_Oltp()

public benchExportSpans_Oltp() : void
Tags
BeforeMethods

("setUpOtlpExporter")

ParamProviders

("provideOtlp")

Revs

({100, 1000})

Iterations

(10)

OutputTimeUnit

("microseconds")

provideEventCounts()

public provideEventCounts() : Generator
Return values
Generator

provideOtlp()

public provideOtlp() : Generator
Return values
Generator

setUpNoExporter()

public setUpNoExporter() : void

setUpOtlpExporter()

public setUpOtlpExporter(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>
Tags
psalm-suppress

ArgumentTypeCoercion


        
On this page

Search results