Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"access": "public"
},
"dependencies": {
"@fastify/otel": "https://codeload.github.com/getsentry/fastify-otel/tar.gz/ae3088d65e286bdc94ac5d722573537d6a6671bb",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/context-async-hooks": "^1.30.1",
"@opentelemetry/core": "^1.30.1",
Expand Down Expand Up @@ -98,7 +97,8 @@
"@prisma/instrumentation": "6.7.0",
"@sentry/core": "9.20.0",
"@sentry/opentelemetry": "9.20.0",
"import-in-the-middle": "^1.13.1"
"import-in-the-middle": "^1.13.1",
"minimatch": "^9.0.0"
},
"devDependencies": {
"@types/node": "^18.19.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
env: {
node: true,
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable @typescript-eslint/explicit-member-accessibility */
/// <reference types="node" />

import type { InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { InstrumentationBase } from '@opentelemetry/instrumentation';
import type { FastifyPluginCallback } from 'fastify';
import type { FastifyOtelInstrumentationOpts, FastifyOtelOptions, FastifyOtelRequestContext } from './types';

declare module 'fastify' {
interface FastifyRequest {
opentelemetry(): FastifyOtelRequestContext;
}
}

declare class FastifyOtelInstrumentation<
Config extends FastifyOtelInstrumentationOpts = FastifyOtelInstrumentationOpts,
> extends InstrumentationBase<Config> {
servername: string;
constructor(config?: FastifyOtelInstrumentationOpts);
init(): InstrumentationNodeModuleDefinition[];
plugin(): FastifyPluginCallback<FastifyOtelOptions>;
}

declare namespace exported {
export type { FastifyOtelInstrumentationOpts };
export { FastifyOtelInstrumentation };
}

export = exported;
Loading
Loading