UNPKG

autotel

Version:
319 lines (317 loc) 7.84 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 Object.defineProperty(exports, 'CloudAttributes', { enumerable: true, get: function () { return CloudAttributes; } }); Object.defineProperty(exports, 'CodeAttributes', { enumerable: true, get: function () { return CodeAttributes; } }); Object.defineProperty(exports, 'ContainerAttributes', { enumerable: true, get: function () { return ContainerAttributes; } }); Object.defineProperty(exports, 'DBAttributes', { enumerable: true, get: function () { return DBAttributes; } }); Object.defineProperty(exports, 'DeviceAttributes', { enumerable: true, get: function () { return DeviceAttributes; } }); Object.defineProperty(exports, 'ErrorAttributes', { enumerable: true, get: function () { return ErrorAttributes; } }); Object.defineProperty(exports, 'ExceptionAttributes', { enumerable: true, get: function () { return ExceptionAttributes; } }); Object.defineProperty(exports, 'FaaSAttributes', { enumerable: true, get: function () { return FaaSAttributes; } }); Object.defineProperty(exports, 'FeatureFlagAttributes', { enumerable: true, get: function () { return FeatureFlagAttributes; } }); Object.defineProperty(exports, 'GraphQLAttributes', { enumerable: true, get: function () { return GraphQLAttributes; } }); Object.defineProperty(exports, 'HTTPAttributes', { enumerable: true, get: function () { return HTTPAttributes; } }); Object.defineProperty(exports, 'K8sAttributes', { enumerable: true, get: function () { return K8sAttributes; } }); Object.defineProperty(exports, 'MessagingAttributes', { enumerable: true, get: function () { return MessagingAttributes; } }); Object.defineProperty(exports, 'NetworkAttributes', { enumerable: true, get: function () { return NetworkAttributes; } }); Object.defineProperty(exports, 'OTelAttributes', { enumerable: true, get: function () { return OTelAttributes; } }); Object.defineProperty(exports, 'ProcessAttributes', { enumerable: true, get: function () { return ProcessAttributes; } }); Object.defineProperty(exports, 'RPCAttributes', { enumerable: true, get: function () { return RPCAttributes; } }); Object.defineProperty(exports, 'ServerAddressAttributes', { enumerable: true, get: function () { return ServerAddressAttributes; } }); Object.defineProperty(exports, 'ServiceAttributes', { enumerable: true, get: function () { return ServiceAttributes; } }); Object.defineProperty(exports, 'SessionAttributes', { enumerable: true, get: function () { return SessionAttributes; } }); Object.defineProperty(exports, 'TLSAttributes', { enumerable: true, get: function () { return TLSAttributes; } }); Object.defineProperty(exports, 'ThreadAttributes', { enumerable: true, get: function () { return ThreadAttributes; } }); Object.defineProperty(exports, 'URLAttributes', { enumerable: true, get: function () { return URLAttributes; } }); Object.defineProperty(exports, 'UserAttributes', { enumerable: true, get: function () { return UserAttributes; } }); //# sourceMappingURL=registry-DYgvb62e.cjs.map