<?php

declare(strict_types=1);

namespace Drupal\native_observability\Event;

/**
 * Defines events dispatched by the Native Observability module.
 */
final class NativeObservabilityEvents {

  /**
   * Dispatched when all traces are deleted from storage.
   *
   * Submodules can react to this event to perform cleanup operations
   * such as removing related spans, metrics, or derived data.
   */
  public const TRACES_DELETED = 'native_observability.traces_deleted';

  /**
   * Dispatched after a trace has been recorded.
   *
   * Submodules can react to this event to update metrics, counters,
   * aggregations, or derived observability data.
   */
  public const TRACE_RECORDED = 'native_observability.trace_recorded';

}
