@use-tusk/drift-node-sdk 0.1.28 → 0.1.30

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/index.cjs CHANGED
@@ -7808,7 +7808,7 @@ var SpanUtils = class SpanUtils {
7808
7808
  }
7809
7809
  }
7810
7810
  const span = tracer.startSpan(options.name, {
7811
- kind: options.kind || import_src$35.SpanKind.CLIENT,
7811
+ kind: options.kind ?? import_src$35.SpanKind.CLIENT,
7812
7812
  attributes: options.attributes || {}
7813
7813
  }, parentContext);
7814
7814
  const spanContext = span.spanContext();
@@ -25959,7 +25959,7 @@ var SpanTransformer = class SpanTransformer {
25959
25959
  packageName,
25960
25960
  instrumentationName,
25961
25961
  submoduleName: submoduleName || "",
25962
- packageType: attributes[TdSpanAttributes.PACKAGE_TYPE] || void 0,
25962
+ packageType: attributes[TdSpanAttributes.PACKAGE_TYPE] ?? void 0,
25963
25963
  environment,
25964
25964
  inputValue: inputData,
25965
25965
  outputValue: outputData,
@@ -26033,7 +26033,10 @@ var FilesystemSpanAdapter = class {
26033
26033
  filePath = path.join(this.baseDirectory, `${isoTimestamp}_trace_${traceId}.jsonl`);
26034
26034
  this.traceFileMap.set(traceId, filePath);
26035
26035
  }
26036
- const jsonLine = JSON.stringify(span) + "\n";
26036
+ const jsonLine = JSON.stringify({
26037
+ ...span,
26038
+ kind: mapOtToPb(span.kind)
26039
+ }) + "\n";
26037
26040
  fs.appendFileSync(filePath, jsonLine, "utf8");
26038
26041
  }
26039
26042
  logger.debug(`Exported ${spans.length} span(s) to trace-specific files in ${this.baseDirectory}`);
@@ -26450,7 +26453,7 @@ var ApiSpanAdapter = class {
26450
26453
  packageName: cleanSpan.packageName,
26451
26454
  instrumentationName: cleanSpan.instrumentationName,
26452
26455
  submoduleName: cleanSpan.submoduleName,
26453
- packageType: cleanSpan.packageType || PackageType.UNSPECIFIED,
26456
+ packageType: cleanSpan.packageType ?? PackageType.UNSPECIFIED,
26454
26457
  environment: this.environment,
26455
26458
  inputValue: toStruct(cleanSpan.inputValue),
26456
26459
  outputValue: toStruct(cleanSpan.outputValue),
@@ -33732,7 +33735,7 @@ var require_src = /* @__PURE__ */ __commonJS({ "node_modules/@opentelemetry/sdk-
33732
33735
  //#endregion
33733
33736
  //#region package.json
33734
33737
  var import_src$1 = /* @__PURE__ */ __toESM(require_src(), 1);
33735
- var version = "0.1.28";
33738
+ var version = "0.1.30";
33736
33739
 
33737
33740
  //#endregion
33738
33741
  //#region src/version.ts