Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Increment the:
* [BUG] Stop reading past a `nostd::string_view` that is not NUL terminated
[#4346](https://github.com/open-telemetry/opentelemetry-cpp/pull/4346)

* [OTLP EXPORTERS] add otlp_common target for shared otlp utils
[#4333](https://github.com/open-telemetry/opentelemetry-cpp/pull/4333)

* [OTLP/HTTP] Honor `Retry-After` response header when retrying exports,
supporting both delay-seconds and HTTP-date formats per RFC 7231 §7.1.3.
[#4172](https://github.com/open-telemetry/opentelemetry-cpp/issues/4172)
Expand Down
3 changes: 2 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ build configuration.
| **exporters_ostream** | opentelemetry-cpp::ostream_log_record_exporter |
| | opentelemetry-cpp::ostream_metrics_exporter |
| | opentelemetry-cpp::ostream_span_exporter |
| **exporters_otlp_common** | opentelemetry-cpp::proto |
| **exporters_otlp_common** | opentelemetry-cpp::otlp_common |
| | opentelemetry-cpp::proto |
| | opentelemetry-cpp::otlp_recordable |
| **exporters_otlp_file** | opentelemetry-cpp::otlp_file_client |
| | opentelemetry-cpp::otlp_file_exporter |
Expand Down
1 change: 1 addition & 0 deletions cmake/templates/opentelemetry-cpp-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
# opentelemetry-cpp::ostream_metrics_exporter - Imported target of COMPONENT exporters_ostream
# opentelemetry-cpp::ostream_span_exporter - Imported target of COMPONENT exporters_ostream
# opentelemetry-cpp::proto - Imported target of COMPONENT exporters_otlp_common
# opentelemetry-cpp::otlp_common - Imported target of COMPONENT exporters_otlp_common
# opentelemetry-cpp::otlp_recordable - Imported target of COMPONENT exporters_otlp_common
# opentelemetry-cpp::otlp_file_client - Imported target of COMPONENT exporters_otlp_file
# opentelemetry-cpp::otlp_file_exporter - Imported target of COMPONENT exporters_otlp_file
Expand Down
28 changes: 26 additions & 2 deletions exporters/otlp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,31 @@ cc_library(
)

cc_library(
name = "otlp_recordable",
name = "otlp_common",
srcs = [
"src/otlp_environment.cc",
],
hdrs = [
"include/opentelemetry/exporters/otlp/otlp_environment.h",
],
strip_include_prefix = "include",
tags = ["otlp"],
deps = [
"//api",
"//sdk/src/common:env_variables",
],
)

cc_library(
name = "otlp_recordable",
srcs = [
"src/otlp_log_recordable.cc",
"src/otlp_metric_utils.cc",
"src/otlp_populate_attribute_utils.cc",
"src/otlp_recordable.cc",
"src/otlp_recordable_utils.cc",
],
hdrs = [
"include/opentelemetry/exporters/otlp/otlp_environment.h",
"include/opentelemetry/exporters/otlp/otlp_log_recordable.h",
"include/opentelemetry/exporters/otlp/otlp_metric_utils.h",
"include/opentelemetry/exporters/otlp/otlp_populate_attribute_utils.h",
Expand Down Expand Up @@ -98,6 +112,7 @@ cc_library(
"otlp_grpc",
],
deps = [
":otlp_common",
"//ext:headers",
"//sdk/src/common:global_log_handler",
"@com_github_grpc_grpc//:grpc++",
Expand Down Expand Up @@ -144,6 +159,7 @@ cc_library(
"otlp_grpc",
],
deps = [
":otlp_common",
":otlp_recordable",
":otlp_grpc_client",
"//ext:headers",
Expand Down Expand Up @@ -237,6 +253,7 @@ cc_library(
"otlp_http",
],
deps = [
":otlp_common",
":otlp_http_client",
":otlp_recordable",
"//sdk/src/trace",
Expand Down Expand Up @@ -313,6 +330,7 @@ cc_library(
"otlp_file",
],
deps = [
":otlp_common",
":otlp_file_client",
":otlp_recordable",
"//sdk/src/trace",
Expand Down Expand Up @@ -361,6 +379,7 @@ cc_library(
"otlp_grpc_metric",
],
deps = [
":otlp_common",
":otlp_recordable",
":otlp_grpc_client",
"//ext:headers",
Expand Down Expand Up @@ -413,6 +432,7 @@ cc_library(
"otlp_http_metric",
],
deps = [
":otlp_common",
":otlp_http_client",
":otlp_recordable",
"//sdk/src/metrics",
Expand Down Expand Up @@ -461,6 +481,7 @@ cc_library(
"otlp_file_metric",
],
deps = [
":otlp_common",
":otlp_file_client",
":otlp_recordable",
"//sdk/src/metrics",
Expand Down Expand Up @@ -509,6 +530,7 @@ cc_library(
"otlp_http_log",
],
deps = [
":otlp_common",
":otlp_http_client",
":otlp_recordable",
"//sdk/src/logs",
Expand Down Expand Up @@ -557,6 +579,7 @@ cc_library(
"otlp_file_log",
],
deps = [
":otlp_common",
":otlp_file_client",
":otlp_recordable",
"//sdk/src/logs",
Expand Down Expand Up @@ -606,6 +629,7 @@ cc_library(
"otlp_grpc_log",
],
deps = [
":otlp_common",
":otlp_recordable",
":otlp_grpc_client",
"//ext:headers",
Expand Down
Loading
Loading