telemetry

CDS plugin providing observability features, incl. automatic OpenTelemetry instrumentation.

APACHE-2.0 License

Downloads
6.5K
Stars
7
Committers
10

Bot releases are visible (Hide)

telemetry - v1.0.1 Latest Release

Published by github-actions[bot] 2 months ago

Fixed

  • Explicitly pass own providers when registering instrumentations (the global providers may be influenced by, for example, Dynatrace OneAgent)
telemetry - v1.0.0

Published by github-actions[bot] 2 months ago

Added

  • Support for tracing native db statements (i.e., cds.run('SELECT * FROM DUMMY'))
  • Support for SAP Cloud Logging credentials via user-provided service
  • Support for adding @opentelemetry/instrumentation-runtime-node
    • npm add @opentelemetry/instrumentation-runtime-node
    • to cds.requires.telemetry.instrumentations, add:
      "instrumentation-runtime-node": {
        "class": "RuntimeNodeInstrumentation",
        "module": "@opentelemetry/instrumentation-runtime-node"
      }
      

Changed

  • Instrumentations are registered after tracing and metrics are set up
  • telemetry-to-dynatrace: Regardless of whether Dynatrace OneAgent is present or not, if dependency @opentelemetry/exporter-trace-otlp-proto is present, @cap-js/telemetry will export the traces via OpenTelemetry.

Fixed

  • Tracing of db statements without active span
telemetry - v0.2.3

Published by github-actions[bot] 4 months ago

Fixed

  • Only startup plugin if invoked for runtime (e.g., via cli cds serve)
telemetry - v0.2.2

Published by github-actions[bot] 5 months ago

Fixed

  • Detect build job started via @sap/cds-dk/bin/cds.js
telemetry - v0.2.1

Published by github-actions[bot] 5 months ago

Fixed

  • Avoid credentials validation during cds build
telemetry - v0.2.0

Published by github-actions[bot] 5 months ago

Added

  • Support for local modules (e.g., exporters) via [...].module = '<path relative to cds.root>'
  • Disable pool metrics via cds.env.requires.telemetry.metrics._db_pool = false (beta)

Fixed

  • Get credentials from cds.env
  • Validate existence of credentials only for configured kind
  • HTTP attributes only for root spans (reduces trace payload size)
telemetry - v0.1.0

Published by github-actions[bot] 7 months ago

Added

  • Support for own, high resolution timestamps
    • Enable via cds.env.requires.telemetry.tracing.hrtime = true
    • Enabled by default in development profile
telemetry - v0.0.5

Published by github-actions[bot] 7 months ago

Added

  • Register span processor also if tracer provider is initialized by a different module
  • Support for so-called Pull Metric Exporter (e.g., @opentelemetry/exporter-prometheus)
  • Tenant-dependent DB attributes

Changed

  • By default, all system.* metrics collected by @opentelemetry/host-metrics are ignored
    • Disable change via environment variable HOST_METRICS_RETAIN_SYSTEM=true
  • Metric exporter's property temporalityPreference always gets defaulted to DELTA
    • Was previously only done for kind telemetry-to-dynatrace
    • Set custom value via cds.env.requires.telemetry.metrics.exporter.config.temporalityPreference

Fixed

  • Identification of first-level spans in built-in ConsoleSpanExporter
telemetry - v0.0.5-alpha.0

Published by github-actions[bot] 8 months ago

Added

  • Register span processor also if tracer provider is initialized by a different module

Changed

  • By default, all system.* metrics collected by @opentelemetry/host-metrics are ignored
    • Disable change via environment variable HOST_METRICS_RETAIN_SYSTEM=true
telemetry - v0.0.4

Published by github-actions[bot] 8 months ago

Added

  • Re-use TracerProvider and MeterProvider that were initialized by a different module (OpenTelemetry only allows one-time initialization)

Fixed

  • NonRecordingSpans are handled correctly
telemetry - v0.0.3

Published by github-actions[bot] 9 months ago

Added

  • Support for exporting traces to Dynatrace via OpenTelemetry exporter (instead of Dynatrace OneAgent)
  • Support for Dynatrace credentials via user-provided service
  • @opentelemetry/host-metrics is automatically fired up, if it is in the project's dependencies
telemetry - v0.0.2

Published by github-actions[bot] 9 months ago

Added

  • Predefined kind for SAP Cloud Logging (telemetry-to-cloud-logging)
  • Built-in ConsoleMetricExporter prints DB pool and other metrics separately
telemetry - v0.0.1

Published by github-actions[bot] 10 months ago

Added

  • Initial release
telemetry - v0.0.1-alpha.1

Published by github-actions[bot] 10 months ago

Added

  • Initial release
telemetry - v0.0.1-alpha.0

Published by github-actions[bot] 10 months ago

Added

  • Initial release