1.3.0 • Published 3 months ago

opentelemetry-plugin-better-sqlite3 v1.3.0

Weekly downloads
11
License
MIT
Repository
github
Last release
3 months ago

opentelemetry-plugin-better-sqlite3

OpenTelemetry better-sqlite3 automatic instrumentation package

Usage

import opentelemetry from '@opentelemetry/api';
import { NodeTracerProvider } from '@opentelemetry/node';

// Add span processors
import { SimpleSpanProcessor } from '@opentelemetry/tracing';

// Whichever importer you like
import { ZipkinExporter } from '@opentelemetry/exporter-zipkin';

const provider = new NodeTracerProvider({
    plugins: {
        'better-sqlite3': {
            path: 'opentelemetry-plugin-better-sqlite3',
        },
        // Add other plugins as needed
        http: {},
        https: {},
    },
});

// Set up exporters and span processors
const zipkinExporter = new ZipkinExporter({
    url: 'http://127.0.0.1:9411/api/v2/spans',
    serviceName: 'sample-service',
});

provider.addSpanProcessor(new SimpleSpanProcessor(zipkinExporter));

provider.register();
1.3.0

3 months ago

1.2.0

4 months ago

1.1.0

6 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.9.1

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago