@sentry/node 10.5.0 → 10.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +9 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/integrations/tracing/anthropic-ai/index.js +79 -0
- package/build/cjs/integrations/tracing/anthropic-ai/index.js.map +1 -0
- package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js +109 -0
- package/build/cjs/integrations/tracing/anthropic-ai/instrumentation.js.map +1 -0
- package/build/cjs/integrations/tracing/fastify/index.js +5 -4
- package/build/cjs/integrations/tracing/fastify/index.js.map +1 -1
- package/build/cjs/integrations/tracing/index.js +3 -0
- package/build/cjs/integrations/tracing/index.js.map +1 -1
- package/build/cjs/integrations/tracing/redis.js +2 -2
- package/build/cjs/integrations/tracing/redis.js.map +1 -1
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js +89 -3
- package/build/cjs/integrations/tracing/vercelai/instrumentation.js.map +1 -1
- package/build/cjs/sdk/initOtel.js +5 -1
- package/build/cjs/sdk/initOtel.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/integrations/tracing/anthropic-ai/index.js +76 -0
- package/build/esm/integrations/tracing/anthropic-ai/index.js.map +1 -0
- package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js +107 -0
- package/build/esm/integrations/tracing/anthropic-ai/instrumentation.js.map +1 -0
- package/build/esm/integrations/tracing/fastify/index.js +5 -4
- package/build/esm/integrations/tracing/fastify/index.js.map +1 -1
- package/build/esm/integrations/tracing/index.js +3 -0
- package/build/esm/integrations/tracing/index.js.map +1 -1
- package/build/esm/integrations/tracing/redis.js +2 -2
- package/build/esm/integrations/tracing/redis.js.map +1 -1
- package/build/esm/integrations/tracing/vercelai/instrumentation.js +90 -4
- package/build/esm/integrations/tracing/vercelai/instrumentation.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/esm/sdk/initOtel.js +5 -1
- package/build/esm/sdk/initOtel.js.map +1 -1
- package/build/types/index.d.ts +1 -0
- package/build/types/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts +60 -0
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts +20 -0
- package/build/types/integrations/tracing/anthropic-ai/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/fastify/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/hono/index.d.ts +22 -0
- package/build/types/integrations/tracing/hono/index.d.ts.map +1 -0
- package/build/types/integrations/tracing/hono/instrumentation.d.ts +28 -0
- package/build/types/integrations/tracing/hono/instrumentation.d.ts.map +1 -0
- package/build/types/integrations/tracing/hono/types.d.ts +33 -0
- package/build/types/integrations/tracing/hono/types.d.ts.map +1 -0
- package/build/types/integrations/tracing/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/instrumentation.d.ts.map +1 -1
- package/build/types/sdk/initOtel.d.ts.map +1 -1
- package/build/types-ts3.8/index.d.ts +1 -0
- package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +60 -0
- package/build/types-ts3.8/integrations/tracing/anthropic-ai/instrumentation.d.ts +20 -0
- package/build/types-ts3.8/integrations/tracing/hono/index.d.ts +22 -0
- package/build/types-ts3.8/integrations/tracing/hono/instrumentation.d.ts +28 -0
- package/build/types-ts3.8/integrations/tracing/hono/types.d.ts +33 -0
- package/package.json +8 -8
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
|
+
/**
|
|
3
|
+
* Hono instrumentation for OpenTelemetry
|
|
4
|
+
*/
|
|
5
|
+
export declare class HonoInstrumentation extends InstrumentationBase {
|
|
6
|
+
constructor();
|
|
7
|
+
/**
|
|
8
|
+
* Initialize the instrumentation.
|
|
9
|
+
*/
|
|
10
|
+
init(): InstrumentationNodeModuleDefinition[];
|
|
11
|
+
/**
|
|
12
|
+
* Patches the module exports to instrument Hono.
|
|
13
|
+
*/
|
|
14
|
+
private _patch;
|
|
15
|
+
/**
|
|
16
|
+
* Patches the route handler to instrument it.
|
|
17
|
+
*/
|
|
18
|
+
private _patchHandler;
|
|
19
|
+
/**
|
|
20
|
+
* Patches the 'on' handler to instrument it.
|
|
21
|
+
*/
|
|
22
|
+
private _patchOnHandler;
|
|
23
|
+
/**
|
|
24
|
+
* Patches the middleware handler to instrument it.
|
|
25
|
+
*/
|
|
26
|
+
private _patchMiddlewareHandler;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type HonoRequest = {
|
|
2
|
+
path: string;
|
|
3
|
+
};
|
|
4
|
+
export type Context = {
|
|
5
|
+
req: HonoRequest;
|
|
6
|
+
};
|
|
7
|
+
export type Next = () => Promise<void>;
|
|
8
|
+
export type Handler = (c: Context, next: Next) => Promise<Response> | Response;
|
|
9
|
+
export type MiddlewareHandler = (c: Context, next: Next) => Promise<Response | void> | Response | void;
|
|
10
|
+
export type HandlerInterface = {
|
|
11
|
+
(...handlers: (Handler | MiddlewareHandler)[]): HonoInstance;
|
|
12
|
+
(path: string, ...handlers: (Handler | MiddlewareHandler)[]): HonoInstance;
|
|
13
|
+
};
|
|
14
|
+
export type OnHandlerInterface = {
|
|
15
|
+
(method: string | string[], path: string | string[], ...handlers: (Handler | MiddlewareHandler)[]): HonoInstance;
|
|
16
|
+
};
|
|
17
|
+
export type MiddlewareHandlerInterface = {
|
|
18
|
+
(...handlers: MiddlewareHandler[]): HonoInstance;
|
|
19
|
+
(path: string, ...handlers: MiddlewareHandler[]): HonoInstance;
|
|
20
|
+
};
|
|
21
|
+
export interface HonoInstance {
|
|
22
|
+
get: HandlerInterface;
|
|
23
|
+
post: HandlerInterface;
|
|
24
|
+
put: HandlerInterface;
|
|
25
|
+
delete: HandlerInterface;
|
|
26
|
+
options: HandlerInterface;
|
|
27
|
+
patch: HandlerInterface;
|
|
28
|
+
all: HandlerInterface;
|
|
29
|
+
on: OnHandlerInterface;
|
|
30
|
+
use: MiddlewareHandlerInterface;
|
|
31
|
+
}
|
|
32
|
+
export type Hono = new (...args: unknown[]) => HonoInstance;
|
|
33
|
+
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.7.0",
|
|
4
4
|
"description": "Sentry Node SDK using OpenTelemetry for performance instrumentation",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@opentelemetry/instrumentation": "^0.203.0",
|
|
72
72
|
"@opentelemetry/instrumentation-amqplib": "0.50.0",
|
|
73
73
|
"@opentelemetry/instrumentation-connect": "0.47.0",
|
|
74
|
-
"@opentelemetry/instrumentation-dataloader": "0.21.
|
|
74
|
+
"@opentelemetry/instrumentation-dataloader": "0.21.1",
|
|
75
75
|
"@opentelemetry/instrumentation-express": "0.52.0",
|
|
76
76
|
"@opentelemetry/instrumentation-fs": "0.23.0",
|
|
77
77
|
"@opentelemetry/instrumentation-generic-pool": "0.47.0",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"@opentelemetry/instrumentation-hapi": "0.50.0",
|
|
80
80
|
"@opentelemetry/instrumentation-http": "0.203.0",
|
|
81
81
|
"@opentelemetry/instrumentation-ioredis": "0.51.0",
|
|
82
|
-
"@opentelemetry/instrumentation-kafkajs": "0.
|
|
82
|
+
"@opentelemetry/instrumentation-kafkajs": "0.13.0",
|
|
83
83
|
"@opentelemetry/instrumentation-knex": "0.48.0",
|
|
84
84
|
"@opentelemetry/instrumentation-koa": "0.51.0",
|
|
85
85
|
"@opentelemetry/instrumentation-lru-memoizer": "0.48.0",
|
|
86
86
|
"@opentelemetry/instrumentation-mongodb": "0.56.0",
|
|
87
87
|
"@opentelemetry/instrumentation-mongoose": "0.50.0",
|
|
88
88
|
"@opentelemetry/instrumentation-mysql": "0.49.0",
|
|
89
|
-
"@opentelemetry/instrumentation-mysql2": "0.
|
|
89
|
+
"@opentelemetry/instrumentation-mysql2": "0.50.0",
|
|
90
90
|
"@opentelemetry/instrumentation-pg": "0.55.0",
|
|
91
91
|
"@opentelemetry/instrumentation-redis": "0.51.0",
|
|
92
92
|
"@opentelemetry/instrumentation-tedious": "0.22.0",
|
|
@@ -94,10 +94,10 @@
|
|
|
94
94
|
"@opentelemetry/resources": "^2.0.0",
|
|
95
95
|
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
|
96
96
|
"@opentelemetry/semantic-conventions": "^1.34.0",
|
|
97
|
-
"@prisma/instrumentation": "6.
|
|
98
|
-
"@sentry/core": "10.
|
|
99
|
-
"@sentry/node-core": "10.
|
|
100
|
-
"@sentry/opentelemetry": "10.
|
|
97
|
+
"@prisma/instrumentation": "6.14.0",
|
|
98
|
+
"@sentry/core": "10.7.0",
|
|
99
|
+
"@sentry/node-core": "10.7.0",
|
|
100
|
+
"@sentry/opentelemetry": "10.7.0",
|
|
101
101
|
"import-in-the-middle": "^1.14.2",
|
|
102
102
|
"minimatch": "^9.0.0"
|
|
103
103
|
},
|