opentelemetry-cds
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

OpenTelemetry for CDS

npm GitHub top language node-test

OpenTelemetry support for CDS 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

  • [x] EventHandlers
  • [x] EventContext/Event/Request
    • [x] register (on/once/before)
    • [x] emit
  • [x] OData Adapter
    • [x] process
    • [x] execute
    • [x] createOdataService
  • [x] CDS Compiler
    • [x] edm/edmx/edm.all/edmx.all
  • [ ] Messaging
    • [x] cds-nats
      • [ ] rfc
    • [ ] cds.MessagingService
  • [x] Database
    • [x] sqlite3 (Database.run/prepare/all/get)
    • [x] hdb Client.exec/prepare/commit/rollback
  • [x] third-party instrumentations
    • [x] express
    • [x] net
    • [x] dns
    • [x] mysql
    • [x] http

Features

  • [x] instrumentations
  • [ ] cloud foundry support
  • [ ] k8s support
  • [ ] environment variables
  • [x] 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

  1. Download Jaeger Binary for your OS
  2. Extract it
  3. Run it with otlp enabled flag
  4. 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

CHANGELOG

LICENSE

Package Sidebar

Install

npm i opentelemetry-cds

Weekly Downloads

7

Version

0.1.4

License

Apache-2.0

Unpacked Size

358 kB

Total Files

66

Last publish

Collaborators

  • suntao