Skip to content

Commit 3a42cd4

Browse files
committed
Set deprecation date.
1 parent 4b86725 commit 3a42cd4

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

DEPRECATED.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,7 @@ The following files:
133133
* `api/include/opentelemetry/trace/semantic_conventions.h`
134134
* `sdk/include/opentelemetry/sdk/resource/semantic_conventions.h`
135135

136-
will be eventually removed.
136+
will be removed.
137137

138-
No date is given now, this can happen at the earliest for release 1.19.0:
139-
140-
* opentelemetry-cpp v1.17.0 only contain old header files
141-
* opentelemetry-cpp v1.18.0 will contain both old and new header files
142-
* opentelemetry-cpp v1.19.0 may only contain new header files (removing old)
143-
144-
This allows a full release cycle for applications to adjust.
138+
The removal date is planned for July 1, 2025.
139+
This allows more than six months for applications to adjust.

api/include/opentelemetry/trace/semantic_conventions.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
*/
55

66
/*
7-
DO NOT EDIT, this is an Auto-generated file
8-
from buildscripts/semantic-convention/templates/SemanticAttributes.h.j2
9-
*/
7+
* This file is DEPRECATED, and no longer updated.
8+
* See file DEPRECATED.md for details.
9+
*/
10+
11+
#ifdef OPENTELEMETRY_NO_DEPRECATED_CODE
12+
# error "header <trace/semantic_conventions.h> is deprecated."
13+
#endif
1014

1115
#pragma once
1216

sdk/include/opentelemetry/sdk/resource/semantic_conventions.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
*/
55

66
/*
7-
DO NOT EDIT, this is an Auto-generated file
8-
from buildscripts/semantic-convention/templates/SemanticAttributes.h.j2
9-
*/
7+
* This file is DEPRECATED, and no longer updated.
8+
* See file DEPRECATED.md for details.
9+
*/
10+
11+
#ifdef OPENTELEMETRY_NO_DEPRECATED_CODE
12+
# error "header <resource/semantic_conventions.h> is deprecated."
13+
#endif
1014

1115
#pragma once
1216

0 commit comments

Comments
 (0)