var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var openetelemetry_sdl_exports = {};
__export(openetelemetry_sdl_exports, {
  schema: () => schema
});
module.exports = __toCommonJS(openetelemetry_sdl_exports);
var import_graphql_tag = __toESM(require("graphql-tag"));
const schema = import_graphql_tag.default`
  type OTelTraceAttribute {
    id: String!
    hash: String!
    key: String!
    value: JSON!
    type: String!
    createdAt: DateTime!
    updatedAt: DateTime!
  }

  type OTelTraceResource {
    id: String!
    attributesHash: String!
    attributes: [OTelTraceAttribute!]!
    createdAt: DateTime!
    updatedAt: DateTime!
  }

  type OTelTraceSpan {
    id: String!
    type: OTelTraceSpanType!
    brief: String
    traceId: String!
    traceState: String
    spanId: String!
    parentId: String
    name: String!
    flags: Int
    kind: Int
    startTimeNano: String! # BigInt!
    endTimeNano: String! # BigInt!
    attributes: [OTelTraceAttribute!]!
    events: [OTelTraceEvent!]!
    links: [OTelTraceLink!]!
    statusMessage: String
    statusCode: Int
    scope: OTelTraceScope!
    resource: OTelTraceResource!
    createdAt: DateTime!
    updatedAt: DateTime!
  }

  type OTelTraceSpanType {
    id: String!
    name: String!
    colour: String!
    createdAt: DateTime!
    updatedAt: DateTime!
  }

  type OTelTraceEvent {
    id: String!
    startTimeNano: String! # BigInt!
    name: String!
    attributes: [OTelTraceAttribute!]!
    # span: OTelTraceSpan!
    createdAt: DateTime!
    updatedAt: DateTime!
  }

  type OTelTraceLink {
    id: String!
    traceId: String!
    spanId: String!
    traceState: String
    flags: Int
    # span: OTelTraceSpan!
    attributes: [OTelTraceAttribute!]!
    createdAt: DateTime!
    updatedAt: DateTime!
  }

  type OTelTraceScope {
    id: String!
    name: String!
    version: String
    createdAt: DateTime!
    updatedAt: DateTime!
  }

  type OTelTrace {
    id: String!
    spans: [OTelTraceSpan!]!
  }

  type Query {
    otelSpans: [OTelTraceSpan!]! @skipAuth
    otelSpan(id: String!): OTelTraceSpan @skipAuth
    otelSpanAncestors(id: String!): [OTelTraceSpan!]! @skipAuth
    otelSpanDescendants(id: String!): [OTelTraceSpan!]! @skipAuth
    otelSpanCount: Int! @skipAuth
    otelTraces: [OTelTrace!]! @skipAuth
    otelTrace(id: String!): OTelTrace @skipAuth
    otelTraceTreeMapData(id: String!): JSON! @skipAuth
    otelTraceCount: Int! @skipAuth
  }

  type Mutation {
    otelTruncateSpans: Boolean! @skipAuth
    otelRetypeSpans: Boolean! @skipAuth
  }
`;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  schema
});
//# sourceMappingURL=openetelemetry.sdl.js.map
