-
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.
- Loading branch information
Showing
22 changed files
with
265 additions
and
77 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
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 |
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
30 changes: 30 additions & 0 deletions
30
exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_log_record_exporter_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,30 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "opentelemetry/exporters/otlp/otlp_grpc_client_options.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace exporter | ||
{ | ||
namespace otlp | ||
{ | ||
|
||
/** | ||
* Struct to hold OTLP GRPC log record exporter options. | ||
* | ||
* See | ||
* https://github.com/open-telemetry/opentelemetry-proto/blob/main/docs/specification.md#otlpgrpc | ||
* | ||
* See | ||
* https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md | ||
*/ | ||
struct OtlpGrpcLogRecordExporterOptions : public OtlpGrpcClientOptions | ||
{ | ||
OtlpGrpcLogRecordExporterOptions(); | ||
}; | ||
|
||
} // namespace otlp | ||
} // namespace exporter | ||
OPENTELEMETRY_END_NAMESPACE |
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
Oops, something went wrong.