forked from open-telemetry/opentelemetry-cpp
-
Notifications
You must be signed in to change notification settings - Fork 1
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 (open-tele…
- 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.