UNPKG

autotel

Version:
175 lines (174 loc) 5.26 kB
//#region src/attributes/registry.ts /** * OpenTelemetry attribute registry * Central source of truth for attribute keys, types, and metadata */ const UserAttributes = { id: "user.id", email: "user.email", name: "user.name", fullName: "user.full_name", hash: "user.hash", roles: "user.roles" }; const SessionAttributes = { id: "session.id", previousId: "session.previous_id" }; const DeviceAttributes = { id: "device.id", manufacturer: "device.manufacturer", modelIdentifier: "device.model.identifier", modelName: "device.model.name" }; const HTTPAttributes = { connectionState: "http.connection.state", requestMethod: "http.request.method", requestMethodOriginal: "http.request.method_original", requestResendCount: "http.request.resend_count", requestSize: "http.request.size", requestBodySize: "http.request.body.size", responseSize: "http.response.size", responseBodySize: "http.response.body.size", responseStatusCode: "http.response.status_code", route: "http.route" }; const DBAttributes = { clientConnectionPoolName: "db.client.connection.pool.name", clientConnectionState: "db.client.connection.state", collectionName: "db.collection.name", namespace: "db.namespace", operationBatchSize: "db.operation.batch.size", operationName: "db.operation.name", querySummary: "db.query.summary", queryText: "db.query.text", responseReturnedRows: "db.response.returned_rows", responseStatusCode: "db.response.status_code", systemName: "db.system.name", statement: "db.statement" }; const ServiceAttributes = { name: "service.name", instance: "service.instance.id", version: "service.version" }; const NetworkAttributes = { peerAddress: "network.peer.address", peerPort: "network.peer.port", transport: "network.transport", type: "network.type", protocolName: "network.protocol.name", protocolVersion: "network.protocol.version" }; const ServerAddressAttributes = { address: "server.address", port: "server.port", socketAddress: "server.socket.address" }; const URLAttributes = { scheme: "url.scheme", full: "url.full", path: "url.path", query: "url.query", fragment: "url.fragment" }; const ErrorAttributes = { type: "error.type", message: "error.message", stackTrace: "error.stack", code: "error.code" }; const ExceptionAttributes = { escaped: "exception.escaped", message: "exception.message", stackTrace: "exception.stacktrace", type: "exception.type", moduleName: "exception.module" }; const ProcessAttributes = { pid: "process.pid", executablePath: "process.executable.path", command: "process.command", owner: "process.owner", commandArgs: "process.command_args" }; const ThreadAttributes = { id: "thread.id", name: "thread.name" }; const ContainerAttributes = { id: "container.id", name: "container.name", image: "container.image.name", tag: "container.image.tag" }; const K8sAttributes = { podName: "k8s.pod.name", namespaceName: "k8s.namespace.name", deploymentName: "k8s.deployment.name", state: "k8s.state.name" }; const CloudAttributes = { provider: "cloud.provider", accountId: "cloud.account.id", region: "cloud.region", availabilityZone: "cloud.availability_zone", platform: "cloud.platform" }; const FaaSAttributes = { name: "faas.name", version: "faas.version", instance: "faas.instance", execution: "faas.execution", coldstart: "faas.coldstart" }; const FeatureFlagAttributes = { key: "feature.flag.key", provider: "feature.flag.provider_name", variant: "feature.flag.variant.name" }; const MessagingAttributes = { system: "messaging.system", destination: "messaging.destination.name", operation: "messaging.operation", messageId: "messaging.message.id", conversationId: "messaging.conversation_id", batchMessageCount: "messaging.batch.message_count", consumerGroup: "messaging.consumer.group" }; const RPCAttributes = { system: "rpc.system", service: "rpc.service", method: "rpc.method", grpcStatusCode: "rpc.grpc.status_code" }; const GraphQLAttributes = { document: "graphql.document", operationName: "graphql.operation.name", operationType: "graphql.operation.type" }; const OTelAttributes = { libraryName: "otel.library.name", libraryVersion: "otel.library.version", statusCode: "otel.status_code" }; const CodeAttributes = { namespace: "code.namespace", filepath: "code.filepath", function: "code.function", class: "code.class", method: "code.method", column: "code.column", lineNumber: "code.lineno", repository: "code.repository", revision: "code.revision" }; const TLSAttributes = { protocolVersion: "tls.protocol.version", cipher: "tls.cipher", curveName: "tls.curve.name", resumed: "tls.resumed" }; //#endregion export { URLAttributes as C, ThreadAttributes as S, RPCAttributes as _, DeviceAttributes as a, SessionAttributes as b, FaaSAttributes as c, HTTPAttributes as d, K8sAttributes as f, ProcessAttributes as g, OTelAttributes as h, DBAttributes as i, FeatureFlagAttributes as l, NetworkAttributes as m, CodeAttributes as n, ErrorAttributes as o, MessagingAttributes as p, ContainerAttributes as r, ExceptionAttributes as s, CloudAttributes as t, GraphQLAttributes as u, ServerAddressAttributes as v, UserAttributes as w, TLSAttributes as x, ServiceAttributes as y }; //# sourceMappingURL=registry-DVSmWg6Y.js.map