class Service
Hierarchy
- class \OpenTelemetry\SDK\Resource\Detectors\Service implements \OpenTelemetry\SDK\Resource\ResourceDetectorInterface
Expanded class hierarchy of Service
See also
https://github.com/open-telemetry/semantic-conventions/tree/main/docs/r…
17 string references to 'Service'
- Container::resolveServicesAndParameters in core/
lib/ Drupal/ Component/ DependencyInjection/ Container.php - Resolves arguments that represent services or variables to the real values.
- ContainerLoader::supports in vendor/
symfony/ routing/ Loader/ ContainerLoader.php - DrupalServiceDynamicReturnTypeExtension::isStaticMethodSupported in vendor/
mglaman/ phpstan-drupal/ src/ Type/ DrupalServiceDynamicReturnTypeExtension.php - ExpressionLanguageProvider::getFunctions in vendor/
symfony/ dependency-injection/ ExpressionLanguageProvider.php - LazyClosure::__get in vendor/
symfony/ dependency-injection/ Argument/ LazyClosure.php
File
-
vendor/
open-telemetry/ sdk/ Resource/ Detectors/ Service.php, line 16
Namespace
OpenTelemetry\SDK\Resource\DetectorsView source
final class Service implements ResourceDetectorInterface {
public function getResource() : ResourceInfo {
static $serviceInstanceId;
$serviceInstanceId ??= Uuid::uuid4()->toString();
$attributes = [
ResourceAttributes::SERVICE_INSTANCE_ID => $serviceInstanceId,
];
return ResourceInfo::create(Attributes::create($attributes), ResourceAttributes::SCHEMA_URL);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Service::getResource | public | function | Overrides ResourceDetectorInterface::getResource |