Skip to content

Commit a61510d

Browse files
committed
Add the otlp grpc forward proxy as part of the dll
1 parent acf80ae commit a61510d

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build --features=parse_headers
1212
build --dynamic_mode=off
1313

1414
common --noenable_workspace
15-
common --remote_download_minimal
15+
common --remote_download_all
1616

1717
# Avoid using c:\windows\system32\bash.exe
1818
common:windows --shell_executable="c:\\program files\\git\\usr\\bin\\bash.exe"

BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ otel_cc_library(
7676
"@otel_sdk//exporters/otlp:otlp_grpc_exporter",
7777
"@otel_sdk//exporters/otlp:otlp_grpc_log_record_exporter",
7878
"@otel_sdk//exporters/otlp:otlp_grpc_metric_exporter",
79+
"@otel_sdk//exporters/otlp:otlp_grpc_forward_proxy",
7980
"@otel_sdk//exporters/otlp:otlp_http_exporter",
8081
"@otel_sdk//exporters/otlp:otlp_http_log_record_exporter",
8182
"@otel_sdk//exporters/otlp:otlp_http_metric_exporter",

all_sdk_includes.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#if defined(_MSC_VER)
22
#include <opentelemetry/exporters/etw/etw_logger.h>
33
#include <opentelemetry/exporters/etw/etw_tracer.h>
4+
#include <opentelemetry/exporters/otlp/otlp_grpc_forward_proxy.h>
45
#endif

exporters/otlp/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ otel_cc_library(
4141
)
4242

4343
otel_cc_library(
44-
name = "otel_grpc_forward_proxy",
44+
name = "otlp_grpc_forward_proxy",
4545
srcs = [
4646
"src/otlp_grpc_forward_proxy.cc",
4747
],

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_forward_proxy.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class OPENTELEMETRY_EXPORT_TYPE OtlpGrpcForwardProxy
2222
std::unique_ptr<Impl> impl;
2323
public:
2424
explicit OtlpGrpcForwardProxy(bool syncExport = false);
25+
~OtlpGrpcForwardProxy();
2526
void AddListenAddress(const std::string& listenAddress);
2627
void RegisterMetricExporter(const OtlpGrpcMetricExporterOptions& options);
2728
void Start();

exporters/otlp/src/otlp_grpc_forward_proxy.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ OtlpGrpcForwardProxy::OtlpGrpcForwardProxy(bool syncExport)
147147
{
148148
}
149149

150+
OtlpGrpcForwardProxy::~OtlpGrpcForwardProxy()
151+
{
152+
}
153+
154+
150155
void OtlpGrpcForwardProxy::AddListenAddress(const std::string& listenAddress)
151156
{
152157
assert(impl != nullptr);

0 commit comments

Comments
 (0)