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

Breadcrumb

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

function InstrumentationTrait::activate

This method registers and activates the instrumentation with the OpenTelemetry API/SDK and thus the instrumentation will be used to generate telemetry data.

File

vendor/open-telemetry/api/Instrumentation/InstrumentationTrait.php, line 111

Class

InstrumentationTrait
This trait in conjunction with the InstrumentationInterface is meant as a base for instrumentations for the OpenTelemetry API. Instrumentations need to implement the abstract methods of this trait (besides any instrumentation specific code)

Namespace

OpenTelemetry\API\Instrumentation

Code

public function activate() : bool {
    $this->validateImplementation();
    // activate instrumentation with the API. not implemented yet.
    return true;
}

API Navigation

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