@sentry/opentelemetry 8.12.0 → 8.14.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/{cjs → build/cjs}/index.js +49 -19
- package/build/cjs/index.js.map +1 -0
- package/{esm → build/esm}/index.js +49 -20
- package/build/esm/index.js.map +1 -0
- package/{types → build/types}/index.d.ts +1 -1
- package/{types → build/types}/index.d.ts.map +1 -1
- package/{types → build/types}/sampler.d.ts +11 -0
- package/build/types/sampler.d.ts.map +1 -0
- package/{types-ts3.8 → build/types-ts3.8}/index.d.ts +1 -1
- package/{types-ts3.8 → build/types-ts3.8}/sampler.d.ts +11 -0
- package/package.json +47 -26
- package/cjs/index.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/types/sampler.d.ts.map +0 -1
- /package/{esm → build/esm}/package.json +0 -0
- /package/{types → build/types}/asyncContextStrategy.d.ts +0 -0
- /package/{types → build/types}/asyncContextStrategy.d.ts.map +0 -0
- /package/{types → build/types}/constants.d.ts +0 -0
- /package/{types → build/types}/constants.d.ts.map +0 -0
- /package/{types → build/types}/contextManager.d.ts +0 -0
- /package/{types → build/types}/contextManager.d.ts.map +0 -0
- /package/{types → build/types}/custom/client.d.ts +0 -0
- /package/{types → build/types}/custom/client.d.ts.map +0 -0
- /package/{types → build/types}/debug-build.d.ts +0 -0
- /package/{types → build/types}/debug-build.d.ts.map +0 -0
- /package/{types → build/types}/instrumentation.d.ts +0 -0
- /package/{types → build/types}/instrumentation.d.ts.map +0 -0
- /package/{types → build/types}/propagator.d.ts +0 -0
- /package/{types → build/types}/propagator.d.ts.map +0 -0
- /package/{types → build/types}/semanticAttributes.d.ts +0 -0
- /package/{types → build/types}/semanticAttributes.d.ts.map +0 -0
- /package/{types → build/types}/setupEventContextTrace.d.ts +0 -0
- /package/{types → build/types}/setupEventContextTrace.d.ts.map +0 -0
- /package/{types → build/types}/spanExporter.d.ts +0 -0
- /package/{types → build/types}/spanExporter.d.ts.map +0 -0
- /package/{types → build/types}/spanProcessor.d.ts +0 -0
- /package/{types → build/types}/spanProcessor.d.ts.map +0 -0
- /package/{types → build/types}/trace.d.ts +0 -0
- /package/{types → build/types}/trace.d.ts.map +0 -0
- /package/{types → build/types}/types.d.ts +0 -0
- /package/{types → build/types}/types.d.ts.map +0 -0
- /package/{types → build/types}/utils/addOriginToSpan.d.ts +0 -0
- /package/{types → build/types}/utils/addOriginToSpan.d.ts.map +0 -0
- /package/{types → build/types}/utils/contextData.d.ts +0 -0
- /package/{types → build/types}/utils/contextData.d.ts.map +0 -0
- /package/{types → build/types}/utils/convertOtelTimeToSeconds.d.ts +0 -0
- /package/{types → build/types}/utils/convertOtelTimeToSeconds.d.ts.map +0 -0
- /package/{types → build/types}/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts +0 -0
- /package/{types → build/types}/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts.map +0 -0
- /package/{types → build/types}/utils/getActiveSpan.d.ts +0 -0
- /package/{types → build/types}/utils/getActiveSpan.d.ts.map +0 -0
- /package/{types → build/types}/utils/getRequestSpanData.d.ts +0 -0
- /package/{types → build/types}/utils/getRequestSpanData.d.ts.map +0 -0
- /package/{types → build/types}/utils/getSamplingDecision.d.ts +0 -0
- /package/{types → build/types}/utils/getSamplingDecision.d.ts.map +0 -0
- /package/{types → build/types}/utils/getSpanKind.d.ts +0 -0
- /package/{types → build/types}/utils/getSpanKind.d.ts.map +0 -0
- /package/{types → build/types}/utils/groupSpansWithParents.d.ts +0 -0
- /package/{types → build/types}/utils/groupSpansWithParents.d.ts.map +0 -0
- /package/{types → build/types}/utils/isSentryRequest.d.ts +0 -0
- /package/{types → build/types}/utils/isSentryRequest.d.ts.map +0 -0
- /package/{types → build/types}/utils/mapStatus.d.ts +0 -0
- /package/{types → build/types}/utils/mapStatus.d.ts.map +0 -0
- /package/{types → build/types}/utils/parseSpanDescription.d.ts +0 -0
- /package/{types → build/types}/utils/parseSpanDescription.d.ts.map +0 -0
- /package/{types → build/types}/utils/setupCheck.d.ts +0 -0
- /package/{types → build/types}/utils/setupCheck.d.ts.map +0 -0
- /package/{types → build/types}/utils/spanTypes.d.ts +0 -0
- /package/{types → build/types}/utils/spanTypes.d.ts.map +0 -0
- /package/{types → build/types}/utils/suppressTracing.d.ts +0 -0
- /package/{types → build/types}/utils/suppressTracing.d.ts.map +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/asyncContextStrategy.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/constants.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/contextManager.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/custom/client.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/debug-build.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/instrumentation.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/propagator.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/semanticAttributes.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/setupEventContextTrace.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/spanExporter.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/spanProcessor.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/trace.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/types.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/addOriginToSpan.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/contextData.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/convertOtelTimeToSeconds.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/enhanceDscWithOpenTelemetryRootSpanName.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/getActiveSpan.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/getRequestSpanData.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/getSamplingDecision.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/getSpanKind.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/groupSpansWithParents.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/isSentryRequest.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/mapStatus.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/parseSpanDescription.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/setupCheck.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/spanTypes.d.ts +0 -0
- /package/{types-ts3.8 → build/types-ts3.8}/utils/suppressTracing.d.ts +0 -0
|
@@ -16,7 +16,7 @@ export { setOpenTelemetryContextAsyncContextStrategy } from './asyncContextStrat
|
|
|
16
16
|
export { wrapContextManagerClass } from './contextManager';
|
|
17
17
|
export { SentryPropagator } from './propagator';
|
|
18
18
|
export { SentrySpanProcessor } from './spanProcessor';
|
|
19
|
-
export { SentrySampler } from './sampler';
|
|
19
|
+
export { SentrySampler, wrapSamplingDecision, } from './sampler';
|
|
20
20
|
export { openTelemetrySetupCheck } from './utils/setupCheck';
|
|
21
21
|
export { addOpenTelemetryInstrumentation } from './instrumentation';
|
|
22
22
|
export { getClient } from '@sentry/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,GACd,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,uCAAuC,EAAE,MAAM,iDAAiD,CAAC;AAE1G,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvG,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,2CAA2C,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAEhE,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,GACd,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAE,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,uCAAuC,EAAE,MAAM,iDAAiD,CAAC;AAE1G,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvG,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,2CAA2C,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EACL,aAAa,EACb,oBAAoB,GACrB,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AAGpE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Context } from '@opentelemetry/api';
|
|
2
2
|
import { SpanKind } from '@opentelemetry/api';
|
|
3
3
|
import type { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base';
|
|
4
|
+
import { SamplingDecision } from '@opentelemetry/sdk-trace-base';
|
|
4
5
|
import type { Client, SpanAttributes } from '@sentry/types';
|
|
5
6
|
/**
|
|
6
7
|
* A custom OTEL sampler that uses Sentry sampling rates to make its decision
|
|
@@ -13,4 +14,14 @@ export declare class SentrySampler implements Sampler {
|
|
|
13
14
|
/** Returns the sampler name or short description with the configuration. */
|
|
14
15
|
toString(): string;
|
|
15
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Wrap a sampling decision with data that Sentry needs to work properly with it.
|
|
19
|
+
* If you pass `decision: undefined`, it will be treated as `NOT_RECORDING`, but in contrast to passing `NOT_RECORDING`
|
|
20
|
+
* it will not propagate this decision to downstream Sentry SDKs.
|
|
21
|
+
*/
|
|
22
|
+
export declare function wrapSamplingDecision({ decision, context, spanAttributes, }: {
|
|
23
|
+
decision: SamplingDecision | undefined;
|
|
24
|
+
context: Context;
|
|
25
|
+
spanAttributes: SpanAttributes;
|
|
26
|
+
}): SamplingResult;
|
|
16
27
|
//# sourceMappingURL=sampler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampler.d.ts","sourceRoot":"","sources":["../../src/sampler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,OAAO,EAA2C,MAAM,oBAAoB,CAAC;AACvG,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAU5D;;GAEG;AACH,qBAAa,aAAc,YAAW,OAAO;IAC3C,OAAO,CAAC,OAAO,CAAS;gBAEL,MAAM,EAAE,MAAM;IAKjC,kBAAkB;IACX,YAAY,CACjB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,cAAc,EAC9B,MAAM,EAAE,OAAO,GACd,cAAc;IAyEjB,4EAA4E;IACrE,QAAQ,IAAI,MAAM;CAG1B;AA+BD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,OAAO,EACP,cAAc,GACf,EAAE;IAAE,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,cAAc,EAAE,cAAc,CAAA;CAAE,GAAG,cAAc,CAc/G"}
|
|
@@ -16,7 +16,7 @@ export { setOpenTelemetryContextAsyncContextStrategy } from './asyncContextStrat
|
|
|
16
16
|
export { wrapContextManagerClass } from './contextManager';
|
|
17
17
|
export { SentryPropagator } from './propagator';
|
|
18
18
|
export { SentrySpanProcessor } from './spanProcessor';
|
|
19
|
-
export { SentrySampler } from './sampler';
|
|
19
|
+
export { SentrySampler, wrapSamplingDecision, } from './sampler';
|
|
20
20
|
export { openTelemetrySetupCheck } from './utils/setupCheck';
|
|
21
21
|
export { addOpenTelemetryInstrumentation } from './instrumentation';
|
|
22
22
|
export { getClient } from '@sentry/core';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Context } from '@opentelemetry/api';
|
|
2
2
|
import { SpanKind } from '@opentelemetry/api';
|
|
3
3
|
import { Sampler, SamplingResult } from '@opentelemetry/sdk-trace-base';
|
|
4
|
+
import { SamplingDecision } from '@opentelemetry/sdk-trace-base';
|
|
4
5
|
import { Client, SpanAttributes } from '@sentry/types';
|
|
5
6
|
/**
|
|
6
7
|
* A custom OTEL sampler that uses Sentry sampling rates to make its decision
|
|
@@ -13,4 +14,14 @@ export declare class SentrySampler implements Sampler {
|
|
|
13
14
|
/** Returns the sampler name or short description with the configuration. */
|
|
14
15
|
toString(): string;
|
|
15
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* Wrap a sampling decision with data that Sentry needs to work properly with it.
|
|
19
|
+
* If you pass `decision: undefined`, it will be treated as `NOT_RECORDING`, but in contrast to passing `NOT_RECORDING`
|
|
20
|
+
* it will not propagate this decision to downstream Sentry SDKs.
|
|
21
|
+
*/
|
|
22
|
+
export declare function wrapSamplingDecision({ decision, context, spanAttributes, }: {
|
|
23
|
+
decision: SamplingDecision | undefined;
|
|
24
|
+
context: Context;
|
|
25
|
+
spanAttributes: SpanAttributes;
|
|
26
|
+
}): SamplingResult;
|
|
16
27
|
//# sourceMappingURL=sampler.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/opentelemetry",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.0",
|
|
4
4
|
"description": "Official Sentry utilities for OpenTelemetry",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/opentelemetry",
|
|
@@ -10,31 +10,28 @@
|
|
|
10
10
|
"node": ">=14.18"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"
|
|
14
|
-
"esm",
|
|
15
|
-
"types",
|
|
16
|
-
"types-ts3.8"
|
|
13
|
+
"/build"
|
|
17
14
|
],
|
|
18
|
-
"main": "cjs/index.js",
|
|
19
|
-
"module": "esm/index.js",
|
|
20
|
-
"types": "types/index.d.ts",
|
|
15
|
+
"main": "build/cjs/index.js",
|
|
16
|
+
"module": "build/esm/index.js",
|
|
17
|
+
"types": "build/types/index.d.ts",
|
|
21
18
|
"exports": {
|
|
22
19
|
"./package.json": "./package.json",
|
|
23
20
|
".": {
|
|
24
21
|
"import": {
|
|
25
|
-
"types": "./types/index.d.ts",
|
|
26
|
-
"default": "./esm/index.js"
|
|
22
|
+
"types": "./build/types/index.d.ts",
|
|
23
|
+
"default": "./build/esm/index.js"
|
|
27
24
|
},
|
|
28
25
|
"require": {
|
|
29
|
-
"types": "./types/index.d.ts",
|
|
30
|
-
"default": "./cjs/index.js"
|
|
26
|
+
"types": "./build/types/index.d.ts",
|
|
27
|
+
"default": "./build/cjs/index.js"
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
30
|
},
|
|
34
31
|
"typesVersions": {
|
|
35
32
|
"<4.9": {
|
|
36
|
-
"types/index.d.ts": [
|
|
37
|
-
"types-ts3.8/index.d.ts"
|
|
33
|
+
"build/types/index.d.ts": [
|
|
34
|
+
"build/types-ts3.8/index.d.ts"
|
|
38
35
|
]
|
|
39
36
|
}
|
|
40
37
|
},
|
|
@@ -42,23 +39,47 @@
|
|
|
42
39
|
"access": "public"
|
|
43
40
|
},
|
|
44
41
|
"dependencies": {
|
|
45
|
-
"@sentry/core": "8.
|
|
46
|
-
"@sentry/types": "8.
|
|
47
|
-
"@sentry/utils": "8.
|
|
42
|
+
"@sentry/core": "8.14.0",
|
|
43
|
+
"@sentry/types": "8.14.0",
|
|
44
|
+
"@sentry/utils": "8.14.0"
|
|
48
45
|
},
|
|
49
46
|
"peerDependencies": {
|
|
50
47
|
"@opentelemetry/api": "^1.9.0",
|
|
51
|
-
"@opentelemetry/core": "^1.25.
|
|
52
|
-
"@opentelemetry/instrumentation": "^0.52.
|
|
53
|
-
"@opentelemetry/sdk-trace-base": "^1.25.
|
|
54
|
-
"@opentelemetry/semantic-conventions": "^1.25.
|
|
48
|
+
"@opentelemetry/core": "^1.25.1",
|
|
49
|
+
"@opentelemetry/instrumentation": "^0.52.1",
|
|
50
|
+
"@opentelemetry/sdk-trace-base": "^1.25.1",
|
|
51
|
+
"@opentelemetry/semantic-conventions": "^1.25.1"
|
|
55
52
|
},
|
|
56
53
|
"devDependencies": {
|
|
57
54
|
"@opentelemetry/api": "^1.9.0",
|
|
58
|
-
"@opentelemetry/context-async-hooks": "^1.25.
|
|
59
|
-
"@opentelemetry/core": "^1.25.
|
|
60
|
-
"@opentelemetry/sdk-trace-base": "^1.25.
|
|
61
|
-
"@opentelemetry/semantic-conventions": "^1.25.
|
|
55
|
+
"@opentelemetry/context-async-hooks": "^1.25.1",
|
|
56
|
+
"@opentelemetry/core": "^1.25.1",
|
|
57
|
+
"@opentelemetry/sdk-trace-base": "^1.25.1",
|
|
58
|
+
"@opentelemetry/semantic-conventions": "^1.25.1"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "run-p build:transpile build:types",
|
|
62
|
+
"build:dev": "yarn build",
|
|
63
|
+
"build:transpile": "rollup -c rollup.npm.config.mjs",
|
|
64
|
+
"build:types": "run-s build:types:core build:types:downlevel",
|
|
65
|
+
"build:types:core": "tsc -p tsconfig.types.json",
|
|
66
|
+
"build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8",
|
|
67
|
+
"build:watch": "run-p build:transpile:watch build:types:watch",
|
|
68
|
+
"build:dev:watch": "yarn build:watch",
|
|
69
|
+
"build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
|
|
70
|
+
"build:types:watch": "tsc -p tsconfig.types.json --watch",
|
|
71
|
+
"build:tarball": "npm pack",
|
|
72
|
+
"circularDepCheck": "madge --circular src/index.ts",
|
|
73
|
+
"clean": "rimraf build coverage sentry-opentelemetry-*.tgz",
|
|
74
|
+
"fix": "eslint . --format stylish --fix",
|
|
75
|
+
"lint": "eslint . --format stylish",
|
|
76
|
+
"test": "yarn test:jest",
|
|
77
|
+
"test:jest": "jest",
|
|
78
|
+
"test:watch": "jest --watch",
|
|
79
|
+
"yalc:publish": "yalc publish --push --sig"
|
|
80
|
+
},
|
|
81
|
+
"volta": {
|
|
82
|
+
"extends": "../../package.json"
|
|
62
83
|
},
|
|
63
84
|
"sideEffects": false
|
|
64
|
-
}
|
|
85
|
+
}
|