|
20 | 20 | * @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv |
21 | 21 | */ |
22 | 22 |
|
| 23 | +/** |
| 24 | + * Deprecated, use `db.namespace` instead. |
| 25 | + * |
| 26 | + * @example customers |
| 27 | + * @example main |
| 28 | + * |
| 29 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 30 | + * |
| 31 | + * @deprecated Replaced by `db.namespace`. |
| 32 | + */ |
| 33 | +export const ATTR_DB_NAME = 'db.name' as const; |
| 34 | + |
| 35 | +/** |
| 36 | + * Deprecated, use `db.operation.name` instead. |
| 37 | + * |
| 38 | + * @example findAndModify |
| 39 | + * @example HMSET |
| 40 | + * @example SELECT |
| 41 | + * |
| 42 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 43 | + * |
| 44 | + * @deprecated Replaced by `db.operation.name`. |
| 45 | + */ |
| 46 | +export const ATTR_DB_OPERATION = 'db.operation' as const; |
| 47 | + |
| 48 | +/** |
| 49 | + * Deprecated, use `db.collection.name` instead. |
| 50 | + * |
| 51 | + * @example "mytable" |
| 52 | + * |
| 53 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 54 | + * |
| 55 | + * @deprecated Replaced by `db.collection.name`, but only if not extracting the value from `db.query.text`. |
| 56 | + */ |
| 57 | +export const ATTR_DB_SQL_TABLE = 'db.sql.table' as const; |
| 58 | + |
| 59 | +/** |
| 60 | + * The database statement being executed. |
| 61 | + * |
| 62 | + * @example SELECT * FROM wuser_table |
| 63 | + * @example SET mykey "WuValue" |
| 64 | + * |
| 65 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 66 | + * |
| 67 | + * @deprecated Replaced by `db.query.text`. |
| 68 | + */ |
| 69 | +export const ATTR_DB_STATEMENT = 'db.statement' as const; |
| 70 | + |
| 71 | +/** |
| 72 | + * Deprecated, use `db.system.name` instead. |
| 73 | + * |
| 74 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 75 | + * |
| 76 | + * @deprecated Replaced by `db.system.name`. |
| 77 | + */ |
| 78 | +export const ATTR_DB_SYSTEM = 'db.system' as const; |
| 79 | + |
| 80 | +/** |
| 81 | + * Deprecated, no replacement at this time. |
| 82 | + * |
| 83 | + * @example readonly_user |
| 84 | + * @example reporting_user |
| 85 | + * |
| 86 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 87 | + * |
| 88 | + * @deprecated Removed, no replacement at this time. |
| 89 | + */ |
| 90 | +export const ATTR_DB_USER = 'db.user' as const; |
| 91 | + |
| 92 | +/** |
| 93 | + * Deprecated, use `server.address` on client spans and `client.address` on server spans. |
| 94 | + * |
| 95 | + * @example example.com |
| 96 | + * |
| 97 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 98 | + * |
| 99 | + * @deprecated Replaced by `server.address` on client spans and `client.address` on server spans. |
| 100 | + */ |
| 101 | +export const ATTR_NET_PEER_NAME = 'net.peer.name' as const; |
| 102 | + |
| 103 | +/** |
| 104 | + * Deprecated, use `server.port` on client spans and `client.port` on server spans. |
| 105 | + * |
| 106 | + * @example 8080 |
| 107 | + * |
| 108 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 109 | + * |
| 110 | + * @deprecated Replaced by `server.port` on client spans and `client.port` on server spans. |
| 111 | + */ |
| 112 | +export const ATTR_NET_PEER_PORT = 'net.peer.port' as const; |
| 113 | + |
| 114 | +/** |
| 115 | + * Deprecated, use `network.transport`. |
| 116 | + * |
| 117 | + * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
| 118 | + * |
| 119 | + * @deprecated Replaced by `network.transport`. |
| 120 | + */ |
| 121 | +export const ATTR_NET_TRANSPORT = 'net.transport' as const; |
| 122 | + |
23 | 123 | /** |
24 | 124 | * Enum value "sqlite" for attribute {@link ATTR_DB_SYSTEM_NAME}. |
| 125 | + * |
| 126 | + * [SQLite](https://www.sqlite.org/) |
| 127 | + * |
| 128 | + * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`. |
25 | 129 | */ |
26 | 130 | export const DB_SYSTEM_NAME_VALUE_SQLITE = 'sqlite' as const; |
0 commit comments