@sentry/node 8.0.0-alpha.2 → 8.0.0-alpha.4
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/README.md +14 -93
- package/cjs/index.js +3665 -77
- package/cjs/index.js.map +1 -1
- package/esm/index.js +3614 -31
- package/esm/index.js.map +1 -1
- package/esm/integrations/anr/worker-script.js +2 -2
- package/esm/package.json +1 -0
- package/package.json +21 -6
- package/types/index.d.ts +6 -5
- package/types/index.d.ts.map +1 -1
- package/types/integrations/anr/worker-script.d.ts +1 -1
- package/types/integrations/anr/worker-script.d.ts.map +1 -1
- package/types/integrations/http.d.ts +4 -0
- package/types/integrations/http.d.ts.map +1 -1
- package/types/integrations/tracing/fastify.d.ts +9 -0
- package/types/integrations/tracing/fastify.d.ts.map +1 -1
- package/types/integrations/tracing/prisma.d.ts.map +1 -1
- package/types/proxy/helpers.d.ts +2 -2
- package/types/proxy/helpers.d.ts.map +1 -1
- package/types/proxy/index.d.ts.map +1 -1
- package/types/sdk/hub.d.ts.map +1 -1
- package/types/sdk/init.d.ts.map +1 -1
- package/types/transports/http-module.d.ts +2 -2
- package/types/transports/http-module.d.ts.map +1 -1
- package/types/types.d.ts +3 -4
- package/types/types.d.ts.map +1 -1
- package/types-ts3.8/index.d.ts +6 -5
- package/types-ts3.8/integrations/anr/worker-script.d.ts +1 -1
- package/types-ts3.8/integrations/http.d.ts +4 -0
- package/types-ts3.8/integrations/tracing/fastify.d.ts +9 -0
- package/types-ts3.8/proxy/helpers.d.ts +2 -2
- package/types-ts3.8/transports/http-module.d.ts +2 -2
- package/types-ts3.8/types.d.ts +3 -4
- package/cjs/cron/common.js +0 -56
- package/cjs/cron/common.js.map +0 -1
- package/cjs/cron/cron.js +0 -102
- package/cjs/cron/cron.js.map +0 -1
- package/cjs/cron/index.js +0 -15
- package/cjs/cron/index.js.map +0 -1
- package/cjs/cron/node-cron.js +0 -61
- package/cjs/cron/node-cron.js.map +0 -1
- package/cjs/cron/node-schedule.js +0 -57
- package/cjs/cron/node-schedule.js.map +0 -1
- package/cjs/debug-build.js +0 -11
- package/cjs/debug-build.js.map +0 -1
- package/cjs/integrations/anr/index.js +0 -144
- package/cjs/integrations/anr/index.js.map +0 -1
- package/cjs/integrations/anr/worker-script.js +0 -2
- package/cjs/integrations/anr/worker-script.js.map +0 -1
- package/cjs/integrations/console.js +0 -40
- package/cjs/integrations/console.js.map +0 -1
- package/cjs/integrations/context.js +0 -435
- package/cjs/integrations/context.js.map +0 -1
- package/cjs/integrations/contextlines.js +0 -137
- package/cjs/integrations/contextlines.js.map +0 -1
- package/cjs/integrations/http.js +0 -137
- package/cjs/integrations/http.js.map +0 -1
- package/cjs/integrations/local-variables/common.js +0 -87
- package/cjs/integrations/local-variables/common.js.map +0 -1
- package/cjs/integrations/local-variables/index.js +0 -8
- package/cjs/integrations/local-variables/index.js.map +0 -1
- package/cjs/integrations/local-variables/local-variables-sync.js +0 -385
- package/cjs/integrations/local-variables/local-variables-sync.js.map +0 -1
- package/cjs/integrations/modules.js +0 -99
- package/cjs/integrations/modules.js.map +0 -1
- package/cjs/integrations/node-fetch.js +0 -82
- package/cjs/integrations/node-fetch.js.map +0 -1
- package/cjs/integrations/onuncaughtexception.js +0 -137
- package/cjs/integrations/onuncaughtexception.js.map +0 -1
- package/cjs/integrations/onunhandledrejection.js +0 -90
- package/cjs/integrations/onunhandledrejection.js.map +0 -1
- package/cjs/integrations/spotlight.js +0 -109
- package/cjs/integrations/spotlight.js.map +0 -1
- package/cjs/integrations/tracing/express.js +0 -103
- package/cjs/integrations/tracing/express.js.map +0 -1
- package/cjs/integrations/tracing/fastify.js +0 -33
- package/cjs/integrations/tracing/fastify.js.map +0 -1
- package/cjs/integrations/tracing/graphql.js +0 -34
- package/cjs/integrations/tracing/graphql.js.map +0 -1
- package/cjs/integrations/tracing/hapi/index.js +0 -81
- package/cjs/integrations/tracing/hapi/index.js.map +0 -1
- package/cjs/integrations/tracing/index.js +0 -37
- package/cjs/integrations/tracing/index.js.map +0 -1
- package/cjs/integrations/tracing/koa.js +0 -21
- package/cjs/integrations/tracing/koa.js.map +0 -1
- package/cjs/integrations/tracing/mongo.js +0 -33
- package/cjs/integrations/tracing/mongo.js.map +0 -1
- package/cjs/integrations/tracing/mongoose.js +0 -33
- package/cjs/integrations/tracing/mongoose.js.map +0 -1
- package/cjs/integrations/tracing/mysql.js +0 -26
- package/cjs/integrations/tracing/mysql.js.map +0 -1
- package/cjs/integrations/tracing/mysql2.js +0 -33
- package/cjs/integrations/tracing/mysql2.js.map +0 -1
- package/cjs/integrations/tracing/nest.js +0 -26
- package/cjs/integrations/tracing/nest.js.map +0 -1
- package/cjs/integrations/tracing/postgres.js +0 -34
- package/cjs/integrations/tracing/postgres.js.map +0 -1
- package/cjs/integrations/tracing/prisma.js +0 -33
- package/cjs/integrations/tracing/prisma.js.map +0 -1
- package/cjs/nodeVersion.js +0 -12
- package/cjs/nodeVersion.js.map +0 -1
- package/cjs/otel/contextManager.js +0 -16
- package/cjs/otel/contextManager.js.map +0 -1
- package/cjs/proxy/base.js +0 -126
- package/cjs/proxy/base.js.map +0 -1
- package/cjs/proxy/index.js +0 -209
- package/cjs/proxy/index.js.map +0 -1
- package/cjs/proxy/parse-proxy-response.js +0 -104
- package/cjs/proxy/parse-proxy-response.js.map +0 -1
- package/cjs/sdk/api.js +0 -74
- package/cjs/sdk/api.js.map +0 -1
- package/cjs/sdk/client.js +0 -57
- package/cjs/sdk/client.js.map +0 -1
- package/cjs/sdk/hub.js +0 -104
- package/cjs/sdk/hub.js.map +0 -1
- package/cjs/sdk/init.js +0 -252
- package/cjs/sdk/init.js.map +0 -1
- package/cjs/sdk/initOtel.js +0 -70
- package/cjs/sdk/initOtel.js.map +0 -1
- package/cjs/sdk/scope.js +0 -18
- package/cjs/sdk/scope.js.map +0 -1
- package/cjs/transports/http.js +0 -160
- package/cjs/transports/http.js.map +0 -1
- package/cjs/utils/addOriginToSpan.js +0 -11
- package/cjs/utils/addOriginToSpan.js.map +0 -1
- package/cjs/utils/errorhandling.js +0 -44
- package/cjs/utils/errorhandling.js.map +0 -1
- package/cjs/utils/getRequestUrl.js +0 -18
- package/cjs/utils/getRequestUrl.js.map +0 -1
- package/cjs/utils/module.js +0 -62
- package/cjs/utils/module.js.map +0 -1
- package/esm/cron/common.js +0 -54
- package/esm/cron/common.js.map +0 -1
- package/esm/cron/cron.js +0 -100
- package/esm/cron/cron.js.map +0 -1
- package/esm/cron/index.js +0 -13
- package/esm/cron/index.js.map +0 -1
- package/esm/cron/node-cron.js +0 -56
- package/esm/cron/node-cron.js.map +0 -1
- package/esm/cron/node-schedule.js +0 -55
- package/esm/cron/node-schedule.js.map +0 -1
- package/esm/debug-build.js +0 -9
- package/esm/debug-build.js.map +0 -1
- package/esm/integrations/anr/index.js +0 -138
- package/esm/integrations/anr/index.js.map +0 -1
- package/esm/integrations/anr/worker-script.js.map +0 -1
- package/esm/integrations/console.js +0 -38
- package/esm/integrations/console.js.map +0 -1
- package/esm/integrations/context.js +0 -427
- package/esm/integrations/context.js.map +0 -1
- package/esm/integrations/contextlines.js +0 -131
- package/esm/integrations/contextlines.js.map +0 -1
- package/esm/integrations/http.js +0 -132
- package/esm/integrations/http.js.map +0 -1
- package/esm/integrations/local-variables/common.js +0 -81
- package/esm/integrations/local-variables/common.js.map +0 -1
- package/esm/integrations/local-variables/index.js +0 -6
- package/esm/integrations/local-variables/index.js.map +0 -1
- package/esm/integrations/local-variables/local-variables-sync.js +0 -379
- package/esm/integrations/local-variables/local-variables-sync.js.map +0 -1
- package/esm/integrations/modules.js +0 -97
- package/esm/integrations/modules.js.map +0 -1
- package/esm/integrations/node-fetch.js +0 -80
- package/esm/integrations/node-fetch.js.map +0 -1
- package/esm/integrations/onuncaughtexception.js +0 -134
- package/esm/integrations/onuncaughtexception.js.map +0 -1
- package/esm/integrations/onunhandledrejection.js +0 -87
- package/esm/integrations/onunhandledrejection.js.map +0 -1
- package/esm/integrations/spotlight.js +0 -106
- package/esm/integrations/spotlight.js.map +0 -1
- package/esm/integrations/tracing/express.js +0 -96
- package/esm/integrations/tracing/express.js.map +0 -1
- package/esm/integrations/tracing/fastify.js +0 -31
- package/esm/integrations/tracing/fastify.js.map +0 -1
- package/esm/integrations/tracing/graphql.js +0 -32
- package/esm/integrations/tracing/graphql.js.map +0 -1
- package/esm/integrations/tracing/hapi/index.js +0 -77
- package/esm/integrations/tracing/hapi/index.js.map +0 -1
- package/esm/integrations/tracing/index.js +0 -35
- package/esm/integrations/tracing/index.js.map +0 -1
- package/esm/integrations/tracing/koa.js +0 -19
- package/esm/integrations/tracing/koa.js.map +0 -1
- package/esm/integrations/tracing/mongo.js +0 -31
- package/esm/integrations/tracing/mongo.js.map +0 -1
- package/esm/integrations/tracing/mongoose.js +0 -31
- package/esm/integrations/tracing/mongoose.js.map +0 -1
- package/esm/integrations/tracing/mysql.js +0 -24
- package/esm/integrations/tracing/mysql.js.map +0 -1
- package/esm/integrations/tracing/mysql2.js +0 -31
- package/esm/integrations/tracing/mysql2.js.map +0 -1
- package/esm/integrations/tracing/nest.js +0 -24
- package/esm/integrations/tracing/nest.js.map +0 -1
- package/esm/integrations/tracing/postgres.js +0 -32
- package/esm/integrations/tracing/postgres.js.map +0 -1
- package/esm/integrations/tracing/prisma.js +0 -31
- package/esm/integrations/tracing/prisma.js.map +0 -1
- package/esm/nodeVersion.js +0 -9
- package/esm/nodeVersion.js.map +0 -1
- package/esm/otel/contextManager.js +0 -14
- package/esm/otel/contextManager.js.map +0 -1
- package/esm/proxy/base.js +0 -121
- package/esm/proxy/base.js.map +0 -1
- package/esm/proxy/index.js +0 -203
- package/esm/proxy/index.js.map +0 -1
- package/esm/proxy/parse-proxy-response.js +0 -102
- package/esm/proxy/parse-proxy-response.js.map +0 -1
- package/esm/sdk/api.js +0 -69
- package/esm/sdk/api.js.map +0 -1
- package/esm/sdk/client.js +0 -52
- package/esm/sdk/client.js.map +0 -1
- package/esm/sdk/hub.js +0 -102
- package/esm/sdk/hub.js.map +0 -1
- package/esm/sdk/init.js +0 -249
- package/esm/sdk/init.js.map +0 -1
- package/esm/sdk/initOtel.js +0 -67
- package/esm/sdk/initOtel.js.map +0 -1
- package/esm/sdk/scope.js +0 -16
- package/esm/sdk/scope.js.map +0 -1
- package/esm/transports/http.js +0 -155
- package/esm/transports/http.js.map +0 -1
- package/esm/utils/addOriginToSpan.js +0 -9
- package/esm/utils/addOriginToSpan.js.map +0 -1
- package/esm/utils/errorhandling.js +0 -42
- package/esm/utils/errorhandling.js.map +0 -1
- package/esm/utils/getRequestUrl.js +0 -16
- package/esm/utils/getRequestUrl.js.map +0 -1
- package/esm/utils/module.js +0 -60
- package/esm/utils/module.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fastify.js","sources":["../../../../src/integrations/tracing/fastify.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { FastifyInstrumentation } from '@opentelemetry/instrumentation-fastify';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nimport { addOriginToSpan } from '../../utils/addOriginToSpan';\n\nconst _fastifyIntegration = (() => {\n return {\n name: 'Fastify',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [\n new FastifyInstrumentation({\n requestHook(span) {\n addOriginToSpan(span, 'auto.http.otel.fastify');\n },\n }),\n ],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Express integration\n *\n * Capture tracing data for fastify.\n */\nexport const fastifyIntegration = defineIntegration(_fastifyIntegration);\n"],"names":["registerInstrumentations","FastifyInstrumentation","addOriginToSpan","defineIntegration"],"mappings":";;;;;;;AAOA,MAAM,mBAAoB,IAAG,MAAM;AACnC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,SAAS;AACnB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE;AAC1B,UAAU,IAAIC,6CAAsB,CAAC;AACrC,YAAY,WAAW,CAAC,IAAI,EAAE;AAC9B,cAAcC,+BAAe,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAA;AAC7D,aAAa;AACb,WAAW,CAAC;AACZ,SAAS;AACT,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,kBAAmB,GAAEC,sBAAiB,CAAC,mBAAmB;;;;"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationGraphql = require('@opentelemetry/instrumentation-graphql');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
const addOriginToSpan = require('../../utils/addOriginToSpan.js');
|
|
7
|
-
|
|
8
|
-
const _graphqlIntegration = (() => {
|
|
9
|
-
return {
|
|
10
|
-
name: 'Graphql',
|
|
11
|
-
setupOnce() {
|
|
12
|
-
instrumentation.registerInstrumentations({
|
|
13
|
-
instrumentations: [
|
|
14
|
-
new instrumentationGraphql.GraphQLInstrumentation({
|
|
15
|
-
ignoreTrivialResolveSpans: true,
|
|
16
|
-
responseHook(span) {
|
|
17
|
-
addOriginToSpan.addOriginToSpan(span, 'auto.graphql.otel.graphql');
|
|
18
|
-
},
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}) ;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* GraphQL integration
|
|
28
|
-
*
|
|
29
|
-
* Capture tracing data for GraphQL.
|
|
30
|
-
*/
|
|
31
|
-
const graphqlIntegration = core.defineIntegration(_graphqlIntegration);
|
|
32
|
-
|
|
33
|
-
exports.graphqlIntegration = graphqlIntegration;
|
|
34
|
-
//# sourceMappingURL=graphql.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","sources":["../../../../src/integrations/tracing/graphql.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { GraphQLInstrumentation } from '@opentelemetry/instrumentation-graphql';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nimport { addOriginToSpan } from '../../utils/addOriginToSpan';\n\nconst _graphqlIntegration = (() => {\n return {\n name: 'Graphql',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [\n new GraphQLInstrumentation({\n ignoreTrivialResolveSpans: true,\n responseHook(span) {\n addOriginToSpan(span, 'auto.graphql.otel.graphql');\n },\n }),\n ],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * GraphQL integration\n *\n * Capture tracing data for GraphQL.\n */\nexport const graphqlIntegration = defineIntegration(_graphqlIntegration);\n"],"names":["registerInstrumentations","GraphQLInstrumentation","addOriginToSpan","defineIntegration"],"mappings":";;;;;;;AAOA,MAAM,mBAAoB,IAAG,MAAM;AACnC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,SAAS;AACnB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE;AAC1B,UAAU,IAAIC,6CAAsB,CAAC;AACrC,YAAY,yBAAyB,EAAE,IAAI;AAC3C,YAAY,YAAY,CAAC,IAAI,EAAE;AAC/B,cAAcC,+BAAe,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAA;AAChE,aAAa;AACb,WAAW,CAAC;AACZ,SAAS;AACT,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,kBAAmB,GAAEC,sBAAiB,CAAC,mBAAmB;;;;"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationHapi = require('@opentelemetry/instrumentation-hapi');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
|
|
7
|
-
const _hapiIntegration = (() => {
|
|
8
|
-
return {
|
|
9
|
-
name: 'Hapi',
|
|
10
|
-
setupOnce() {
|
|
11
|
-
instrumentation.registerInstrumentations({
|
|
12
|
-
instrumentations: [new instrumentationHapi.HapiInstrumentation()],
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}) ;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Hapi integration
|
|
20
|
-
*
|
|
21
|
-
* Capture tracing data for Hapi.
|
|
22
|
-
* If you also want to capture errors, you need to call `setupHapiErrorHandler(server)` after you set up your server.
|
|
23
|
-
*/
|
|
24
|
-
const hapiIntegration = core.defineIntegration(_hapiIntegration);
|
|
25
|
-
|
|
26
|
-
function isBoomObject(response) {
|
|
27
|
-
return response && (response ).isBoom !== undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function isErrorEvent(event) {
|
|
31
|
-
return event && (event ).error !== undefined;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function sendErrorToSentry(errorData) {
|
|
35
|
-
core.captureException(errorData, {
|
|
36
|
-
mechanism: {
|
|
37
|
-
type: 'hapi',
|
|
38
|
-
handled: false,
|
|
39
|
-
data: {
|
|
40
|
-
function: 'hapiErrorPlugin',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const hapiErrorPlugin = {
|
|
47
|
-
name: 'SentryHapiErrorPlugin',
|
|
48
|
-
version: core.SDK_VERSION,
|
|
49
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
50
|
-
register: async function (serverArg) {
|
|
51
|
-
const server = serverArg ;
|
|
52
|
-
|
|
53
|
-
server.events.on('request', (request, event) => {
|
|
54
|
-
const activeSpan = core.getActiveSpan();
|
|
55
|
-
const rootSpan = activeSpan ? core.getRootSpan(activeSpan) : undefined;
|
|
56
|
-
|
|
57
|
-
if (request.response && isBoomObject(request.response)) {
|
|
58
|
-
sendErrorToSentry(request.response);
|
|
59
|
-
} else if (isErrorEvent(event)) {
|
|
60
|
-
sendErrorToSentry(event.error);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (rootSpan) {
|
|
64
|
-
rootSpan.setStatus({ code: core.SPAN_STATUS_ERROR, message: 'internal_error' });
|
|
65
|
-
rootSpan.end();
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Add a Hapi plugin to capture errors to Sentry.
|
|
73
|
-
*/
|
|
74
|
-
async function setupHapiErrorHandler(server) {
|
|
75
|
-
await server.register(hapiErrorPlugin);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
exports.hapiErrorPlugin = hapiErrorPlugin;
|
|
79
|
-
exports.hapiIntegration = hapiIntegration;
|
|
80
|
-
exports.setupHapiErrorHandler = setupHapiErrorHandler;
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/integrations/tracing/hapi/index.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { HapiInstrumentation } from '@opentelemetry/instrumentation-hapi';\nimport {\n SDK_VERSION,\n SPAN_STATUS_ERROR,\n captureException,\n defineIntegration,\n getActiveSpan,\n getRootSpan,\n} from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\nimport type { Boom, RequestEvent, ResponseObject, Server } from './types';\n\nconst _hapiIntegration = (() => {\n return {\n name: 'Hapi',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [new HapiInstrumentation()],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Hapi integration\n *\n * Capture tracing data for Hapi.\n * If you also want to capture errors, you need to call `setupHapiErrorHandler(server)` after you set up your server.\n */\nexport const hapiIntegration = defineIntegration(_hapiIntegration);\n\nfunction isBoomObject(response: ResponseObject | Boom): response is Boom {\n return response && (response as Boom).isBoom !== undefined;\n}\n\nfunction isErrorEvent(event: RequestEvent): event is RequestEvent {\n return event && (event as RequestEvent).error !== undefined;\n}\n\nfunction sendErrorToSentry(errorData: object): void {\n captureException(errorData, {\n mechanism: {\n type: 'hapi',\n handled: false,\n data: {\n function: 'hapiErrorPlugin',\n },\n },\n });\n}\n\nexport const hapiErrorPlugin = {\n name: 'SentryHapiErrorPlugin',\n version: SDK_VERSION,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n register: async function (serverArg: Record<any, any>) {\n const server = serverArg as unknown as Server;\n\n server.events.on('request', (request, event) => {\n const activeSpan = getActiveSpan();\n const rootSpan = activeSpan ? getRootSpan(activeSpan) : undefined;\n\n if (request.response && isBoomObject(request.response)) {\n sendErrorToSentry(request.response);\n } else if (isErrorEvent(event)) {\n sendErrorToSentry(event.error);\n }\n\n if (rootSpan) {\n rootSpan.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n rootSpan.end();\n }\n });\n },\n};\n\n/**\n * Add a Hapi plugin to capture errors to Sentry.\n */\nexport async function setupHapiErrorHandler(server: Server): Promise<void> {\n await server.register(hapiErrorPlugin);\n}\n"],"names":["registerInstrumentations","HapiInstrumentation","defineIntegration","captureException","SDK_VERSION","getActiveSpan","getRootSpan","SPAN_STATUS_ERROR"],"mappings":";;;;;;AAaA,MAAM,gBAAiB,IAAG,MAAM;AAChC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE,CAAC,IAAIC,uCAAmB,EAAE,CAAC;AACrD,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;AACA;MACa,eAAgB,GAAEC,sBAAiB,CAAC,gBAAgB,EAAC;AAClE;AACA,SAAS,YAAY,CAAC,QAAQ,EAA2C;AACzE,EAAE,OAAO,YAAY,CAAC,WAAkB,MAAO,KAAI,SAAS,CAAA;AAC5D,CAAA;AACA;AACA,SAAS,YAAY,CAAC,KAAK,EAAuC;AAClE,EAAE,OAAO,SAAS,CAAC,QAAuB,KAAM,KAAI,SAAS,CAAA;AAC7D,CAAA;AACA;AACA,SAAS,iBAAiB,CAAC,SAAS,EAAgB;AACpD,EAAEC,qBAAgB,CAAC,SAAS,EAAE;AAC9B,IAAI,SAAS,EAAE;AACf,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,OAAO,EAAE,KAAK;AACpB,MAAM,IAAI,EAAE;AACZ,QAAQ,QAAQ,EAAE,iBAAiB;AACnC,OAAO;AACP,KAAK;AACL,GAAG,CAAC,CAAA;AACJ,CAAA;AACA;AACO,MAAM,kBAAkB;AAC/B,EAAE,IAAI,EAAE,uBAAuB;AAC/B,EAAE,OAAO,EAAEC,gBAAW;AACtB;AACA,EAAE,QAAQ,EAAE,gBAAgB,SAAS,EAAoB;AACzD,IAAI,MAAM,MAAO,GAAE,SAAU,EAAA;AAC7B;AACA,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,KAAK,KAAK;AACpD,MAAM,MAAM,UAAA,GAAaC,kBAAa,EAAE,CAAA;AACxC,MAAM,MAAM,QAAS,GAAE,UAAW,GAAEC,gBAAW,CAAC,UAAU,CAAE,GAAE,SAAS,CAAA;AACvE;AACA,MAAM,IAAI,OAAO,CAAC,QAAS,IAAG,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;AAC9D,QAAQ,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;AAC3C,OAAM,MAAO,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE;AACtC,QAAQ,iBAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;AACtC,OAAM;AACN;AACA,MAAM,IAAI,QAAQ,EAAE;AACpB,QAAQ,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,EAAEC,sBAAiB,EAAE,OAAO,EAAE,gBAAA,EAAkB,CAAC,CAAA;AAClF,QAAQ,QAAQ,CAAC,GAAG,EAAE,CAAA;AACtB,OAAM;AACN,KAAK,CAAC,CAAA;AACN,GAAG;AACH,EAAC;AACD;AACA;AACA;AACA;AACO,eAAe,qBAAqB,CAAC,MAAM,EAAyB;AAC3E,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAA;AACxC;;;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const express = require('./express.js');
|
|
4
|
-
const fastify = require('./fastify.js');
|
|
5
|
-
const graphql = require('./graphql.js');
|
|
6
|
-
const index = require('./hapi/index.js');
|
|
7
|
-
const koa = require('./koa.js');
|
|
8
|
-
const mongo = require('./mongo.js');
|
|
9
|
-
const mongoose = require('./mongoose.js');
|
|
10
|
-
const mysql = require('./mysql.js');
|
|
11
|
-
const mysql2 = require('./mysql2.js');
|
|
12
|
-
const nest = require('./nest.js');
|
|
13
|
-
const postgres = require('./postgres.js');
|
|
14
|
-
const prisma = require('./prisma.js');
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* With OTEL, all performance integrations will be added, as OTEL only initializes them when the patched package is actually required.
|
|
18
|
-
*/
|
|
19
|
-
function getAutoPerformanceIntegrations() {
|
|
20
|
-
return [
|
|
21
|
-
express.expressIntegration(),
|
|
22
|
-
fastify.fastifyIntegration(),
|
|
23
|
-
graphql.graphqlIntegration(),
|
|
24
|
-
mongo.mongoIntegration(),
|
|
25
|
-
mongoose.mongooseIntegration(),
|
|
26
|
-
mysql.mysqlIntegration(),
|
|
27
|
-
mysql2.mysql2Integration(),
|
|
28
|
-
postgres.postgresIntegration(),
|
|
29
|
-
prisma.prismaIntegration(),
|
|
30
|
-
nest.nestIntegration(),
|
|
31
|
-
index.hapiIntegration(),
|
|
32
|
-
koa.koaIntegration(),
|
|
33
|
-
];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
exports.getAutoPerformanceIntegrations = getAutoPerformanceIntegrations;
|
|
37
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/integrations/tracing/index.ts"],"sourcesContent":["import type { Integration } from '@sentry/types';\n\nimport { expressIntegration } from './express';\nimport { fastifyIntegration } from './fastify';\nimport { graphqlIntegration } from './graphql';\nimport { hapiIntegration } from './hapi';\nimport { koaIntegration } from './koa';\nimport { mongoIntegration } from './mongo';\nimport { mongooseIntegration } from './mongoose';\nimport { mysqlIntegration } from './mysql';\nimport { mysql2Integration } from './mysql2';\nimport { nestIntegration } from './nest';\nimport { postgresIntegration } from './postgres';\nimport { prismaIntegration } from './prisma';\n\n/**\n * With OTEL, all performance integrations will be added, as OTEL only initializes them when the patched package is actually required.\n */\nexport function getAutoPerformanceIntegrations(): Integration[] {\n return [\n expressIntegration(),\n fastifyIntegration(),\n graphqlIntegration(),\n mongoIntegration(),\n mongooseIntegration(),\n mysqlIntegration(),\n mysql2Integration(),\n postgresIntegration(),\n prismaIntegration(),\n nestIntegration(),\n hapiIntegration(),\n koaIntegration(),\n ];\n}\n"],"names":["expressIntegration","fastifyIntegration","graphqlIntegration","mongoIntegration","mongooseIntegration","mysqlIntegration","mysql2Integration","postgresIntegration","prismaIntegration","nestIntegration","hapiIntegration","koaIntegration"],"mappings":";;;;;;;;;;;;;;;AAeA;AACA;AACA;AACO,SAAS,8BAA8B,GAAkB;AAChE,EAAE,OAAO;AACT,IAAIA,0BAAkB,EAAE;AACxB,IAAIC,0BAAkB,EAAE;AACxB,IAAIC,0BAAkB,EAAE;AACxB,IAAIC,sBAAgB,EAAE;AACtB,IAAIC,4BAAmB,EAAE;AACzB,IAAIC,sBAAgB,EAAE;AACtB,IAAIC,wBAAiB,EAAE;AACvB,IAAIC,4BAAmB,EAAE;AACzB,IAAIC,wBAAiB,EAAE;AACvB,IAAIC,oBAAe,EAAE;AACrB,IAAIC,qBAAe,EAAE;AACrB,IAAIC,kBAAc,EAAE;AACpB,GAAG,CAAA;AACH;;;;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationKoa = require('@opentelemetry/instrumentation-koa');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
|
|
7
|
-
const _koaIntegration = (() => {
|
|
8
|
-
return {
|
|
9
|
-
name: 'Koa',
|
|
10
|
-
setupOnce() {
|
|
11
|
-
instrumentation.registerInstrumentations({
|
|
12
|
-
instrumentations: [new instrumentationKoa.KoaInstrumentation()],
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}) ;
|
|
17
|
-
|
|
18
|
-
const koaIntegration = core.defineIntegration(_koaIntegration);
|
|
19
|
-
|
|
20
|
-
exports.koaIntegration = koaIntegration;
|
|
21
|
-
//# sourceMappingURL=koa.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"koa.js","sources":["../../../../src/integrations/tracing/koa.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { KoaInstrumentation } from '@opentelemetry/instrumentation-koa';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nconst _koaIntegration = (() => {\n return {\n name: 'Koa',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [new KoaInstrumentation()],\n });\n },\n };\n}) satisfies IntegrationFn;\n\nexport const koaIntegration = defineIntegration(_koaIntegration);\n"],"names":["registerInstrumentations","KoaInstrumentation","defineIntegration"],"mappings":";;;;;;AAKA,MAAM,eAAgB,IAAG,MAAM;AAC/B,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE,CAAC,IAAIC,qCAAkB,EAAE,CAAC;AACpD,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;MACa,cAAe,GAAEC,sBAAiB,CAAC,eAAe;;;;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationMongodb = require('@opentelemetry/instrumentation-mongodb');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
const addOriginToSpan = require('../../utils/addOriginToSpan.js');
|
|
7
|
-
|
|
8
|
-
const _mongoIntegration = (() => {
|
|
9
|
-
return {
|
|
10
|
-
name: 'Mongo',
|
|
11
|
-
setupOnce() {
|
|
12
|
-
instrumentation.registerInstrumentations({
|
|
13
|
-
instrumentations: [
|
|
14
|
-
new instrumentationMongodb.MongoDBInstrumentation({
|
|
15
|
-
responseHook(span) {
|
|
16
|
-
addOriginToSpan.addOriginToSpan(span, 'auto.db.otel.mongo');
|
|
17
|
-
},
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}) ;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* MongoDB integration
|
|
27
|
-
*
|
|
28
|
-
* Capture tracing data for MongoDB.
|
|
29
|
-
*/
|
|
30
|
-
const mongoIntegration = core.defineIntegration(_mongoIntegration);
|
|
31
|
-
|
|
32
|
-
exports.mongoIntegration = mongoIntegration;
|
|
33
|
-
//# sourceMappingURL=mongo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mongo.js","sources":["../../../../src/integrations/tracing/mongo.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { MongoDBInstrumentation } from '@opentelemetry/instrumentation-mongodb';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nimport { addOriginToSpan } from '../../utils/addOriginToSpan';\n\nconst _mongoIntegration = (() => {\n return {\n name: 'Mongo',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [\n new MongoDBInstrumentation({\n responseHook(span) {\n addOriginToSpan(span, 'auto.db.otel.mongo');\n },\n }),\n ],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * MongoDB integration\n *\n * Capture tracing data for MongoDB.\n */\nexport const mongoIntegration = defineIntegration(_mongoIntegration);\n"],"names":["registerInstrumentations","MongoDBInstrumentation","addOriginToSpan","defineIntegration"],"mappings":";;;;;;;AAOA,MAAM,iBAAkB,IAAG,MAAM;AACjC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE;AAC1B,UAAU,IAAIC,6CAAsB,CAAC;AACrC,YAAY,YAAY,CAAC,IAAI,EAAE;AAC/B,cAAcC,+BAAe,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAA;AACzD,aAAa;AACb,WAAW,CAAC;AACZ,SAAS;AACT,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,gBAAiB,GAAEC,sBAAiB,CAAC,iBAAiB;;;;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationMongoose = require('@opentelemetry/instrumentation-mongoose');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
const addOriginToSpan = require('../../utils/addOriginToSpan.js');
|
|
7
|
-
|
|
8
|
-
const _mongooseIntegration = (() => {
|
|
9
|
-
return {
|
|
10
|
-
name: 'Mongoose',
|
|
11
|
-
setupOnce() {
|
|
12
|
-
instrumentation.registerInstrumentations({
|
|
13
|
-
instrumentations: [
|
|
14
|
-
new instrumentationMongoose.MongooseInstrumentation({
|
|
15
|
-
responseHook(span) {
|
|
16
|
-
addOriginToSpan.addOriginToSpan(span, 'auto.db.otel.mongoose');
|
|
17
|
-
},
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}) ;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Mongoose integration
|
|
27
|
-
*
|
|
28
|
-
* Capture tracing data for Mongoose.
|
|
29
|
-
*/
|
|
30
|
-
const mongooseIntegration = core.defineIntegration(_mongooseIntegration);
|
|
31
|
-
|
|
32
|
-
exports.mongooseIntegration = mongooseIntegration;
|
|
33
|
-
//# sourceMappingURL=mongoose.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mongoose.js","sources":["../../../../src/integrations/tracing/mongoose.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { MongooseInstrumentation } from '@opentelemetry/instrumentation-mongoose';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nimport { addOriginToSpan } from '../../utils/addOriginToSpan';\n\nconst _mongooseIntegration = (() => {\n return {\n name: 'Mongoose',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [\n new MongooseInstrumentation({\n responseHook(span) {\n addOriginToSpan(span, 'auto.db.otel.mongoose');\n },\n }),\n ],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Mongoose integration\n *\n * Capture tracing data for Mongoose.\n */\nexport const mongooseIntegration = defineIntegration(_mongooseIntegration);\n"],"names":["registerInstrumentations","MongooseInstrumentation","addOriginToSpan","defineIntegration"],"mappings":";;;;;;;AAOA,MAAM,oBAAqB,IAAG,MAAM;AACpC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,UAAU;AACpB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE;AAC1B,UAAU,IAAIC,+CAAuB,CAAC;AACtC,YAAY,YAAY,CAAC,IAAI,EAAE;AAC/B,cAAcC,+BAAe,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAA;AAC5D,aAAa;AACb,WAAW,CAAC;AACZ,SAAS;AACT,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,mBAAoB,GAAEC,sBAAiB,CAAC,oBAAoB;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationMysql = require('@opentelemetry/instrumentation-mysql');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
|
|
7
|
-
const _mysqlIntegration = (() => {
|
|
8
|
-
return {
|
|
9
|
-
name: 'Mysql',
|
|
10
|
-
setupOnce() {
|
|
11
|
-
instrumentation.registerInstrumentations({
|
|
12
|
-
instrumentations: [new instrumentationMysql.MySQLInstrumentation({})],
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}) ;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* MySQL integration
|
|
20
|
-
*
|
|
21
|
-
* Capture tracing data for mysql.
|
|
22
|
-
*/
|
|
23
|
-
const mysqlIntegration = core.defineIntegration(_mysqlIntegration);
|
|
24
|
-
|
|
25
|
-
exports.mysqlIntegration = mysqlIntegration;
|
|
26
|
-
//# sourceMappingURL=mysql.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mysql.js","sources":["../../../../src/integrations/tracing/mysql.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { MySQLInstrumentation } from '@opentelemetry/instrumentation-mysql';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nconst _mysqlIntegration = (() => {\n return {\n name: 'Mysql',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [new MySQLInstrumentation({})],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * MySQL integration\n *\n * Capture tracing data for mysql.\n */\nexport const mysqlIntegration = defineIntegration(_mysqlIntegration);\n"],"names":["registerInstrumentations","MySQLInstrumentation","defineIntegration"],"mappings":";;;;;;AAKA,MAAM,iBAAkB,IAAG,MAAM;AACjC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE,CAAC,IAAIC,yCAAoB,CAAC,EAAE,CAAC,CAAC;AACxD,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,gBAAiB,GAAEC,sBAAiB,CAAC,iBAAiB;;;;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationMysql2 = require('@opentelemetry/instrumentation-mysql2');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
const addOriginToSpan = require('../../utils/addOriginToSpan.js');
|
|
7
|
-
|
|
8
|
-
const _mysql2Integration = (() => {
|
|
9
|
-
return {
|
|
10
|
-
name: 'Mysql2',
|
|
11
|
-
setupOnce() {
|
|
12
|
-
instrumentation.registerInstrumentations({
|
|
13
|
-
instrumentations: [
|
|
14
|
-
new instrumentationMysql2.MySQL2Instrumentation({
|
|
15
|
-
responseHook(span) {
|
|
16
|
-
addOriginToSpan.addOriginToSpan(span, 'auto.db.otel.mysql2');
|
|
17
|
-
},
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
});
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}) ;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* MySQL2 integration
|
|
27
|
-
*
|
|
28
|
-
* Capture tracing data for mysql2
|
|
29
|
-
*/
|
|
30
|
-
const mysql2Integration = core.defineIntegration(_mysql2Integration);
|
|
31
|
-
|
|
32
|
-
exports.mysql2Integration = mysql2Integration;
|
|
33
|
-
//# sourceMappingURL=mysql2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mysql2.js","sources":["../../../../src/integrations/tracing/mysql2.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { MySQL2Instrumentation } from '@opentelemetry/instrumentation-mysql2';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nimport { addOriginToSpan } from '../../utils/addOriginToSpan';\n\nconst _mysql2Integration = (() => {\n return {\n name: 'Mysql2',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [\n new MySQL2Instrumentation({\n responseHook(span) {\n addOriginToSpan(span, 'auto.db.otel.mysql2');\n },\n }),\n ],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * MySQL2 integration\n *\n * Capture tracing data for mysql2\n */\nexport const mysql2Integration = defineIntegration(_mysql2Integration);\n"],"names":["registerInstrumentations","MySQL2Instrumentation","addOriginToSpan","defineIntegration"],"mappings":";;;;;;;AAOA,MAAM,kBAAmB,IAAG,MAAM;AAClC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE;AAC1B,UAAU,IAAIC,2CAAqB,CAAC;AACpC,YAAY,YAAY,CAAC,IAAI,EAAE;AAC/B,cAAcC,+BAAe,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAA;AAC1D,aAAa;AACb,WAAW,CAAC;AACZ,SAAS;AACT,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,iBAAkB,GAAEC,sBAAiB,CAAC,kBAAkB;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationNestjsCore = require('@opentelemetry/instrumentation-nestjs-core');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
|
|
7
|
-
const _nestIntegration = (() => {
|
|
8
|
-
return {
|
|
9
|
-
name: 'Nest',
|
|
10
|
-
setupOnce() {
|
|
11
|
-
instrumentation.registerInstrumentations({
|
|
12
|
-
instrumentations: [new instrumentationNestjsCore.NestInstrumentation({})],
|
|
13
|
-
});
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}) ;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Nest framework integration
|
|
20
|
-
*
|
|
21
|
-
* Capture tracing data for nest.
|
|
22
|
-
*/
|
|
23
|
-
const nestIntegration = core.defineIntegration(_nestIntegration);
|
|
24
|
-
|
|
25
|
-
exports.nestIntegration = nestIntegration;
|
|
26
|
-
//# sourceMappingURL=nest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nest.js","sources":["../../../../src/integrations/tracing/nest.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { NestInstrumentation } from '@opentelemetry/instrumentation-nestjs-core';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nconst _nestIntegration = (() => {\n return {\n name: 'Nest',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [new NestInstrumentation({})],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Nest framework integration\n *\n * Capture tracing data for nest.\n */\nexport const nestIntegration = defineIntegration(_nestIntegration);\n"],"names":["registerInstrumentations","NestInstrumentation","defineIntegration"],"mappings":";;;;;;AAKA,MAAM,gBAAiB,IAAG,MAAM;AAChC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE,CAAC,IAAIC,6CAAmB,CAAC,EAAE,CAAC,CAAC;AACvD,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,eAAgB,GAAEC,sBAAiB,CAAC,gBAAgB;;;;"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentationPg = require('@opentelemetry/instrumentation-pg');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
const addOriginToSpan = require('../../utils/addOriginToSpan.js');
|
|
7
|
-
|
|
8
|
-
const _postgresIntegration = (() => {
|
|
9
|
-
return {
|
|
10
|
-
name: 'Postgres',
|
|
11
|
-
setupOnce() {
|
|
12
|
-
instrumentation.registerInstrumentations({
|
|
13
|
-
instrumentations: [
|
|
14
|
-
new instrumentationPg.PgInstrumentation({
|
|
15
|
-
requireParentSpan: true,
|
|
16
|
-
requestHook(span) {
|
|
17
|
-
addOriginToSpan.addOriginToSpan(span, 'auto.db.otel.postgres');
|
|
18
|
-
},
|
|
19
|
-
}),
|
|
20
|
-
],
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}) ;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Postgres integration
|
|
28
|
-
*
|
|
29
|
-
* Capture tracing data for pg.
|
|
30
|
-
*/
|
|
31
|
-
const postgresIntegration = core.defineIntegration(_postgresIntegration);
|
|
32
|
-
|
|
33
|
-
exports.postgresIntegration = postgresIntegration;
|
|
34
|
-
//# sourceMappingURL=postgres.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"postgres.js","sources":["../../../../src/integrations/tracing/postgres.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { PgInstrumentation } from '@opentelemetry/instrumentation-pg';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nimport { addOriginToSpan } from '../../utils/addOriginToSpan';\n\nconst _postgresIntegration = (() => {\n return {\n name: 'Postgres',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [\n new PgInstrumentation({\n requireParentSpan: true,\n requestHook(span) {\n addOriginToSpan(span, 'auto.db.otel.postgres');\n },\n }),\n ],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Postgres integration\n *\n * Capture tracing data for pg.\n */\nexport const postgresIntegration = defineIntegration(_postgresIntegration);\n"],"names":["registerInstrumentations","PgInstrumentation","addOriginToSpan","defineIntegration"],"mappings":";;;;;;;AAOA,MAAM,oBAAqB,IAAG,MAAM;AACpC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,UAAU;AACpB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE;AAC1B,UAAU,IAAIC,mCAAiB,CAAC;AAChC,YAAY,iBAAiB,EAAE,IAAI;AACnC,YAAY,WAAW,CAAC,IAAI,EAAE;AAC9B,cAAcC,+BAAe,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAA;AAC5D,aAAa;AACb,WAAW,CAAC;AACZ,SAAS;AACT,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;MACa,mBAAoB,GAAEC,sBAAiB,CAAC,oBAAoB;;;;"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const instrumentation = require('@opentelemetry/instrumentation');
|
|
4
|
-
const instrumentation$1 = require('@prisma/instrumentation');
|
|
5
|
-
const core = require('@sentry/core');
|
|
6
|
-
|
|
7
|
-
const _prismaIntegration = (() => {
|
|
8
|
-
return {
|
|
9
|
-
name: 'Prisma',
|
|
10
|
-
setupOnce() {
|
|
11
|
-
instrumentation.registerInstrumentations({
|
|
12
|
-
instrumentations: [
|
|
13
|
-
// does not have a hook to adjust spans & add origin
|
|
14
|
-
new instrumentation$1.PrismaInstrumentation({}),
|
|
15
|
-
],
|
|
16
|
-
});
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
}) ;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Prisma integration
|
|
23
|
-
*
|
|
24
|
-
* Capture tracing data for prisma.
|
|
25
|
-
* Note: This requieres to set:
|
|
26
|
-
* previewFeatures = ["tracing"]
|
|
27
|
-
* For the prisma client.
|
|
28
|
-
* See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.
|
|
29
|
-
*/
|
|
30
|
-
const prismaIntegration = core.defineIntegration(_prismaIntegration);
|
|
31
|
-
|
|
32
|
-
exports.prismaIntegration = prismaIntegration;
|
|
33
|
-
//# sourceMappingURL=prisma.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.js","sources":["../../../../src/integrations/tracing/prisma.ts"],"sourcesContent":["import { registerInstrumentations } from '@opentelemetry/instrumentation';\nimport { PrismaInstrumentation } from '@prisma/instrumentation';\nimport { defineIntegration } from '@sentry/core';\nimport type { IntegrationFn } from '@sentry/types';\n\nconst _prismaIntegration = (() => {\n return {\n name: 'Prisma',\n setupOnce() {\n registerInstrumentations({\n instrumentations: [\n // does not have a hook to adjust spans & add origin\n new PrismaInstrumentation({}),\n ],\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Prisma integration\n *\n * Capture tracing data for prisma.\n * Note: This requieres to set:\n * previewFeatures = [\"tracing\"]\n * For the prisma client.\n * See https://www.prisma.io/docs/concepts/components/prisma-client/opentelemetry-tracing for more details.\n */\nexport const prismaIntegration = defineIntegration(_prismaIntegration);\n"],"names":["registerInstrumentations","PrismaInstrumentation","defineIntegration"],"mappings":";;;;;;AAKA,MAAM,kBAAmB,IAAG,MAAM;AAClC,EAAE,OAAO;AACT,IAAI,IAAI,EAAE,QAAQ;AAClB,IAAI,SAAS,GAAG;AAChB,MAAMA,wCAAwB,CAAC;AAC/B,QAAQ,gBAAgB,EAAE;AAC1B;AACA,UAAU,IAAIC,uCAAqB,CAAC,EAAE,CAAC;AACvC,SAAS;AACT,OAAO,CAAC,CAAA;AACR,KAAK;AACL,GAAG,CAAA;AACH,CAAC,CAAE,EAAA;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACa,iBAAkB,GAAEC,sBAAiB,CAAC,kBAAkB;;;;"}
|
package/cjs/nodeVersion.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const utils = require('@sentry/utils');
|
|
4
|
-
|
|
5
|
-
const NODE_VERSION = utils.parseSemver(process.versions.node)
|
|
6
|
-
|
|
7
|
-
;
|
|
8
|
-
const NODE_MAJOR = NODE_VERSION.major || 0;
|
|
9
|
-
|
|
10
|
-
exports.NODE_MAJOR = NODE_MAJOR;
|
|
11
|
-
exports.NODE_VERSION = NODE_VERSION;
|
|
12
|
-
//# sourceMappingURL=nodeVersion.js.map
|
package/cjs/nodeVersion.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nodeVersion.js","sources":["../../src/nodeVersion.ts"],"sourcesContent":["import { parseSemver } from '@sentry/utils';\n\nexport const NODE_VERSION = parseSemver(process.versions.node) as {\n major: number | undefined;\n minor: number | undefined;\n};\nexport const NODE_MAJOR = NODE_VERSION.major || 0;\n"],"names":["parseSemver"],"mappings":";;;;AAEO,MAAM,YAAa,GAAEA,iBAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAE;;CAG/D;MACa,UAAW,GAAE,YAAY,CAAC,KAAA,IAAS;;;;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
const contextAsyncHooks = require('@opentelemetry/context-async-hooks');
|
|
4
|
-
const opentelemetry = require('@sentry/opentelemetry');
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.
|
|
8
|
-
* It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Hub are always in sync.
|
|
9
|
-
*
|
|
10
|
-
* Note that we currently only support AsyncHooks with this,
|
|
11
|
-
* but since this should work for Node 14+ anyhow that should be good enough.
|
|
12
|
-
*/
|
|
13
|
-
const SentryContextManager = opentelemetry.wrapContextManagerClass(contextAsyncHooks.AsyncLocalStorageContextManager);
|
|
14
|
-
|
|
15
|
-
exports.SentryContextManager = SentryContextManager;
|
|
16
|
-
//# sourceMappingURL=contextManager.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contextManager.js","sources":["../../../src/otel/contextManager.ts"],"sourcesContent":["import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';\nimport { wrapContextManagerClass } from '@sentry/opentelemetry';\n\n/**\n * This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.\n * It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Hub are always in sync.\n *\n * Note that we currently only support AsyncHooks with this,\n * but since this should work for Node 14+ anyhow that should be good enough.\n */\nexport const SentryContextManager = wrapContextManagerClass(AsyncLocalStorageContextManager);\n"],"names":["wrapContextManagerClass","AsyncLocalStorageContextManager"],"mappings":";;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;MACa,oBAAqB,GAAEA,qCAAuB,CAACC,iDAA+B;;;;"}
|
package/cjs/proxy/base.js
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
var {
|
|
2
|
-
_nullishCoalesce
|
|
3
|
-
} = require('@sentry/utils');
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
|
-
|
|
7
|
-
const http = require('http');
|
|
8
|
-
require('https');
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This code was originally forked from https://github.com/TooTallNate/proxy-agents/tree/b133295fd16f6475578b6b15bd9b4e33ecb0d0b7
|
|
12
|
-
* With the following licence:
|
|
13
|
-
*
|
|
14
|
-
* (The MIT License)
|
|
15
|
-
*
|
|
16
|
-
* Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>*
|
|
17
|
-
*
|
|
18
|
-
* Permission is hereby granted, free of charge, to any person obtaining
|
|
19
|
-
* a copy of this software and associated documentation files (the
|
|
20
|
-
* 'Software'), to deal in the Software without restriction, including
|
|
21
|
-
* without limitation the rights to use, copy, modify, merge, publish,
|
|
22
|
-
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
23
|
-
* permit persons to whom the Software is furnished to do so, subject to
|
|
24
|
-
* the following conditions:*
|
|
25
|
-
*
|
|
26
|
-
* The above copyright notice and this permission notice shall be
|
|
27
|
-
* included in all copies or substantial portions of the Software.*
|
|
28
|
-
*
|
|
29
|
-
* THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
30
|
-
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
31
|
-
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
32
|
-
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
33
|
-
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
34
|
-
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
35
|
-
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
const INTERNAL = Symbol('AgentBaseInternalState');
|
|
39
|
-
|
|
40
|
-
class Agent extends http.Agent {
|
|
41
|
-
|
|
42
|
-
// Set by `http.Agent` - missing from `@types/node`
|
|
43
|
-
|
|
44
|
-
constructor(opts) {
|
|
45
|
-
super(opts);
|
|
46
|
-
this[INTERNAL] = {};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Determine whether this is an `http` or `https` request.
|
|
51
|
-
*/
|
|
52
|
-
isSecureEndpoint(options) {
|
|
53
|
-
if (options) {
|
|
54
|
-
// First check the `secureEndpoint` property explicitly, since this
|
|
55
|
-
// means that a parent `Agent` is "passing through" to this instance.
|
|
56
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
|
|
57
|
-
if (typeof (options ).secureEndpoint === 'boolean') {
|
|
58
|
-
return options.secureEndpoint;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// If no explicit `secure` endpoint, check if `protocol` property is
|
|
62
|
-
// set. This will usually be the case since using a full string URL
|
|
63
|
-
// or `URL` instance should be the most common usage.
|
|
64
|
-
if (typeof options.protocol === 'string') {
|
|
65
|
-
return options.protocol === 'https:';
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Finally, if no `protocol` property was set, then fall back to
|
|
70
|
-
// checking the stack trace of the current call stack, and try to
|
|
71
|
-
// detect the "https" module.
|
|
72
|
-
const { stack } = new Error();
|
|
73
|
-
if (typeof stack !== 'string') return false;
|
|
74
|
-
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
createSocket(req, options, cb) {
|
|
78
|
-
const connectOpts = {
|
|
79
|
-
...options,
|
|
80
|
-
secureEndpoint: this.isSecureEndpoint(options),
|
|
81
|
-
};
|
|
82
|
-
Promise.resolve()
|
|
83
|
-
.then(() => this.connect(req, connectOpts))
|
|
84
|
-
.then(socket => {
|
|
85
|
-
if (socket instanceof http.Agent) {
|
|
86
|
-
// @ts-expect-error `addRequest()` isn't defined in `@types/node`
|
|
87
|
-
return socket.addRequest(req, connectOpts);
|
|
88
|
-
}
|
|
89
|
-
this[INTERNAL].currentSocket = socket;
|
|
90
|
-
// @ts-expect-error `createSocket()` isn't defined in `@types/node`
|
|
91
|
-
super.createSocket(req, options, cb);
|
|
92
|
-
}, cb);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
createConnection() {
|
|
96
|
-
const socket = this[INTERNAL].currentSocket;
|
|
97
|
-
this[INTERNAL].currentSocket = undefined;
|
|
98
|
-
if (!socket) {
|
|
99
|
-
throw new Error('No socket was returned in the `connect()` function');
|
|
100
|
-
}
|
|
101
|
-
return socket;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
get defaultPort() {
|
|
105
|
-
return _nullishCoalesce(this[INTERNAL].defaultPort, () => ( (this.protocol === 'https:' ? 443 : 80)));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
set defaultPort(v) {
|
|
109
|
-
if (this[INTERNAL]) {
|
|
110
|
-
this[INTERNAL].defaultPort = v;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
get protocol() {
|
|
115
|
-
return _nullishCoalesce(this[INTERNAL].protocol, () => ( (this.isSecureEndpoint() ? 'https:' : 'http:')));
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
set protocol(v) {
|
|
119
|
-
if (this[INTERNAL]) {
|
|
120
|
-
this[INTERNAL].protocol = v;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
exports.Agent = Agent;
|
|
126
|
-
//# sourceMappingURL=base.js.map
|