Skip to content

Releases: cap-js/telemetry

v1.1.2

10 Dec 17:01
50e405e
Compare
Choose a tag to compare

Fixed

  • ConsoleSpanExporter: cds.context may be undefined in local scripting scenarios

v1.1.1

28 Nov 22:39
86474f8
Compare
Choose a tag to compare

Fixed

  • Use attribute url.path (with fallback to deprecated http.target) for sampling decision

v1.1.0

27 Nov 11:11
062151d
Compare
Choose a tag to compare

Added

  • Predefined kind telemetry-to-otlp that creates exporters based on OTLP exporter configuration via environment variables
  • Experimental!: Propagate W3C trace context to SAP HANA via session context SAP_PASSPORT
    • Enable via environment variable SAP_PASSPORT
  • If @opentelemetry/instrumentation-runtime-node is in the project's dependencies but not in cds.env.requires.telemetry.instrumentations, it is registered automatically
    • Disable via cds.env.requires.telemetry.instrumentations.instrumentation-runtime-node = false

Changed

  • Base config moved to new cds.requires.kinds.telemetry for improved config merging

Fixed

  • Built-in ConsoleMetricExporter uses correct attribute name process.cpu.state while exporting host metrics
  • Exporting traces to the console in the presence of a traceparent header

v1.0.1

09 Aug 22:57
286d24b
Compare
Choose a tag to compare

Fixed

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

v1.0.0

08 Aug 12:43
f4c6418
Compare
Choose a tag to compare

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

v0.2.3

17 Jun 13:09
c46bddb
Compare
Choose a tag to compare

Fixed

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

v0.2.2

03 Jun 08:44
c043632
Compare
Choose a tag to compare

Fixed

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

v0.2.1

23 May 21:10
219896d
Compare
Choose a tag to compare

Fixed

  • Avoid credentials validation during cds build

v0.2.0

17 May 20:09
c4db28e
Compare
Choose a tag to compare

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)

v0.1.0

23 Mar 11:39
16cebbb
Compare
Choose a tag to compare

Added

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