Skip to content

Commit 398b422

Browse files
committed
fix ci issues. HttpSesisonData needs a default constructor. Initialize unintialized members of grpc client options
1 parent ad1ce65 commit 398b422

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_client_options.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct OtlpGrpcClientOptions
3434
std::string endpoint;
3535

3636
/** Use SSL. */
37-
bool use_ssl_credentials;
37+
bool use_ssl_credentials{};
3838

3939
/** CA CERT, path to a file. */
4040
std::string ssl_credentials_cacert_path;
@@ -71,14 +71,14 @@ struct OtlpGrpcClientOptions
7171
std::string user_agent;
7272

7373
/** max number of threads that can be allocated from this */
74-
std::size_t max_threads;
74+
std::size_t max_threads{};
7575

7676
/** Compression type. */
7777
std::string compression;
7878

7979
#ifdef ENABLE_ASYNC_EXPORT
8080
// Concurrent requests
81-
std::size_t max_concurrent_requests;
81+
std::size_t max_concurrent_requests{};
8282
#endif
8383

8484
/** The maximum number of call attempts, including the original attempt. */

exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_client.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ class OtlpHttpClient
234234
std::shared_ptr<opentelemetry::ext::http::client::Session> session;
235235
std::shared_ptr<opentelemetry::ext::http::client::EventHandler> event_handle;
236236

237+
HttpSessionData() = default;
238+
237239
explicit HttpSessionData(
238240
std::shared_ptr<opentelemetry::ext::http::client::Session> input_session,
239241
std::shared_ptr<opentelemetry::ext::http::client::EventHandler> input_handle)

0 commit comments

Comments
 (0)