Skip to content

Commit 8de6070

Browse files
committed
forgot to add this file
1 parent fbd592c commit 8de6070

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/*
18+
* This file contains a copy of unstable semantic convention definitions
19+
* used by this package.
20+
* @see https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
21+
*/
22+
23+
/**
24+
* Deprecated, use `db.operation.name` instead.
25+
*
26+
* @example findAndModify
27+
* @example HMSET
28+
* @example SELECT
29+
*
30+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
31+
*
32+
* @deprecated Replaced by `db.operation.name`.
33+
*/
34+
export const ATTR_DB_OPERATION = 'db.operation' as const;
35+
36+
/**
37+
* The database statement being executed.
38+
*
39+
* @example SELECT * FROM wuser_table
40+
* @example SET mykey "WuValue"
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.query.text`.
45+
*/
46+
export const ATTR_DB_STATEMENT = 'db.statement' as const;
47+
48+
/**
49+
* Deprecated, use `db.system.name` instead.
50+
*
51+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
52+
*
53+
* @deprecated Replaced by `db.system.name`.
54+
*/
55+
export const ATTR_DB_SYSTEM = 'db.system' as const;
56+
57+
/**
58+
* Deprecated, use `server.address` on client spans and `client.address` on server spans.
59+
*
60+
* @example example.com
61+
*
62+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
63+
*
64+
* @deprecated Replaced by `server.address` on client spans and `client.address` on server spans.
65+
*/
66+
export const ATTR_NET_PEER_NAME = 'net.peer.name' as const;
67+
68+
/**
69+
* Deprecated, use `server.port` on client spans and `client.port` on server spans.
70+
*
71+
* @example 8080
72+
*
73+
* @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
74+
*
75+
* @deprecated Replaced by `server.port` on client spans and `client.port` on server spans.
76+
*/
77+
export const ATTR_NET_PEER_PORT = 'net.peer.port' as const;
78+
79+
/**
80+
* Enum value "memcached" for attribute {@link ATTR_DB_SYSTEM}.
81+
*
82+
* Memcached
83+
*
84+
* @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
85+
*/
86+
export const DB_SYSTEM_VALUE_MEMCACHED = 'memcached' as const;

0 commit comments

Comments
 (0)