Stone.js API
    Preparing search index...
    • Class decorator: measure what the application actually does, declaratively.

      @Telemetry() registers the telemetry service provider (so constructor ({ telemetry }) works anywhere) and the kernel middleware that traces every event through the pipeline. It is on by default once enabled; pass enabled: false to keep the wiring and mute the collection, which is what a test run usually wants.

      The declarative half of the pair; telemetryBlueprint handed to defineStoneApp is the imperative one.

      Type Parameters

      • T extends ClassType = ClassType

      Parameters

      Returns ClassDecorator

      A class decorator.

      import { Telemetry } from '@stone-js/telemetry'

      @Telemetry({ serviceName: 'tasks-api' })
      @StoneApp({ name: 'my-app' })
      export class Application {}