|
21 | 21 | #include <gmock/gmock.h> |
22 | 22 | #ifdef GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY |
23 | 23 | #include <opentelemetry/context/propagation/global_propagator.h> |
| 24 | +#include <opentelemetry/semconv/incubating/network_attributes.h> |
24 | 25 | #include <opentelemetry/trace/propagation/http_trace_context.h> |
25 | | -#include <opentelemetry/trace/semantic_conventions.h> |
26 | 26 | #endif // GOOGLE_CLOUD_CPP_HAVE_OPENTELEMETRY |
27 | 27 |
|
28 | 28 | namespace google { |
@@ -66,7 +66,7 @@ using ::testing::ResultOf; |
66 | 66 | using ::testing::UnorderedElementsAre; |
67 | 67 |
|
68 | 68 | TEST(TracingRestClient, Delete) { |
69 | | - namespace sc = ::opentelemetry::trace::SemanticConventions; |
| 69 | + namespace sc = ::opentelemetry::semconv; |
70 | 70 | auto span_catcher = InstallSpanCatcher(); |
71 | 71 |
|
72 | 72 | auto impl = std::make_unique<MockRestClient>(); |
@@ -107,7 +107,7 @@ TEST(TracingRestClient, Delete) { |
107 | 107 | SpanHasAttributes( |
108 | 108 | OTelAttribute<std::string>( |
109 | 109 | /*sc::kNetworkTransport=*/"network.transport", |
110 | | - sc::NetTransportValues::kIpTcp), |
| 110 | + sc::network::NetworkTransportValues::kTcp), |
111 | 111 | OTelAttribute<std::string>( |
112 | 112 | /*sc::kHttpRequestMethod=*/"http.request.method", |
113 | 113 | "DELETE"), |
@@ -209,7 +209,7 @@ TEST(TracingRestClient, PropagatesTraceContext) { |
209 | 209 | } |
210 | 210 |
|
211 | 211 | TEST(TracingRestClient, WithRestContextDetails) { |
212 | | - namespace sc = ::opentelemetry::trace::SemanticConventions; |
| 212 | + namespace sc = ::opentelemetry::semconv; |
213 | 213 | auto span_catcher = InstallSpanCatcher(); |
214 | 214 |
|
215 | 215 | auto impl = std::make_unique<MockRestClient>(); |
@@ -256,7 +256,7 @@ TEST(TracingRestClient, WithRestContextDetails) { |
256 | 256 | SpanHasAttributes( |
257 | 257 | OTelAttribute<std::string>( |
258 | 258 | /*sc::kNetworkTransport=*/"network.transport", |
259 | | - sc::NetTransportValues::kIpTcp), |
| 259 | + sc::network::NetworkTransportValues::kTcp), |
260 | 260 | OTelAttribute<std::string>( |
261 | 261 | /*sc::kHttpRequestMethod=*/"http.request.method", "POST"), |
262 | 262 | OTelAttribute<std::string>(/*sc::kUrlFull=*/"url.full", kUrl), |
|
0 commit comments