ObservabilityConfig
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Properties
- $enabled : bool
- $exporterEndpoint : string|null
- $exporterProtocol : string
- $logsEnabled : bool
- $metricsEnabled : bool
- $resourceAttributes : array<string|int, mixed>
- $sampler : string
- $samplerArg : float|null
- $serviceName : string
- $tracesEnabled : bool
Methods
- __construct() : mixed
- disabled() : self
- enabled() : self
- fromEnv() : self
- withEnabled() : self
- withExporterEndpoint() : self
- withSampler() : self
- withServiceName() : self
Properties
$enabled
public
bool
$enabled
$exporterEndpoint
public
string|null
$exporterEndpoint
$exporterProtocol
public
string
$exporterProtocol
$logsEnabled
public
bool
$logsEnabled
$metricsEnabled
public
bool
$metricsEnabled
$resourceAttributes
public
array<string|int, mixed>
$resourceAttributes
$sampler
public
string
$sampler
$samplerArg
public
float|null
$samplerArg
$serviceName
public
string
$serviceName
$tracesEnabled
public
bool
$tracesEnabled
Methods
__construct()
public
__construct(bool $enabled, string $serviceName, string|null $exporterEndpoint, string $exporterProtocol, string $sampler, float|null $samplerArg, bool $tracesEnabled, bool $metricsEnabled, bool $logsEnabled, array<string, string> $resourceAttributes) : mixed
Parameters
- $enabled : bool
- $serviceName : string
- $exporterEndpoint : string|null
- $exporterProtocol : string
- $sampler : string
- $samplerArg : float|null
- $tracesEnabled : bool
- $metricsEnabled : bool
- $logsEnabled : bool
- $resourceAttributes : array<string, string>
disabled()
public
static disabled() : self
Return values
selfenabled()
public
static enabled(string $serviceName) : self
Parameters
- $serviceName : string
Return values
selffromEnv()
public
static fromEnv(array<string, string> $env) : self
Parameters
- $env : array<string, string>
Return values
selfwithEnabled()
public
withEnabled(bool $enabled) : self
Parameters
- $enabled : bool
Return values
selfwithExporterEndpoint()
public
withExporterEndpoint(string|null $exporterEndpoint) : self
Parameters
- $exporterEndpoint : string|null
Return values
selfwithSampler()
public
withSampler(string $sampler, float|null $samplerArg) : self
Parameters
- $sampler : string
- $samplerArg : float|null
Return values
selfwithServiceName()
public
withServiceName(string $serviceName) : self
Parameters
- $serviceName : string