Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 14 Feb 09:47
· 69 commits to main since this release
cea5cb7

Added

  • Improved support for tracing messaging services and cds.spawn
  • Support for adding custom spans to trace hierarchy via tracer.startActiveSpan()
  • Trace attribute db.client.response.returned_rows for queries via cds.ql
  • Option to pass custom config to span processor via cds.requires.telemetry.tracing.processor.config
  • Support for loading instrumentation hooks via path relative to cds.root.
    • The respective module must export either a function or, for bundling purposes, an object with a function named after the respective hook.
    • Example based on @opentelemetry/instrumentation-http:
      "instrumentations": {
        "http": {
          "config": {
            "ignoreIncomingRequestHook": "./lib/MyIgnoreIncomingRequestHook.js"
          }
        }
      }
  • Support for ignoring incoming requests that match a certain base path via cds.requires.telemetry.tracing.sampler.ignoreIncomingPaths = [] (beta)
  • Experimental!: Trace HANA interaction via @cap-js/hana's promisification of the driver API for increased accuracy
    • Enable via config cds.requires.telemetry.tracing._hana_prom
    • Requires @cap-js/hana^1.7.0
  • Experimental!: Intercept and export application logs (cf. cds.log()) via OpenTelemetry
    • Enable by adding section logging to cds.requires.telemetry as follows (using grpc as an example):
      "logging": {
        "exporter": {
          "module": "@opentelemetry/exporter-logs-otlp-grpc",
          "class": "OTLPLogExporter"
        }
      }
    • Requires additional dependencies @opentelemetry/api-logs, @opentelemetry/sdk-logs, and the configured exporter module (cds.requires.telemetry.logging.module)

Changed

  • Default config ignoreIncomingPaths: ['/health'] moved from cds.requires.telemetry.instrumentations.http.config to cds.requires.telemetry.tracing.sampler

Fixed

  • User-provided instances of SAP Cloud Logging should have a tag "cloud-logging" (not a name matching "cloud-logging")

Removed

  • Internal cds._telemetry