@overkill-dev/reporter-opentelemetry 0.0.1 → 0.0.3
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/LICENSE +21 -0
- package/package.json +33 -6
- package/packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.d.ts +5 -0
- package/packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.d.ts.map +1 -0
- package/packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.js +31 -0
- package/packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.js.map +1 -0
- package/readme.md +30 -5
- package/reporters/opentelemetry-reporter.d.ts +11 -0
- package/reporters/opentelemetry-reporter.d.ts.map +1 -0
- package/reporters/opentelemetry-reporter.js +154 -0
- package/reporters/opentelemetry-reporter.js.map +1 -0
- package/sbom.cdx.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Overkill contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"author": "Christian Rackerseder <git@echooff.de>",
|
|
3
|
+
"bugs": {
|
|
4
|
+
"url": "https://github.com/enormora/overkill/issues"
|
|
5
|
+
},
|
|
6
|
+
"description": "OTLP JSON file reporter for Overkill timing data.",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": "^26.9.0"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.js",
|
|
13
|
+
"types": "./packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/enormora/overkill#readme",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"tdd",
|
|
19
|
+
"test",
|
|
20
|
+
"tests"
|
|
21
|
+
],
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"name": "@overkill-dev/reporter-opentelemetry",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@overkill-dev/engine": "0.0.45"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/enormora/overkill.git"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"type": "module",
|
|
33
|
+
"version": "0.0.3"
|
|
34
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DefinedReporter, FinalResultReporter } from '@overkill-dev/engine';
|
|
2
|
+
import { type OpenTelemetryReporterOptions } from '../../reporters/opentelemetry-reporter.ts';
|
|
3
|
+
export type { OpenTelemetryReporterOptions } from '../../reporters/opentelemetry-reporter.ts';
|
|
4
|
+
export declare function createOpenTelemetryReporter(options: OpenTelemetryReporterOptions): DefinedReporter<FinalResultReporter>;
|
|
5
|
+
//# sourceMappingURL=reporter-opentelemetry.entry-point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reporter-opentelemetry.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,sBAAiC,CAAC;AAC5F,OAAO,EAEH,KAAK,4BAA4B,EACpC,MAAM,2CAA2C,CAAC;AAEnD,YAAY,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AAsB9F,wBAAgB,2BAA2B,CACvC,OAAO,EAAE,4BAA4B,GACtC,eAAe,CAAC,mBAAmB,CAAC,CAatC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { randomBytes } from 'node:crypto';
|
|
2
|
+
import { mkdir, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { dirname } from 'node:path';
|
|
4
|
+
import { createOpenTelemetryReporter as createReporter } from "../../reporters/opentelemetry-reporter.js";
|
|
5
|
+
const spanIdByteLength = 8;
|
|
6
|
+
const traceIdByteLength = 16;
|
|
7
|
+
const hexCharactersPerByte = 2;
|
|
8
|
+
async function writeOpenTelemetryFile(path, content) {
|
|
9
|
+
await mkdir(dirname(path), { recursive: true });
|
|
10
|
+
await writeFile(path, content, 'utf8');
|
|
11
|
+
}
|
|
12
|
+
function randomHexId(byteLength) {
|
|
13
|
+
const invalidId = '0'.repeat(byteLength * hexCharactersPerByte);
|
|
14
|
+
let id = invalidId;
|
|
15
|
+
while (id === invalidId) {
|
|
16
|
+
id = randomBytes(byteLength).toString('hex');
|
|
17
|
+
}
|
|
18
|
+
return id;
|
|
19
|
+
}
|
|
20
|
+
export function createOpenTelemetryReporter(options) {
|
|
21
|
+
return createReporter({
|
|
22
|
+
createSpanId() {
|
|
23
|
+
return randomHexId(spanIdByteLength);
|
|
24
|
+
},
|
|
25
|
+
createTraceId() {
|
|
26
|
+
return randomHexId(traceIdByteLength);
|
|
27
|
+
},
|
|
28
|
+
writeFile: writeOpenTelemetryFile
|
|
29
|
+
}, options);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=reporter-opentelemetry.entry-point.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reporter-opentelemetry.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/reporter-opentelemetry/reporter-opentelemetry.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EACH,2BAA2B,IAAI,cAAc,EAEhD,MAAM,2CAA2C,CAAC;AAInD,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAC7B,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAE/B,KAAK,UAAU,sBAAsB,CAAC,IAAY,EAAE,OAAe;IAC/D,MAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,MAAM,SAAS,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,SAAS,WAAW,CAAC,UAAkB;IACnC,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,CAAC,UAAU,GAAG,oBAAoB,CAAC,CAAC;IAChE,IAAI,EAAE,GAAG,SAAS,CAAC;IAEnB,OAAO,EAAE,KAAK,SAAS,EAAE,CAAC;QACtB,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACjD,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED,MAAM,UAAU,2BAA2B,CACvC,OAAqC;IAErC,OAAO,cAAc,CACjB;QACI,YAAY;YACR,OAAO,WAAW,CAAC,gBAAgB,CAAC,CAAC;QACzC,CAAC;QACD,aAAa;YACT,OAAO,WAAW,CAAC,iBAAiB,CAAC,CAAC;QAC1C,CAAC;QACD,SAAS,EAAE,sBAAsB;KACpC,EACD,OAAO,CACV,CAAC;AACN,CAAC"}
|
package/readme.md
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@overkill-dev/reporter-opentelemetry`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
can subsequently be configured for it. It contains no real package content and is published already
|
|
5
|
-
deprecated.
|
|
3
|
+
OTLP JSON file reporter for Overkill timing data.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
Top-level API:
|
|
6
|
+
|
|
7
|
+
- `createOpenTelemetryReporter()`
|
|
8
|
+
|
|
9
|
+
Add the final-result reporter with an explicit output file:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { execute } from '@overkill-dev/engine';
|
|
13
|
+
import { createOpenTelemetryReporter } from '@overkill-dev/reporter-opentelemetry';
|
|
14
|
+
|
|
15
|
+
await execute(testPlan, {
|
|
16
|
+
execution: { mode: 'serial-in-process' },
|
|
17
|
+
reporters: [
|
|
18
|
+
createOpenTelemetryReporter({
|
|
19
|
+
outputFile: '.overkill/opentelemetry-traces.jsonl'
|
|
20
|
+
})
|
|
21
|
+
],
|
|
22
|
+
runFacts: {},
|
|
23
|
+
startedAt: new Date().toISOString()
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The reporter requires precise timing collection. It writes one OTLP `TracesData`
|
|
28
|
+
JSON object followed by a newline after the run completes, replacing any existing
|
|
29
|
+
file. The trace contains one `overkill.run` span and one child span for every
|
|
30
|
+
retained precise timing span. Parent directories are created automatically.
|
|
31
|
+
|
|
32
|
+
The reporter performs no network communication and requires no OpenTelemetry SDK.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DefinedReporter, type FinalResultReporter } from '@overkill-dev/engine';
|
|
2
|
+
export type OpenTelemetryReporterDependencies = {
|
|
3
|
+
readonly createSpanId: () => string;
|
|
4
|
+
readonly createTraceId: () => string;
|
|
5
|
+
readonly writeFile: (path: string, content: string) => Promise<void>;
|
|
6
|
+
};
|
|
7
|
+
export type OpenTelemetryReporterOptions = {
|
|
8
|
+
readonly outputFile: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function createOpenTelemetryReporter(dependencies: OpenTelemetryReporterDependencies, options: OpenTelemetryReporterOptions): DefinedReporter<FinalResultReporter>;
|
|
11
|
+
//# sourceMappingURL=opentelemetry-reporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opentelemetry-reporter.d.ts","sourceRoot":"","sources":["../../../../source/reporters/opentelemetry-reporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,eAAe,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAuB,CAAC;AAQvG,MAAM,MAAM,iCAAiC,GAAG;IAC5C,QAAQ,CAAC,YAAY,EAAE,MAAM,MAAM,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,MAAM,MAAM,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxE,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACvC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC/B,CAAC;AAiMF,wBAAgB,2BAA2B,CACvC,YAAY,EAAE,iCAAiC,EAC/C,OAAO,EAAE,4BAA4B,GACtC,eAAe,CAAC,mBAAmB,CAAC,CAatC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { defineReporter } from "@overkill-dev/engine";
|
|
2
|
+
const preciseTimingRequiredMessage = 'OpenTelemetry reporter requires precise run timings. Enable timings.collection as "precise" or use --timings.';
|
|
3
|
+
const nanosecondsPerMicrosecond = 1000n;
|
|
4
|
+
const internalSpanKind = 1;
|
|
5
|
+
const errorStatusCode = 2;
|
|
6
|
+
const sampledTraceFlags = 1;
|
|
7
|
+
function unixNanoseconds(unixMicroseconds) {
|
|
8
|
+
return (BigInt(unixMicroseconds) * nanosecondsPerMicrosecond).toString();
|
|
9
|
+
}
|
|
10
|
+
function runSummaryAttributes(summary) {
|
|
11
|
+
return {
|
|
12
|
+
'overkill.run.summary.crashed': summary.crashed,
|
|
13
|
+
'overkill.run.summary.defined': summary.defined,
|
|
14
|
+
'overkill.run.summary.discovered': summary.discovered,
|
|
15
|
+
'overkill.run.summary.failed': summary.failed,
|
|
16
|
+
'overkill.run.summary.inconclusive': summary.inconclusive,
|
|
17
|
+
'overkill.run.summary.passed': summary.passed,
|
|
18
|
+
'overkill.run.summary.planned': summary.planned,
|
|
19
|
+
'overkill.run.summary.resource_exhausted': summary.resourceExhausted,
|
|
20
|
+
'overkill.run.summary.runtime_policy': summary.runtimePolicy,
|
|
21
|
+
'overkill.run.summary.skipped': summary.skipped
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function timingSummaryAttributes(summary) {
|
|
25
|
+
return {
|
|
26
|
+
'overkill.timing.summary.runner_overhead_wall_time_us': summary.runnerOverheadWallTimeMicroseconds,
|
|
27
|
+
'overkill.timing.summary.test_execution_wall_time_us': summary.testExecutionWallTimeMicroseconds,
|
|
28
|
+
'overkill.timing.summary.total_wall_time_us': summary.totalWallTimeMicroseconds
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function preciseTimingAttributes(precise) {
|
|
32
|
+
const attributes = {
|
|
33
|
+
'overkill.timing.ambient_noise': precise.ambientNoise,
|
|
34
|
+
'overkill.timing.dropped_span_count': precise.droppedSpanCount,
|
|
35
|
+
'overkill.timing.overhead.aggregation_us': precise.overhead.aggregationMicroseconds,
|
|
36
|
+
'overkill.timing.overhead.recording_us': precise.overhead.recordingMicroseconds,
|
|
37
|
+
'overkill.timing.overhead.rendering_us': precise.overhead.renderingMicroseconds,
|
|
38
|
+
'overkill.timing.overhead.serialization_us': precise.overhead.serializationMicroseconds,
|
|
39
|
+
'overkill.timing.precise': true,
|
|
40
|
+
'overkill.timing.slowest_span_limit': precise.slowestSpanLimit,
|
|
41
|
+
'overkill.timing.span_limit': precise.spanLimit,
|
|
42
|
+
'overkill.timing.truncated': precise.truncated
|
|
43
|
+
};
|
|
44
|
+
for (const aggregate of precise.aggregates) {
|
|
45
|
+
const prefix = `overkill.timing.aggregate.${aggregate.kind}`;
|
|
46
|
+
attributes[`${prefix}.count`] = aggregate.count;
|
|
47
|
+
attributes[`${prefix}.duration_us`] = aggregate.durationMicroseconds;
|
|
48
|
+
}
|
|
49
|
+
return attributes;
|
|
50
|
+
}
|
|
51
|
+
function optionalAttribute(key, value) {
|
|
52
|
+
return value === null ? {} : { [key]: value };
|
|
53
|
+
}
|
|
54
|
+
function childSpanAttributes(span) {
|
|
55
|
+
return {
|
|
56
|
+
'overkill.timing.kind': span.kind,
|
|
57
|
+
'overkill.timing.status': span.status,
|
|
58
|
+
...optionalAttribute('overkill.timing.label', span.label),
|
|
59
|
+
...optionalAttribute('overkill.process.id', span.processId),
|
|
60
|
+
...optionalAttribute('overkill.worker.id', span.workerId),
|
|
61
|
+
...optionalAttribute('overkill.resource.name', span.resource?.name ?? null),
|
|
62
|
+
...optionalAttribute('overkill.resource.scope', span.resource?.scope ?? null)
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function otlpAnyValue(value) {
|
|
66
|
+
if (typeof value === 'boolean') {
|
|
67
|
+
return { boolValue: value };
|
|
68
|
+
}
|
|
69
|
+
if (typeof value === 'number') {
|
|
70
|
+
return { intValue: value.toString() };
|
|
71
|
+
}
|
|
72
|
+
return { stringValue: value };
|
|
73
|
+
}
|
|
74
|
+
function otlpAttributes(attributes) {
|
|
75
|
+
return Object.entries(attributes).map(function toOtlpAttribute([key, value]) {
|
|
76
|
+
return { key, value: otlpAnyValue(value) };
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function spanStatus(failed) {
|
|
80
|
+
return failed ? { code: errorStatusCode } : {};
|
|
81
|
+
}
|
|
82
|
+
function childSpan(dependencies, traceId, parentSpanId, timingSpan) {
|
|
83
|
+
return {
|
|
84
|
+
attributes: otlpAttributes(childSpanAttributes(timingSpan)),
|
|
85
|
+
endTimeUnixNano: unixNanoseconds(timingSpan.startTimeUnixMicroseconds + timingSpan.durationMicroseconds),
|
|
86
|
+
flags: sampledTraceFlags,
|
|
87
|
+
kind: internalSpanKind,
|
|
88
|
+
name: `overkill.timing.${timingSpan.kind}`,
|
|
89
|
+
parentSpanId,
|
|
90
|
+
spanId: dependencies.createSpanId(),
|
|
91
|
+
startTimeUnixNano: unixNanoseconds(timingSpan.startTimeUnixMicroseconds),
|
|
92
|
+
status: spanStatus(timingSpan.status !== 'success'),
|
|
93
|
+
traceId
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function traceData(dependencies, result) {
|
|
97
|
+
const { precise } = result.timings;
|
|
98
|
+
if (precise === null) {
|
|
99
|
+
throw new Error(preciseTimingRequiredMessage);
|
|
100
|
+
}
|
|
101
|
+
const traceId = dependencies.createTraceId();
|
|
102
|
+
const rootSpanId = dependencies.createSpanId();
|
|
103
|
+
const startTime = precise.observationWindow.startTimeUnixMicroseconds;
|
|
104
|
+
const rootSpan = {
|
|
105
|
+
attributes: otlpAttributes({
|
|
106
|
+
'overkill.run.plan_status': result.planStatus,
|
|
107
|
+
'overkill.run.status': result.status,
|
|
108
|
+
...runSummaryAttributes(result.summary),
|
|
109
|
+
...timingSummaryAttributes(result.timings.summary),
|
|
110
|
+
...preciseTimingAttributes(precise)
|
|
111
|
+
}),
|
|
112
|
+
endTimeUnixNano: unixNanoseconds(startTime + precise.observationWindow.durationMicroseconds),
|
|
113
|
+
flags: sampledTraceFlags,
|
|
114
|
+
kind: internalSpanKind,
|
|
115
|
+
name: 'overkill.run',
|
|
116
|
+
parentSpanId: '',
|
|
117
|
+
spanId: rootSpanId,
|
|
118
|
+
startTimeUnixNano: unixNanoseconds(startTime),
|
|
119
|
+
status: spanStatus(result.status === 'failed'),
|
|
120
|
+
traceId
|
|
121
|
+
};
|
|
122
|
+
const spans = [
|
|
123
|
+
rootSpan,
|
|
124
|
+
...precise.spans.map(function toChildSpan(timingSpan) {
|
|
125
|
+
return childSpan(dependencies, traceId, rootSpanId, timingSpan);
|
|
126
|
+
})
|
|
127
|
+
];
|
|
128
|
+
return {
|
|
129
|
+
resourceSpans: [{
|
|
130
|
+
resource: {
|
|
131
|
+
attributes: otlpAttributes({ 'service.name': 'overkill' })
|
|
132
|
+
},
|
|
133
|
+
scopeSpans: [{
|
|
134
|
+
scope: { name: '@overkill-dev/reporter-opentelemetry' },
|
|
135
|
+
spans
|
|
136
|
+
}]
|
|
137
|
+
}]
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export function createOpenTelemetryReporter(dependencies, options) {
|
|
141
|
+
return defineReporter(function createOpenTelemetryRuntimeReporter() {
|
|
142
|
+
return {
|
|
143
|
+
dispose: null,
|
|
144
|
+
kind: 'final-result',
|
|
145
|
+
name: 'opentelemetry',
|
|
146
|
+
sinks: [{ kind: 'file', path: options.outputFile }],
|
|
147
|
+
async onResult(result) {
|
|
148
|
+
const content = `${JSON.stringify(traceData(dependencies, result))}\n`;
|
|
149
|
+
await dependencies.writeFile(options.outputFile, content);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=opentelemetry-reporter.js.map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omFormat": "CycloneDX",
|
|
4
|
+
"specVersion": "1.6",
|
|
5
|
+
"version": 1,
|
|
6
|
+
"metadata": {
|
|
7
|
+
"tools": {
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"type": "application",
|
|
11
|
+
"name": "packtory",
|
|
12
|
+
"version": "0.0.97"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"component": {
|
|
17
|
+
"type": "library",
|
|
18
|
+
"name": "@overkill-dev/reporter-opentelemetry",
|
|
19
|
+
"version": "0.0.3",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/reporter-opentelemetry@0.0.3",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/reporter-opentelemetry@0.0.3"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"components": [
|
|
25
|
+
{
|
|
26
|
+
"type": "library",
|
|
27
|
+
"name": "@overkill-dev/engine",
|
|
28
|
+
"version": "0.0.45",
|
|
29
|
+
"bom-ref": "pkg:npm/@overkill-dev/engine@0.0.45",
|
|
30
|
+
"scope": "optional",
|
|
31
|
+
"licenses": [
|
|
32
|
+
{
|
|
33
|
+
"expression": "MIT"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"purl": "pkg:npm/@overkill-dev/engine@0.0.45"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"dependencies": [
|
|
40
|
+
{
|
|
41
|
+
"ref": "pkg:npm/@overkill-dev/engine@0.0.45"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"ref": "pkg:npm/@overkill-dev/reporter-opentelemetry@0.0.3",
|
|
45
|
+
"dependsOn": [
|
|
46
|
+
"pkg:npm/@overkill-dev/engine@0.0.45"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|