From 0b966f83777ec4b090927dfea9a1594b8ceccf07 Mon Sep 17 00:00:00 2001 From: Marc Alff Date: Thu, 22 Feb 2024 00:20:57 +0100 Subject: [PATCH] Fix #2545 --- exporters/otlp/src/otlp_grpc_client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporters/otlp/src/otlp_grpc_client.cc b/exporters/otlp/src/otlp_grpc_client.cc index ed3c53b3a0..7ce728ec49 100644 --- a/exporters/otlp/src/otlp_grpc_client.cc +++ b/exporters/otlp/src/otlp_grpc_client.cc @@ -296,7 +296,7 @@ std::shared_ptr OtlpGrpcClient::MakeChannel(const OtlpGrpcClientO grpc::SslCredentialsOptions ssl_opts; ssl_opts.pem_root_certs = GetFileContentsOrInMemoryContents( options.ssl_credentials_cacert_path, options.ssl_credentials_cacert_as_string); -#if ENABLE_OTLP_GRPC_SSL_MTLS_PREVIEW +#ifdef ENABLE_OTLP_GRPC_SSL_MTLS_PREVIEW ssl_opts.pem_private_key = GetFileContentsOrInMemoryContents(options.ssl_client_key_path, options.ssl_client_key_string); ssl_opts.pem_cert_chain = GetFileContentsOrInMemoryContents(options.ssl_client_cert_path,