-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EXPORTER] Rework OTLP/HTTP and OTLP/GRPC exporter options (#2388)
- Loading branch information
Showing
28 changed files
with
945 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_client_options.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "opentelemetry/exporters/otlp/otlp_environment.h" | ||
#include "opentelemetry/version.h" | ||
|
||
#include <chrono> | ||
#include <string> | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace exporter | ||
{ | ||
namespace otlp | ||
{ | ||
|
||
struct OtlpGrpcClientOptions | ||
{ | ||
/** The endpoint to export to. */ | ||
std::string endpoint; | ||
|
||
/** Use SSL. */ | ||
bool use_ssl_credentials; | ||
|
||
/** CA CERT, path to a file. */ | ||
std::string ssl_credentials_cacert_path; | ||
|
||
/** CA CERT, as a string. */ | ||
std::string ssl_credentials_cacert_as_string; | ||
|
||
#ifdef ENABLE_OTLP_GRPC_SSL_MTLS_PREVIEW | ||
/** CLIENT KEY, path to a file. */ | ||
std::string ssl_client_key_path; | ||
|
||
/** CLIENT KEY, as a string. */ | ||
std::string ssl_client_key_string; | ||
|
||
/** CLIENT CERT, path to a file. */ | ||
std::string ssl_client_cert_path; | ||
|
||
/** CLIENT CERT, as a string. */ | ||
std::string ssl_client_cert_string; | ||
#endif | ||
|
||
/** Export timeout. */ | ||
std::chrono::system_clock::duration timeout; | ||
|
||
/** Additional HTTP headers. */ | ||
OtlpHeaders metadata; | ||
|
||
/** User agent. */ | ||
std::string user_agent; | ||
}; | ||
|
||
} // namespace otlp | ||
} // namespace exporter | ||
OPENTELEMETRY_END_NAMESPACE |
Oops, something went wrong.
3dfcf93
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'OpenTelemetry-cpp sdk Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_BaselineBuffer/1
3335242.986679077
ns/iter783665.657043457
ns/iter4.26
BM_BaselineBuffer/2
16678845.882415771
ns/iter7165992.259979248
ns/iter2.33
This comment was automatically generated by workflow using github-action-benchmark.