0.1.4 • Published 5 months ago
opentelemetry-cds v0.1.4
OpenTelemetry for CDS
OpenTelemetry
support forCDS nodejs runtime
How to use it
install this package firstly
npm i -S opentelemetry-cds
start cds runtime with
opentelemetry-cds
module
{
"scripts": {
"start": "otlp-cds-serve"
}
}
Instruments
- EventHandlers
- EventContext/Event/Request
- register (on/once/before)
- emit
- OData Adapter
process
execute
createOdataService
- CDS Compiler
- edm/edmx/edm.all/edmx.all
- Messaging
- cds-nats
- rfc
- cds.MessagingService
- cds-nats
- Database
- sqlite3 (
Database
.run
/prepare
/all
/get
) - hdb
Client
.exec
/prepare
/commit
/rollback
- sqlite3 (
- third-party instrumentations
- express
- net
- dns
- mysql
- http
Features
- instrumentations
- cloud foundry support
- k8s support
- environment variables
otlp-cds-serve
command
Configuration
opentelemetry-cds is using
opentelemetry-http
protocol as exporter, just ref @opentelemetry/exporter-trace-otlp-http document to configure it by environment
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
Local Setup
view the trace in a local jaeger server
- Download Jaeger Binary for your OS
- Extract it
- Run it with otlp enabled flag
- Start your cds application with
npx otlp-cds-serve
./jaeger-all-in-one --collector.otlp.enabled
Screenshots
batch operations
cross service call
async message broker