import { Struct, Value } from "./struct-DWOuk3SS.js"; import { Duration } from "./duration-DbFzyNwE.js"; import { Timestamp } from "./timestamp-D0q8Zt_J.js"; import { JsonSchema } from "./json_schema-dDDndex9.js"; import { BinaryReadOptions, BinaryWriteOptions, IBinaryReader, IBinaryWriter, MessageType, PartialMessage } from "@protobuf-ts/runtime"; //#region generated/ts/core/span.d.ts /** * Universal span structure that works for all instrumentation types * * @generated from protobuf message tusk.drift.core.v1.Span */ interface Span { /** * Core span identity * * @generated from protobuf field: string trace_id = 1 */ traceId: string; /** * @generated from protobuf field: string span_id = 2 */ spanId: string; /** * @generated from protobuf field: string parent_span_id = 3 */ parentSpanId: string; /** * Visual name * * @generated from protobuf field: string name = 4 */ name: string; /** * Instrumentation identity * * @generated from protobuf field: string package_name = 5 */ packageName: string; /** * @generated from protobuf field: string instrumentation_name = 6 */ instrumentationName: string; /** * @generated from protobuf field: string submodule_name = 7 */ submoduleName: string; /** * Package type classification * * @generated from protobuf field: tusk.drift.core.v1.PackageType package_type = 8 */ packageType: PackageType; /** * Input/output data * * @generated from protobuf field: google.protobuf.Struct input_value = 9 */ inputValue?: Struct; /** * @generated from protobuf field: google.protobuf.Struct output_value = 10 */ outputValue?: Struct; /** * @generated from protobuf field: tusk.drift.core.v1.JsonSchema input_schema = 11 */ inputSchema?: JsonSchema; /** * @generated from protobuf field: tusk.drift.core.v1.JsonSchema output_schema = 12 */ outputSchema?: JsonSchema; /** * Hash-based matching and validation * * @generated from protobuf field: string input_schema_hash = 13 */ inputSchemaHash: string; /** * @generated from protobuf field: string output_schema_hash = 14 */ outputSchemaHash: string; /** * @generated from protobuf field: string input_value_hash = 15 */ inputValueHash: string; /** * @generated from protobuf field: string output_value_hash = 16 */ outputValueHash: string; /** * Span metadata * * @generated from protobuf field: tusk.drift.core.v1.SpanKind kind = 17 */ kind: SpanKind; /** * @generated from protobuf field: tusk.drift.core.v1.SpanStatus status = 18 */ status?: SpanStatus; /** * @generated from protobuf field: bool is_pre_app_start = 19 */ isPreAppStart: boolean; /** * Timing information * * @generated from protobuf field: google.protobuf.Timestamp timestamp = 20 */ timestamp?: Timestamp; /** * @generated from protobuf field: google.protobuf.Duration duration = 21 */ duration?: Duration; /** * Span relationships and state * * @generated from protobuf field: bool is_root_span = 22 */ isRootSpan: boolean; /** * @generated from protobuf field: google.protobuf.Struct metadata = 23 */ metadata?: Struct; /** * Environment information * * @generated from protobuf field: optional string environment = 24 */ environment?: string; } /** * Span completion status * * @generated from protobuf message tusk.drift.core.v1.SpanStatus */ interface SpanStatus { /** * @generated from protobuf field: tusk.drift.core.v1.StatusCode code = 1 */ code: StatusCode; /** * @generated from protobuf field: string message = 2 */ message: string; } /** * Span events (logs) - optional * * @generated from protobuf message tusk.drift.core.v1.SpanEvent */ interface SpanEvent { /** * @generated from protobuf field: string name = 1 */ name: string; /** * @generated from protobuf field: google.protobuf.Timestamp timestamp = 2 */ timestamp?: Timestamp; /** * @generated from protobuf field: map attributes = 3 */ attributes: { [key: string]: Value; }; } /** * Span links - optional * * @generated from protobuf message tusk.drift.core.v1.SpanLink */ interface SpanLink { /** * @generated from protobuf field: string trace_id = 1 */ traceId: string; /** * @generated from protobuf field: string span_id = 2 */ spanId: string; /** * @generated from protobuf field: map attributes = 3 */ attributes: { [key: string]: Value; }; } /** * Trace collection * * @generated from protobuf message tusk.drift.core.v1.Trace */ interface Trace { /** * @generated from protobuf field: string trace_id = 1 */ traceId: string; /** * @generated from protobuf field: repeated tusk.drift.core.v1.Span spans = 2 */ spans: Span[]; /** * @generated from protobuf field: google.protobuf.Timestamp started_at = 3 */ startedAt?: Timestamp; /** * @generated from protobuf field: google.protobuf.Timestamp completed_at = 4 */ completedAt?: Timestamp; /** * @generated from protobuf field: map metadata = 5 */ metadata: { [key: string]: string; }; } /** * Package type classification enum * Langauge agnostic * * @generated from protobuf enum tusk.drift.core.v1.PackageType */ declare enum PackageType { /** * @generated from protobuf enum value: PACKAGE_TYPE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * HTTP-based operations * * @generated from protobuf enum value: PACKAGE_TYPE_HTTP = 1; */ HTTP = 1, /** * GraphQL operations * * @generated from protobuf enum value: PACKAGE_TYPE_GRAPHQL = 2; */ GRAPHQL = 2, /** * gRPC operations * * @generated from protobuf enum value: PACKAGE_TYPE_GRPC = 3; */ GRPC = 3, /** * PostgreSQL operations * * @generated from protobuf enum value: PACKAGE_TYPE_PG = 4; */ PG = 4, /** * MySQL operations * * @generated from protobuf enum value: PACKAGE_TYPE_MYSQL = 5; */ MYSQL = 5, /** * MongoDB operations * * @generated from protobuf enum value: PACKAGE_TYPE_MONGODB = 6; */ MONGODB = 6, /** * Redis caching operations * * @generated from protobuf enum value: PACKAGE_TYPE_REDIS = 7; */ REDIS = 7, /** * Apache Kafka messaging * * @generated from protobuf enum value: PACKAGE_TYPE_KAFKA = 8; */ KAFKA = 8, /** * RabbitMQ messaging * * @generated from protobuf enum value: PACKAGE_TYPE_RABBITMQ = 9; */ RABBITMQ = 9, /** * Firestore operations * * @generated from protobuf enum value: PACKAGE_TYPE_FIRESTORE = 10; */ FIRESTORE = 10, /** * Prisma operations * * @generated from protobuf enum value: PACKAGE_TYPE_PRISMA = 11; */ PRISMA = 11, } /** * OpenTelemetry-compatible span kinds * * @generated from protobuf enum tusk.drift.core.v1.SpanKind */ declare enum SpanKind { /** * @generated from protobuf enum value: SPAN_KIND_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Internal operation * * @generated from protobuf enum value: SPAN_KIND_INTERNAL = 1; */ INTERNAL = 1, /** * Server-side operation * * @generated from protobuf enum value: SPAN_KIND_SERVER = 2; */ SERVER = 2, /** * Client-side operation * * @generated from protobuf enum value: SPAN_KIND_CLIENT = 3; */ CLIENT = 3, /** * Message producer * * @generated from protobuf enum value: SPAN_KIND_PRODUCER = 4; */ PRODUCER = 4, /** * Message consumer * * @generated from protobuf enum value: SPAN_KIND_CONSUMER = 5; */ CONSUMER = 5, } /** * @generated from protobuf enum tusk.drift.core.v1.StatusCode */ declare enum StatusCode { /** * Default state * * @generated from protobuf enum value: STATUS_CODE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Success * * @generated from protobuf enum value: STATUS_CODE_OK = 1; */ OK = 1, /** * Error occurred * * @generated from protobuf enum value: STATUS_CODE_ERROR = 2; */ ERROR = 2, } declare class Span$Type extends MessageType { constructor(); create(value?: PartialMessage): Span; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Span): Span; internalBinaryWrite(message: Span, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.core.v1.Span */ declare const Span: Span$Type; declare class SpanStatus$Type extends MessageType { constructor(); create(value?: PartialMessage): SpanStatus; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SpanStatus): SpanStatus; internalBinaryWrite(message: SpanStatus, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.core.v1.SpanStatus */ declare const SpanStatus: SpanStatus$Type; declare class SpanEvent$Type extends MessageType { constructor(); create(value?: PartialMessage): SpanEvent; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SpanEvent): SpanEvent; private binaryReadMap3; internalBinaryWrite(message: SpanEvent, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.core.v1.SpanEvent */ declare const SpanEvent: SpanEvent$Type; declare class SpanLink$Type extends MessageType { constructor(); create(value?: PartialMessage): SpanLink; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SpanLink): SpanLink; private binaryReadMap3; internalBinaryWrite(message: SpanLink, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.core.v1.SpanLink */ declare const SpanLink: SpanLink$Type; declare class Trace$Type extends MessageType { constructor(); create(value?: PartialMessage): Trace; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Trace): Trace; private binaryReadMap5; internalBinaryWrite(message: Trace, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message tusk.drift.core.v1.Trace */ declare const Trace: Trace$Type; //#endregion export { PackageType, Span, SpanEvent, SpanKind, SpanLink, SpanStatus, StatusCode, Trace }; //# sourceMappingURL=span-BumZb1lr.d.ts.map