Skip to content

Commit 9a2f06a

Browse files
committed
1 parent b2cd322 commit 9a2f06a

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

plugins/node/opentelemetry-instrumentation-aws-lambda/src/instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ const headerGetter: TextMapGetter<APIGatewayProxyEventHeaders> = {
7171
export const lambdaMaxInitInMilliseconds = 10_000;
7272

7373
export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstrumentationConfig> {
74-
private _traceForceFlusher?: () => Promise<void>;
75-
private _metricForceFlusher?: () => Promise<void>;
74+
private declare _traceForceFlusher?: () => Promise<void>;
75+
private declare _metricForceFlusher?: () => Promise<void>;
7676

7777
constructor(config: AwsLambdaInstrumentationConfig = {}) {
7878
super(PACKAGE_NAME, PACKAGE_VERSION, config);

plugins/node/opentelemetry-instrumentation-mongodb/src/instrumentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ const DEFAULT_CONFIG: MongoDBInstrumentationConfig = {
6161

6262
/** mongodb instrumentation plugin for OpenTelemetry */
6363
export class MongoDBInstrumentation extends InstrumentationBase<MongoDBInstrumentationConfig> {
64-
private _connectionsUsage!: UpDownCounter;
65-
private _poolName!: string;
64+
private declare _connectionsUsage: UpDownCounter;
65+
private declare _poolName: string;
6666

6767
constructor(config: MongoDBInstrumentationConfig = {}) {
6868
super(PACKAGE_NAME, PACKAGE_VERSION, { ...DEFAULT_CONFIG, ...config });

plugins/node/opentelemetry-instrumentation-mysql/src/instrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class MySQLInstrumentation extends InstrumentationBase<MySQLInstrumentati
5555
static readonly COMMON_ATTRIBUTES = {
5656
[SEMATTRS_DB_SYSTEM]: DBSYSTEMVALUES_MYSQL,
5757
};
58-
private _connectionsUsage!: UpDownCounter;
58+
private declare _connectionsUsage: UpDownCounter;
5959

6060
constructor(config: MySQLInstrumentationConfig = {}) {
6161
super(PACKAGE_NAME, PACKAGE_VERSION, config);

plugins/node/opentelemetry-instrumentation-pg/src/instrumentation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ function extractModuleExports(module: any) {
7575
}
7676

7777
export class PgInstrumentation extends InstrumentationBase<PgInstrumentationConfig> {
78-
private _operationDuration!: Histogram;
79-
private _connectionsCount!: UpDownCounter;
80-
private _connectionPendingRequests!: UpDownCounter;
78+
private declare _operationDuration: Histogram;
79+
private declare _connectionsCount: UpDownCounter;
80+
private declare _connectionPendingRequests: UpDownCounter;
8181
// Pool events connect, acquire, release and remove can be called
8282
// multiple times without changing the values of total, idle and waiting
8383
// connections. The _connectionsCounter is used to keep track of latest

plugins/node/opentelemetry-instrumentation-pino/src/log-sending-utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ interface OTelPinoStreamOptions {
131131
* The event arguments are: `logLine: string`, `err: string | Error`.
132132
*/
133133
export class OTelPinoStream extends Writable {
134-
private _otelLogger: Logger;
135-
private _messageKey: string;
136-
private _levels;
137-
private _otelTimestampFromTime;
134+
private declare _otelLogger: Logger;
135+
private declare _messageKey: string;
136+
private declare _levels;
137+
private declare _otelTimestampFromTime;
138138

139139
constructor(options: OTelPinoStreamOptions) {
140140
super();

0 commit comments

Comments
 (0)