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

Breadcrumb

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

function InstrumentationTrait::init

This method will be called from the API when the instrumentation has been activated (via activate()). Here you can put any bootstrapping code needed by the instrumentation. If not needed simply implement a method which returns TRUE.

File

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

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 abstract function init() : bool;

API Navigation

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