Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myrotvorets/opentelemetry-plugin-knex
OpenTelemetry knex automatic instrumentation package
https://github.com/myrotvorets/opentelemetry-plugin-knex
instrumentation knex knexjs opentelemetry opentelemetry-instrumentation opentelemetry-plugin
Last synced: 4 days ago
JSON representation
OpenTelemetry knex automatic instrumentation package
- Host: GitHub
- URL: https://github.com/myrotvorets/opentelemetry-plugin-knex
- Owner: myrotvorets
- License: mit
- Created: 2020-10-14T23:51:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T03:23:29.000Z (8 days ago)
- Last Synced: 2024-12-16T20:36:09.257Z (7 days ago)
- Topics: instrumentation, knex, knexjs, opentelemetry, opentelemetry-instrumentation, opentelemetry-plugin
- Language: TypeScript
- Homepage:
- Size: 3.47 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opentelemetry-plugin-knex
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=myrotvorets_opentelemetry-plugin-knex&metric=alert_status)](https://sonarcloud.io/dashboard?id=myrotvorets_opentelemetry-plugin-knex)
[![Build and Test](https://github.com/myrotvorets/opentelemetry-plugin-knex/actions/workflows/build.yml/badge.svg)](https://github.com/myrotvorets/opentelemetry-plugin-knex/actions/workflows/build.yml)OpenTelemetry knex automatic instrumentation package
## Usage
```typescript
import { NodeSDK } from '@opentelemetry/sdk-node';
import { KnexInstrumentation } from '@myrotvorets/opentelemetry-plugin-knex';
import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';const sdk = new NodeSDK({
serviceName: 'example',
instrumentations: [new HttpInstrumentation(), new KnexInstrumentation()],
});sdk.start();
```See the [`example`](example) directory for a working example.