function ArrayAccessGetterSetter::getInstance
Returns a singleton instance of `self` to avoid, multiple runtime allocations.
4 calls to ArrayAccessGetterSetter::getInstance()
- BaggagePropagator::extract in vendor/
open-telemetry/ api/ Baggage/ Propagation/ BaggagePropagator.php - Extracts specific values from the provided carrier into the provided {via an {
- BaggagePropagator::inject in vendor/
open-telemetry/ api/ Baggage/ Propagation/ BaggagePropagator.php - Injects specific values from the provided {via an {
- TraceContextPropagator::extract in vendor/
open-telemetry/ api/ Trace/ Propagation/ TraceContextPropagator.php - Extracts specific values from the provided carrier into the provided {via an {
- TraceContextPropagator::inject in vendor/
open-telemetry/ api/ Trace/ Propagation/ TraceContextPropagator.php - Injects specific values from the provided {via an {
File
-
vendor/
open-telemetry/ context/ Propagation/ ArrayAccessGetterSetter.php, line 29
Class
- ArrayAccessGetterSetter
- Default implementation of {This type is used if no custom getter/setter is provided to {
Namespace
OpenTelemetry\Context\PropagationCode
public static function getInstance() : self {
if (null === self::$instance) {
self::$instance = new self();
}
return self::$instance;
}