import {
  init_ids,
  newId
} from "./chunk-F4WUVOLE.js";

// src/sessions/trace.ts
init_ids();
function newTrace() {
  return {
    trace_id: newId("trace"),
    span_id: newId("span"),
    parent_span_id: null
  };
}
function childSpan(parent) {
  return {
    trace_id: parent.trace_id,
    span_id: newId("span"),
    parent_span_id: parent.span_id
  };
}

export {
  newTrace,
  childSpan
};
