Skip to content

Commit bb0548a

Browse files
committed
adding 1.19->1.22 semconv traceattributes deprecations
1 parent a325a8f commit bb0548a

File tree

3 files changed

+229
-2
lines changed

3 files changed

+229
-2
lines changed

script/semantic-conventions/README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If attributes have been removed in an update, you can add them back in via `temp
1414
the contents will be included in the generated output. Please remember to mark them as deprecated to discourage their future
1515
use.
1616

17-
After generating new sementic conventions, you can locate removed attributes via:
17+
After generating new semantic conventions, you can locate removed attributes via:
1818

1919
```shell
2020
diff <(grep "public const" src/SemConv/ResourceAttributes.php | sort -u) \
@@ -23,4 +23,11 @@ diff <(grep "public const" src/SemConv/ResourceAttributes.php | sort -u) \
2323
| grep -v SCHEMA_URL
2424
```
2525

26+
```shell
27+
diff <(grep "public const" src/SemConv/TraceAttributes.php | sort -u) \
28+
<(git show main:src/SemConv/TraceAttributes.php | grep "public const" | sort -u) \
29+
| grep '^>' \
30+
| grep -v SCHEMA_URL
31+
```
32+
2633
Use this output as a basis for updating the relevant deprecations file and generate a second time to include them in the final output.

script/semantic-conventions/templates/trace_deprecations.php.partial

+111-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,114 @@
8686
/**
8787
* @deprecated
8888
*/
89-
public const NET_PEER_IP = 'net.peer.ip';
89+
public const NET_PEER_IP = 'net.peer.ip';
90+
91+
/**
92+
* @deprecated
93+
*/
94+
public const HTTP_CLIENT_IP = 'http.client_ip';
95+
96+
/**
97+
* @deprecated
98+
*/
99+
public const HTTP_FLAVOR = 'http.flavor';
100+
101+
/**
102+
* @deprecated
103+
*/
104+
public const MESSAGING_CONSUMER_ID = 'messaging.consumer.id';
105+
106+
/**
107+
* @deprecated
108+
*/
109+
public const MESSAGING_DESTINATION_KIND = 'messaging.destination.kind';
110+
111+
/**
112+
* @deprecated
113+
*/
114+
public const MESSAGING_KAFKA_CLIENT_ID = 'messaging.kafka.client_id';
115+
116+
/**
117+
* @deprecated
118+
*/
119+
public const MESSAGING_KAFKA_SOURCE_PARTITION = 'messaging.kafka.source.partition';
120+
121+
/**
122+
* @deprecated
123+
*/
124+
public const MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES = 'messaging.message.payload_compressed_size_bytes';
125+
126+
/**
127+
* @deprecated
128+
*/
129+
public const MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES = 'messaging.message.payload_size_bytes';
130+
131+
/**
132+
* @deprecated
133+
*/
134+
public const MESSAGING_ROCKETMQ_CLIENT_ID = 'messaging.rocketmq.client_id';
135+
136+
/**
137+
* @deprecated
138+
*/
139+
public const MESSAGING_SOURCE_ANONYMOUS = 'messaging.source.anonymous';
140+
141+
/**
142+
* @deprecated
143+
*/
144+
public const MESSAGING_SOURCE_KIND = 'messaging.source.kind';
145+
146+
/**
147+
* @deprecated
148+
*/
149+
public const MESSAGING_SOURCE_NAME = 'messaging.source.name';
150+
151+
/**
152+
* @deprecated
153+
*/
154+
public const MESSAGING_SOURCE_TEMPLATE = 'messaging.source.template';
155+
156+
/**
157+
* @deprecated
158+
*/
159+
public const MESSAGING_SOURCE_TEMPORARY = 'messaging.source.temporary';
160+
161+
/**
162+
* @deprecated
163+
*/
164+
public const NET_APP_PROTOCOL_NAME = 'net.app.protocol.name';
165+
166+
/**
167+
* @deprecated
168+
*/
169+
public const NET_APP_PROTOCOL_VERSION = 'net.app.protocol.version';
170+
171+
/**
172+
* @deprecated
173+
*/
174+
public const NET_HOST_CARRIER_ICC = 'net.host.carrier.icc';
175+
176+
/**
177+
* @deprecated
178+
*/
179+
public const NET_HOST_CARRIER_MCC = 'net.host.carrier.mcc';
180+
181+
/**
182+
* @deprecated
183+
*/
184+
public const NET_HOST_CARRIER_MNC = 'net.host.carrier.mnc';
185+
186+
/**
187+
* @deprecated
188+
*/
189+
public const NET_HOST_CARRIER_NAME = 'net.host.carrier.name';
190+
191+
/**
192+
* @deprecated
193+
*/
194+
public const NET_HOST_CONNECTION_SUBTYPE = 'net.host.connection.subtype';
195+
196+
/**
197+
* @deprecated
198+
*/
199+
public const NET_HOST_CONNECTION_TYPE = 'net.host.connection.type';

src/SemConv/TraceAttributes.php

+110
Original file line numberDiff line numberDiff line change
@@ -1939,4 +1939,114 @@ interface TraceAttributes
19391939
* @deprecated
19401940
*/
19411941
public const NET_PEER_IP = 'net.peer.ip';
1942+
1943+
/**
1944+
* @deprecated
1945+
*/
1946+
public const HTTP_CLIENT_IP = 'http.client_ip';
1947+
1948+
/**
1949+
* @deprecated
1950+
*/
1951+
public const HTTP_FLAVOR = 'http.flavor';
1952+
1953+
/**
1954+
* @deprecated
1955+
*/
1956+
public const MESSAGING_CONSUMER_ID = 'messaging.consumer.id';
1957+
1958+
/**
1959+
* @deprecated
1960+
*/
1961+
public const MESSAGING_DESTINATION_KIND = 'messaging.destination.kind';
1962+
1963+
/**
1964+
* @deprecated
1965+
*/
1966+
public const MESSAGING_KAFKA_CLIENT_ID = 'messaging.kafka.client_id';
1967+
1968+
/**
1969+
* @deprecated
1970+
*/
1971+
public const MESSAGING_KAFKA_SOURCE_PARTITION = 'messaging.kafka.source.partition';
1972+
1973+
/**
1974+
* @deprecated
1975+
*/
1976+
public const MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES = 'messaging.message.payload_compressed_size_bytes';
1977+
1978+
/**
1979+
* @deprecated
1980+
*/
1981+
public const MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES = 'messaging.message.payload_size_bytes';
1982+
1983+
/**
1984+
* @deprecated
1985+
*/
1986+
public const MESSAGING_ROCKETMQ_CLIENT_ID = 'messaging.rocketmq.client_id';
1987+
1988+
/**
1989+
* @deprecated
1990+
*/
1991+
public const MESSAGING_SOURCE_ANONYMOUS = 'messaging.source.anonymous';
1992+
1993+
/**
1994+
* @deprecated
1995+
*/
1996+
public const MESSAGING_SOURCE_KIND = 'messaging.source.kind';
1997+
1998+
/**
1999+
* @deprecated
2000+
*/
2001+
public const MESSAGING_SOURCE_NAME = 'messaging.source.name';
2002+
2003+
/**
2004+
* @deprecated
2005+
*/
2006+
public const MESSAGING_SOURCE_TEMPLATE = 'messaging.source.template';
2007+
2008+
/**
2009+
* @deprecated
2010+
*/
2011+
public const MESSAGING_SOURCE_TEMPORARY = 'messaging.source.temporary';
2012+
2013+
/**
2014+
* @deprecated
2015+
*/
2016+
public const NET_APP_PROTOCOL_NAME = 'net.app.protocol.name';
2017+
2018+
/**
2019+
* @deprecated
2020+
*/
2021+
public const NET_APP_PROTOCOL_VERSION = 'net.app.protocol.version';
2022+
2023+
/**
2024+
* @deprecated
2025+
*/
2026+
public const NET_HOST_CARRIER_ICC = 'net.host.carrier.icc';
2027+
2028+
/**
2029+
* @deprecated
2030+
*/
2031+
public const NET_HOST_CARRIER_MCC = 'net.host.carrier.mcc';
2032+
2033+
/**
2034+
* @deprecated
2035+
*/
2036+
public const NET_HOST_CARRIER_MNC = 'net.host.carrier.mnc';
2037+
2038+
/**
2039+
* @deprecated
2040+
*/
2041+
public const NET_HOST_CARRIER_NAME = 'net.host.carrier.name';
2042+
2043+
/**
2044+
* @deprecated
2045+
*/
2046+
public const NET_HOST_CONNECTION_SUBTYPE = 'net.host.connection.subtype';
2047+
2048+
/**
2049+
* @deprecated
2050+
*/
2051+
public const NET_HOST_CONNECTION_TYPE = 'net.host.connection.type';
19422052
}

0 commit comments

Comments
 (0)