Adding Custom Metrics to a CAP application using cap-js/telementry plugin and SAP Cloud Logging
Walks through adding a custom OpenTelemetry counter metric to a CAP application on top of @cap-js/telemetry@cap-js/telemetryAutomatic OpenTelemetry instrumentation for CAP Node.js services and their database calls, exported as traces and metrics to the console, SAP Cloud Logging, Dynatrace, Jaeger or an OTLP endpoint.sap official, cap's built-in database-pool metrics, incrementing and decrementing it from a service handler on CREATE and UPDATE of high-urgency incidents. Shows the resulting metric in SAP Cloud LoggingSAP Cloud LoggingAn instance-based observability service built on OpenSearch that stores and analyses logs, metrics and traces from Cloud Foundry, Kyma, Kubernetes and other runtime environments.sap official, btp's Discover and Visualize screens, building a custom visualisation from the exported metrics data.
Where it sits
Who is behind it
Properties
About this work
For telemetry
Building onedevatlas: the idea, the back-and-forth with AI, the wrong turns, and an orb who lost his permanent spot in the atlas.
Details
Graph
Source
History
- explains → applies_to on capability:telemetry (cap, btp)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
- Entered the atlasDiscovered via SAP Community · kyma-tag.
For your agent
- Ref
content:adding-custom-metrics-to-a-cap-application-using-cap-js-telementry-plugin-and-sa- JSON
- /content/adding-custom-metrics-to-a-cap-application-using-cap-js-telementry-plugin-and-sa.json
- MCP
- Connecting an agent