@aaac/observability 0.3.1 → 0.3.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/dist/{chunk-4PNXLHYZ.js → chunk-G2PU3MOC.js} +4 -4
- package/dist/chunk-G2PU3MOC.js.map +1 -0
- package/dist/{chunk-D4ZWC5FU.js → chunk-LP4C2FS7.js} +2 -2
- package/dist/cli/global-record.js +2 -2
- package/dist/cli/index.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-4PNXLHYZ.js.map +0 -1
- /package/dist/{chunk-D4ZWC5FU.js.map → chunk-LP4C2FS7.js.map} +0 -0
|
@@ -1258,7 +1258,7 @@ var SqliteSink = class {
|
|
|
1258
1258
|
};
|
|
1259
1259
|
|
|
1260
1260
|
// src/otel/otel-emitter.ts
|
|
1261
|
-
import {
|
|
1261
|
+
import { TracerProvider, BatchSpanProcessor } from "@opentelemetry/sdk-trace";
|
|
1262
1262
|
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
|
|
1263
1263
|
import { trace, SpanKind, SpanStatusCode, ROOT_CONTEXT } from "@opentelemetry/api";
|
|
1264
1264
|
var OtelEmitter = class {
|
|
@@ -1275,8 +1275,8 @@ var OtelEmitter = class {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
const serviceName = options.serviceName ?? "@aaac/observability";
|
|
1277
1277
|
const exporter = new OTLPTraceExporter({ url: `${endpoint}/v1/traces` });
|
|
1278
|
-
const processor = new BatchSpanProcessor(exporter);
|
|
1279
|
-
this.provider = new
|
|
1278
|
+
const processor = new BatchSpanProcessor({ exporter });
|
|
1279
|
+
this.provider = new TracerProvider({
|
|
1280
1280
|
resource: {
|
|
1281
1281
|
attributes: { "service.name": serviceName }
|
|
1282
1282
|
},
|
|
@@ -2806,4 +2806,4 @@ export {
|
|
|
2806
2806
|
renderReportMarkdown,
|
|
2807
2807
|
createPipeline
|
|
2808
2808
|
};
|
|
2809
|
-
//# sourceMappingURL=chunk-
|
|
2809
|
+
//# sourceMappingURL=chunk-G2PU3MOC.js.map
|