Skip to content

Commit

Permalink
Moved otlp_grpc_utils.cc to opentelemetry_exporter_otlp_grpc_client. (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb authored and yxue committed Dec 5, 2022
1 parent 521db47 commit 2c2db88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
20 changes: 2 additions & 18 deletions exporters/otlp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,17 @@ cc_library(
],
)

cc_library(
name = "otlp_grpc_utils",
srcs = [
"src/otlp_grpc_utils.cc",
],
hdrs = [
"include/opentelemetry/exporters/otlp/otlp_grpc_utils.h",
],
strip_include_prefix = "include",
tags = ["otlp"],
deps = [
"//api",
"//sdk:headers",
"@com_github_grpc_grpc//:grpc++",
],
)

cc_library(
name = "otlp_grpc_client",
srcs = [
"src/otlp_grpc_client.cc",
"src/otlp_grpc_utils.cc",
],
hdrs = [
"include/opentelemetry/exporters/otlp/otlp_environment.h",
"include/opentelemetry/exporters/otlp/otlp_grpc_client.h",
"include/opentelemetry/exporters/otlp/otlp_grpc_exporter_options.h",
"include/opentelemetry/exporters/otlp/otlp_grpc_utils.h",
"include/opentelemetry/exporters/otlp/protobuf_include_prefix.h",
"include/opentelemetry/exporters/otlp/protobuf_include_suffix.h",
],
Expand Down Expand Up @@ -111,7 +96,6 @@ cc_library(
deps = [
":otlp_recordable",
":otlp_grpc_client",
":otlp_grpc_utils",
"//ext:headers",
"//sdk/src/trace",

Expand Down
5 changes: 3 additions & 2 deletions exporters/otlp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ add_library(
opentelemetry_otlp_recordable
src/otlp_log_recordable.cc src/otlp_recordable.cc
src/otlp_populate_attribute_utils.cc src/otlp_recordable_utils.cc
src/otlp_metric_utils.cc src/otlp_grpc_utils.cc)
src/otlp_metric_utils.cc)
set_target_properties(opentelemetry_otlp_recordable PROPERTIES EXPORT_NAME
otlp_recordable)

Expand All @@ -24,7 +24,8 @@ target_link_libraries(opentelemetry_otlp_recordable

if(WITH_OTLP_GRPC)
find_package(gRPC REQUIRED)
add_library(opentelemetry_exporter_otlp_grpc_client src/otlp_grpc_client.cc)
add_library(opentelemetry_exporter_otlp_grpc_client src/otlp_grpc_client.cc
src/otlp_grpc_utils.cc)
set_target_properties(opentelemetry_exporter_otlp_grpc_client
PROPERTIES EXPORT_NAME otlp_grpc_client)
target_link_libraries(
Expand Down

0 comments on commit 2c2db88

Please sign in to comment.