Skip to content

Commit 0baf501

Browse files
authored
[BUILD] enum CanonicalCode names too generic... conflict with old C defines (#2385)
1 parent 045be9c commit 0baf501

7 files changed

Lines changed: 10 additions & 149 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Increment the:
2121
[#2378](https://github.com/open-telemetry/opentelemetry-cpp/pull/2378)
2222
* [API] Add InstrumentationScope attributes in TracerProvider::GetTracer()
2323
[#2371](https://github.com/open-telemetry/opentelemetry-cpp/pull/2371)
24+
* [BUILD] enum CanonicalCode names too generic... conflict with old C defines
25+
[#2385](https://github.com/open-telemetry/opentelemetry-cpp/pull/2385)
2426

2527
Important changes:
2628

@@ -48,6 +50,13 @@ Breaking changes:
4850
* The experimental `CMake` option `WITH_REMOVE_METER_PREVIEW` is removed,
4951
use option `WITH_ABI_VERSION_2` instead.
5052

53+
* [BUILD] enum CanonicalCode names too generic... conflict with old C defines
54+
[#2385](https://github.com/open-telemetry/opentelemetry-cpp/pull/2385)
55+
* Header file `opentelemetry/trace/canonical_code.h` is unused,
56+
and is now removed.
57+
* This header should not be included directly in an application.
58+
If this is the case, please remove any remaining include directives.
59+
5160
## [1.12.0] 2023-10-16
5261

5362
* [BUILD] Support `pkg-config`

api/include/opentelemetry/trace/canonical_code.h

Lines changed: 0 additions & 141 deletions
This file was deleted.

api/include/opentelemetry/trace/span.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "opentelemetry/nostd/span.h"
1111
#include "opentelemetry/nostd/string_view.h"
1212
#include "opentelemetry/nostd/type_traits.h"
13-
#include "opentelemetry/trace/canonical_code.h"
1413
#include "opentelemetry/trace/span_context.h"
1514
#include "opentelemetry/trace/span_metadata.h"
1615

exporters/ostream/include/opentelemetry/exporters/ostream/span_exporter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class OStreamSpanExporter final : public opentelemetry::sdk::trace::SpanExporter
5555
mutable opentelemetry::common::SpinLockMutex lock_;
5656
bool isShutdown() const noexcept;
5757

58-
// Mapping status number to the string from api/include/opentelemetry/trace/canonical_code.h
58+
// Mapping status number to the string from api/include/opentelemetry/trace/span_metadata.h
5959
std::map<int, std::string> statusMap{{0, "Unset"}, {1, "Ok"}, {2, "Error"}};
6060

6161
// various print helpers

ext/include/opentelemetry/ext/zpages/threadsafe_span_data.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "opentelemetry/nostd/string_view.h"
1313
#include "opentelemetry/sdk/trace/recordable.h"
1414
#include "opentelemetry/sdk/trace/span_data.h"
15-
#include "opentelemetry/trace/canonical_code.h"
1615
#include "opentelemetry/trace/span.h"
1716
#include "opentelemetry/trace/span_id.h"
1817
#include "opentelemetry/trace/trace_id.h"

ext/include/opentelemetry/ext/zpages/tracez_data.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
#include "opentelemetry/nostd/span.h"
1313
#include "opentelemetry/nostd/string_view.h"
1414
#include "opentelemetry/sdk/trace/span_data.h"
15-
#include "opentelemetry/trace/canonical_code.h"
1615
#include "opentelemetry/trace/span_id.h"
1716
#include "opentelemetry/trace/trace_id.h"
1817
#include "opentelemetry/version.h"
1918

2019
using opentelemetry::ext::zpages::ThreadsafeSpanData;
21-
using opentelemetry::trace::CanonicalCode;
2220
using opentelemetry::trace::SpanId;
2321
using opentelemetry::trace::TraceId;
2422

ext/include/opentelemetry/ext/zpages/tracez_data_aggregator.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
#include "opentelemetry/nostd/span.h"
2020
#include "opentelemetry/nostd/string_view.h"
2121
#include "opentelemetry/sdk/trace/span_data.h"
22-
#include "opentelemetry/trace/canonical_code.h"
23-
24-
using opentelemetry::trace::CanonicalCode;
2522

2623
OPENTELEMETRY_BEGIN_NAMESPACE
2724
namespace ext

0 commit comments

Comments
 (0)