Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Service.php

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

... See full list

File

vendor/open-telemetry/sdk/Resource/Detectors/Service.php, line 16

Namespace

OpenTelemetry\SDK\Resource\Detectors
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal