@myrotvorets/opentelemetry-plugin-knex
Version:
OpenTelemetry knex automatic instrumentation package
11 lines (10 loc) • 355 B
TypeScript
import { Attributes } from '@opentelemetry/api';
import type { Knex } from 'knex';
export declare class ConnectionAttributes {
private readonly attributes;
constructor(connection: Readonly<Knex.StaticConnectionConfig>);
getAttributes(): Readonly<Attributes>;
private parseConnection;
private setDbName;
private setNetAttributes;
}