@sentry/node 10.56.0 → 10.58.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/integrations/tracing/anthropic-ai/index.js.map +1 -1
- package/build/cjs/integrations/tracing/dataloader/index.js +2 -22
- package/build/cjs/integrations/tracing/dataloader/index.js.map +1 -1
- package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js +93 -120
- package/build/cjs/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/genericPool/index.js +1 -1
- package/build/cjs/integrations/tracing/genericPool/index.js.map +1 -1
- package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js +14 -26
- package/build/cjs/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/google-genai/index.js.map +1 -1
- package/build/cjs/integrations/tracing/langchain/index.js.map +1 -1
- package/build/cjs/integrations/tracing/langgraph/index.js.map +1 -1
- package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js +8 -11
- package/build/cjs/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
- package/build/cjs/integrations/tracing/openai/index.js.map +1 -1
- package/build/cjs/integrations/tracing/postgresjs.js +1 -1
- package/build/cjs/integrations/tracing/postgresjs.js.map +1 -1
- package/build/cjs/integrations/tracing/redis/index.js +1 -1
- package/build/cjs/integrations/tracing/redis/index.js.map +1 -1
- package/build/cjs/integrations/tracing/utils/sql-common.js.map +1 -1
- package/build/esm/integrations/tracing/anthropic-ai/index.js.map +1 -1
- package/build/esm/integrations/tracing/dataloader/index.js +4 -24
- package/build/esm/integrations/tracing/dataloader/index.js.map +1 -1
- package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js +95 -122
- package/build/esm/integrations/tracing/dataloader/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/genericPool/index.js +1 -1
- package/build/esm/integrations/tracing/genericPool/index.js.map +1 -1
- package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js +15 -27
- package/build/esm/integrations/tracing/genericPool/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/google-genai/index.js.map +1 -1
- package/build/esm/integrations/tracing/langchain/index.js.map +1 -1
- package/build/esm/integrations/tracing/langgraph/index.js.map +1 -1
- package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js +8 -11
- package/build/esm/integrations/tracing/lrumemoizer/vendored/instrumentation.js.map +1 -1
- package/build/esm/integrations/tracing/openai/index.js.map +1 -1
- package/build/esm/integrations/tracing/postgresjs.js +1 -1
- package/build/esm/integrations/tracing/postgresjs.js.map +1 -1
- package/build/esm/integrations/tracing/redis/index.js +1 -1
- package/build/esm/integrations/tracing/redis/index.js.map +1 -1
- package/build/esm/integrations/tracing/utils/sql-common.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts +4 -3
- package/build/types/integrations/tracing/anthropic-ai/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts +2 -5
- package/build/types/integrations/tracing/dataloader/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/dataloader/vendored/types.d.ts +20 -8
- package/build/types/integrations/tracing/dataloader/vendored/types.d.ts.map +1 -1
- package/build/types/integrations/tracing/genericPool/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +1 -1
- package/build/types/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts.map +1 -1
- package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts +2 -1
- package/build/types/integrations/tracing/genericPool/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/google-genai/index.d.ts +8 -7
- package/build/types/integrations/tracing/google-genai/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/langchain/index.d.ts +9 -8
- package/build/types/integrations/tracing/langchain/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/langgraph/index.d.ts +4 -3
- package/build/types/integrations/tracing/langgraph/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +2 -2
- package/build/types/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts.map +1 -1
- package/build/types/integrations/tracing/openai/index.d.ts +4 -3
- package/build/types/integrations/tracing/openai/index.d.ts.map +1 -1
- package/build/types/integrations/tracing/postgresjs.d.ts.map +1 -1
- package/build/types/integrations/tracing/utils/sql-common.d.ts +1 -1
- package/build/types/integrations/tracing/utils/sql-common.d.ts.map +1 -1
- package/build/types/integrations/tracing/vercelai/types.d.ts +2 -2
- package/build/types-ts3.8/integrations/tracing/anthropic-ai/index.d.ts +4 -3
- package/build/types-ts3.8/integrations/tracing/dataloader/vendored/instrumentation.d.ts +2 -5
- package/build/types-ts3.8/integrations/tracing/dataloader/vendored/types.d.ts +20 -8
- package/build/types-ts3.8/integrations/tracing/genericPool/vendored/generic-pool-types.d.ts +1 -1
- package/build/types-ts3.8/integrations/tracing/genericPool/vendored/instrumentation.d.ts +2 -1
- package/build/types-ts3.8/integrations/tracing/google-genai/index.d.ts +8 -7
- package/build/types-ts3.8/integrations/tracing/langchain/index.d.ts +9 -8
- package/build/types-ts3.8/integrations/tracing/langgraph/index.d.ts +4 -3
- package/build/types-ts3.8/integrations/tracing/lrumemoizer/vendored/instrumentation.d.ts +2 -2
- package/build/types-ts3.8/integrations/tracing/openai/index.d.ts +4 -3
- package/build/types-ts3.8/integrations/tracing/vercelai/types.d.ts +2 -2
- package/package.json +5 -5
- package/build/types/integrations/tracing/dataloader/vendored/dataloader-types.d.ts +0 -14
- package/build/types/integrations/tracing/dataloader/vendored/dataloader-types.d.ts.map +0 -1
- package/build/types-ts3.8/integrations/tracing/dataloader/vendored/dataloader-types.d.ts +0 -14
|
@@ -38,13 +38,13 @@ export type TelemetrySettings = {
|
|
|
38
38
|
export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
39
39
|
export interface VercelAiOptions {
|
|
40
40
|
/**
|
|
41
|
-
* Enable or disable input recording. Enabled if `
|
|
41
|
+
* Enable or disable input recording. Enabled if `dataCollection.genAI.inputs` (or the deprecated `sendDefaultPii` option) is `true`
|
|
42
42
|
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
|
|
43
43
|
* Integration-level options take precedence over global `dataCollection` config.
|
|
44
44
|
*/
|
|
45
45
|
recordInputs?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* Enable or disable output recording. Enabled if `
|
|
47
|
+
* Enable or disable output recording. Enabled if `dataCollection.genAI.outputs` (or the deprecated `sendDefaultPii` option) is `true`
|
|
48
48
|
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
|
|
49
49
|
* Integration-level options take precedence over global `dataCollection` config.
|
|
50
50
|
*/
|
|
@@ -21,13 +21,14 @@ export declare const instrumentAnthropicAi: ((options?: AnthropicAiOptions | und
|
|
|
21
21
|
*
|
|
22
22
|
* ## Options
|
|
23
23
|
*
|
|
24
|
-
* - `recordInputs`: Whether to record prompt messages (default: follows `
|
|
25
|
-
* - `recordOutputs`: Whether to record response text (default: follows `
|
|
24
|
+
* - `recordInputs`: Whether to record prompt messages (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
|
|
25
|
+
* - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
|
|
26
26
|
*
|
|
27
27
|
* ### Default Behavior
|
|
28
28
|
*
|
|
29
29
|
* By default, the integration will:
|
|
30
|
-
* - Record inputs and outputs based on `
|
|
30
|
+
* - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
|
|
31
|
+
* (or the deprecated `sendDefaultPii` option, for backwards compatibility)
|
|
31
32
|
* - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
|
|
32
33
|
*
|
|
33
34
|
* @example
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
constructor(config?: DataloaderInstrumentationConfig);
|
|
2
|
+
export declare class DataloaderInstrumentation extends InstrumentationBase {
|
|
3
|
+
constructor(config?: {});
|
|
5
4
|
protected init(): InstrumentationNodeModuleDefinition[];
|
|
6
|
-
private shouldCreateSpans;
|
|
7
|
-
private getSpanName;
|
|
8
5
|
private _wrapBatchLoadFn;
|
|
9
6
|
private _getPatchedConstructor;
|
|
10
7
|
private _patchLoad;
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { SpanLink } from '@sentry/core';
|
|
2
|
+
export type BatchLoadFn<K, V> = (keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;
|
|
3
|
+
/** A `DataLoader` instance. */
|
|
4
|
+
export interface DataLoader<K = unknown, V = unknown> {
|
|
5
|
+
_batchLoadFn: BatchLoadFn<K, V>;
|
|
6
|
+
_batch: {
|
|
7
|
+
spanLinks?: SpanLink[];
|
|
8
|
+
} | null;
|
|
9
|
+
load(key: K): Promise<V>;
|
|
10
|
+
loadMany(keys: ArrayLike<K>): Promise<Array<V | Error>>;
|
|
11
|
+
prime(key: K, value: V | Error): this;
|
|
12
|
+
clear(key: K): this;
|
|
13
|
+
clearAll(): this;
|
|
14
|
+
name: string | undefined;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
17
|
+
/** The `DataLoader` class/constructor. */
|
|
18
|
+
export interface DataLoaderConstructor {
|
|
19
|
+
new <K, V>(batchLoadFn: BatchLoadFn<K, V>, options?: any): DataLoader<K, V>;
|
|
20
|
+
prototype: DataLoader<unknown, unknown>;
|
|
9
21
|
}
|
|
10
22
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
|
|
2
|
+
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
3
|
export declare class GenericPoolInstrumentation extends InstrumentationBase {
|
|
3
4
|
private _isDisabled;
|
|
4
5
|
constructor(config?: InstrumentationConfig);
|
|
@@ -21,18 +21,19 @@ export declare const instrumentGoogleGenAI: ((options?: GoogleGenAIOptions | und
|
|
|
21
21
|
*
|
|
22
22
|
* ## Options
|
|
23
23
|
*
|
|
24
|
-
* - `recordInputs`: Whether to record prompt messages (default:
|
|
25
|
-
* - `recordOutputs`: Whether to record response text (default:
|
|
24
|
+
* - `recordInputs`: Whether to record prompt messages (default: follows `dataCollection.genAI.inputs`)
|
|
25
|
+
* - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`)
|
|
26
26
|
*
|
|
27
27
|
* ### Default Behavior
|
|
28
28
|
*
|
|
29
29
|
* By default, the integration will:
|
|
30
|
-
* - Record inputs and outputs
|
|
31
|
-
*
|
|
30
|
+
* - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
|
|
31
|
+
* (or the deprecated `sendDefaultPii` option, for backwards compatibility)
|
|
32
|
+
* - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
|
|
32
33
|
*
|
|
33
34
|
* @example
|
|
34
35
|
* ```javascript
|
|
35
|
-
* //
|
|
36
|
+
* // Always record inputs and outputs regardless of global dataCollection config
|
|
36
37
|
* Sentry.init({
|
|
37
38
|
* integrations: [
|
|
38
39
|
* Sentry.googleGenAiIntegration({
|
|
@@ -42,9 +43,9 @@ export declare const instrumentGoogleGenAI: ((options?: GoogleGenAIOptions | und
|
|
|
42
43
|
* ],
|
|
43
44
|
* });
|
|
44
45
|
*
|
|
45
|
-
* // Never record inputs/outputs regardless of
|
|
46
|
+
* // Never record inputs/outputs regardless of global dataCollection config
|
|
46
47
|
* Sentry.init({
|
|
47
|
-
*
|
|
48
|
+
* dataCollection: { genAI: { inputs: true, outputs: true } },
|
|
48
49
|
* integrations: [
|
|
49
50
|
* Sentry.googleGenAiIntegration({
|
|
50
51
|
* recordInputs: false,
|
|
@@ -21,7 +21,7 @@ export declare const instrumentLangChain: ((options?: LangChainOptions | undefin
|
|
|
21
21
|
*
|
|
22
22
|
* Sentry.init({
|
|
23
23
|
* integrations: [Sentry.langChainIntegration()],
|
|
24
|
-
*
|
|
24
|
+
* dataCollection: { genAI: { inputs: true, outputs: true } }, // Enable to record inputs/outputs
|
|
25
25
|
* });
|
|
26
26
|
*
|
|
27
27
|
* // LangChain calls are automatically instrumented
|
|
@@ -52,18 +52,19 @@ export declare const instrumentLangChain: ((options?: LangChainOptions | undefin
|
|
|
52
52
|
*
|
|
53
53
|
* ## Options
|
|
54
54
|
*
|
|
55
|
-
* - `recordInputs`: Whether to record input messages/prompts (default:
|
|
56
|
-
* - `recordOutputs`: Whether to record response text (default:
|
|
55
|
+
* - `recordInputs`: Whether to record input messages/prompts (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
|
|
56
|
+
* - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
|
|
57
57
|
*
|
|
58
58
|
* ### Default Behavior
|
|
59
59
|
*
|
|
60
60
|
* By default, the integration will:
|
|
61
|
-
* - Record inputs and outputs
|
|
62
|
-
*
|
|
61
|
+
* - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
|
|
62
|
+
* (or the deprecated `sendDefaultPii` option, for backwards compatibility)
|
|
63
|
+
* - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```javascript
|
|
66
|
-
* //
|
|
67
|
+
* // Always record inputs and outputs regardless of global dataCollection config
|
|
67
68
|
* Sentry.init({
|
|
68
69
|
* integrations: [
|
|
69
70
|
* Sentry.langChainIntegration({
|
|
@@ -73,9 +74,9 @@ export declare const instrumentLangChain: ((options?: LangChainOptions | undefin
|
|
|
73
74
|
* ],
|
|
74
75
|
* });
|
|
75
76
|
*
|
|
76
|
-
* // Never record inputs/outputs regardless of
|
|
77
|
+
* // Never record inputs/outputs regardless of global dataCollection config
|
|
77
78
|
* Sentry.init({
|
|
78
|
-
*
|
|
79
|
+
* dataCollection: { genAI: { inputs: true, outputs: true } },
|
|
79
80
|
* integrations: [
|
|
80
81
|
* Sentry.langChainIntegration({
|
|
81
82
|
* recordInputs: false,
|
|
@@ -21,13 +21,14 @@ export declare const instrumentLangGraph: ((options?: LangGraphOptions | undefin
|
|
|
21
21
|
*
|
|
22
22
|
* ## Options
|
|
23
23
|
*
|
|
24
|
-
* - `recordInputs`: Whether to record prompt messages (default: follows `
|
|
25
|
-
* - `recordOutputs`: Whether to record response text (default: follows `
|
|
24
|
+
* - `recordInputs`: Whether to record prompt messages (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
|
|
25
|
+
* - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
|
|
26
26
|
*
|
|
27
27
|
* ### Default Behavior
|
|
28
28
|
*
|
|
29
29
|
* By default, the integration will:
|
|
30
|
-
* - Record inputs and outputs based on `
|
|
30
|
+
* - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
|
|
31
|
+
* (or the deprecated `sendDefaultPii` option, for backwards compatibility)
|
|
31
32
|
* - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
|
|
32
33
|
*
|
|
33
34
|
* @example
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InstrumentationBase,
|
|
1
|
+
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
|
|
2
2
|
export declare class LruMemoizerInstrumentation extends InstrumentationBase {
|
|
3
|
-
constructor(
|
|
3
|
+
constructor();
|
|
4
4
|
init(): InstrumentationNodeModuleDefinition[];
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=instrumentation.d.ts.map
|
|
@@ -21,13 +21,14 @@ export declare const instrumentOpenAi: ((options?: OpenAiOptions | undefined) =>
|
|
|
21
21
|
*
|
|
22
22
|
* ## Options
|
|
23
23
|
*
|
|
24
|
-
* - `recordInputs`: Whether to record
|
|
25
|
-
* - `recordOutputs`: Whether to record response text (default: follows `
|
|
24
|
+
* - `recordInputs`: Whether to record input messages/prompts (default: follows `dataCollection.genAI.inputs`, or the deprecated `sendDefaultPii` option)
|
|
25
|
+
* - `recordOutputs`: Whether to record response text (default: follows `dataCollection.genAI.outputs`, or the deprecated `sendDefaultPii` option)
|
|
26
26
|
*
|
|
27
27
|
* ### Default Behavior
|
|
28
28
|
*
|
|
29
29
|
* By default, the integration will:
|
|
30
|
-
* - Record inputs and outputs based on `
|
|
30
|
+
* - Record inputs and outputs based on `dataCollection.genAI` in your Sentry client options
|
|
31
|
+
* (or the deprecated `sendDefaultPii` option, for backwards compatibility)
|
|
31
32
|
* - Integration-level `recordInputs`/`recordOutputs` options take precedence over global config
|
|
32
33
|
*
|
|
33
34
|
* @example
|
|
@@ -38,13 +38,13 @@ export type TelemetrySettings = {
|
|
|
38
38
|
export declare type AttributeValue = string | number | boolean | Array<null | undefined | string> | Array<null | undefined | number> | Array<null | undefined | boolean>;
|
|
39
39
|
export interface VercelAiOptions {
|
|
40
40
|
/**
|
|
41
|
-
* Enable or disable input recording. Enabled if `
|
|
41
|
+
* Enable or disable input recording. Enabled if `dataCollection.genAI.inputs` (or the deprecated `sendDefaultPii` option) is `true`
|
|
42
42
|
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
|
|
43
43
|
* Integration-level options take precedence over global `dataCollection` config.
|
|
44
44
|
*/
|
|
45
45
|
recordInputs?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* Enable or disable output recording. Enabled if `
|
|
47
|
+
* Enable or disable output recording. Enabled if `dataCollection.genAI.outputs` (or the deprecated `sendDefaultPii` option) is `true`
|
|
48
48
|
* or if you set `isEnabled` to `true` in your ai SDK method telemetry settings.
|
|
49
49
|
* Integration-level options take precedence over global `dataCollection` config.
|
|
50
50
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/node",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.58.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",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"@opentelemetry/instrumentation": "^0.214.0",
|
|
71
71
|
"@opentelemetry/sdk-trace-base": "^2.6.1",
|
|
72
72
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
73
|
-
"@sentry
|
|
74
|
-
"@sentry/core": "10.
|
|
75
|
-
"@sentry/
|
|
76
|
-
"@sentry/
|
|
73
|
+
"@sentry/core": "10.58.0",
|
|
74
|
+
"@sentry/node-core": "10.58.0",
|
|
75
|
+
"@sentry/opentelemetry": "10.58.0",
|
|
76
|
+
"@sentry/server-utils": "10.58.0",
|
|
77
77
|
"import-in-the-middle": "^3.0.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare class DataLoader<K, V, _C = K> {
|
|
2
|
-
constructor(batchLoadFn: DataLoader.BatchLoadFn<K, V>, options?: any);
|
|
3
|
-
load(key: K): Promise<V>;
|
|
4
|
-
loadMany(keys: ArrayLike<K>): Promise<Array<V | Error>>;
|
|
5
|
-
prime(key: K, value: V | Error): this;
|
|
6
|
-
clear(key: K): this;
|
|
7
|
-
clearAll(): this;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare namespace DataLoader {
|
|
11
|
-
type BatchLoadFn<K, V> = (keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;
|
|
12
|
-
}
|
|
13
|
-
export = DataLoader;
|
|
14
|
-
//# sourceMappingURL=dataloader-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataloader-types.d.ts","sourceRoot":"","sources":["../../../../../../src/integrations/tracing/dataloader/vendored/dataloader-types.ts"],"names":[],"mappings":"AAIA,OAAO,OAAO,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC;gBACvB,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,GAAG;IACpE,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;IACvD,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,IAAI;IACrC,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI;IACnB,QAAQ,IAAI,IAAI;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,OAAO,WAAW,UAAU,CAAC;IAC3B,KAAK,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,WAAW,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;CACxF;AAED,SAAS,UAAU,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare class DataLoader<K, V, _C = K> {
|
|
2
|
-
constructor(batchLoadFn: DataLoader.BatchLoadFn<K, V>, options?: any);
|
|
3
|
-
load(key: K): Promise<V>;
|
|
4
|
-
loadMany(keys: ArrayLike<K>): Promise<Array<V | Error>>;
|
|
5
|
-
prime(key: K, value: V | Error): this;
|
|
6
|
-
clear(key: K): this;
|
|
7
|
-
clearAll(): this;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
declare namespace DataLoader {
|
|
11
|
-
type BatchLoadFn<K, V> = (keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;
|
|
12
|
-
}
|
|
13
|
-
export = DataLoader;
|
|
14
|
-
//# sourceMappingURL=dataloader-types.d.ts.map
|