-
Notifications
You must be signed in to change notification settings - Fork 438
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
28 changed files
with
831 additions
and
101 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
39 changes: 39 additions & 0 deletions
39
exporters/otlp/include/opentelemetry/exporters/otlp/otlp_grpc_log_exporter_factory.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,39 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#ifdef ENABLE_LOGS_PREVIEW | ||
|
||
# include "opentelemetry/exporters/otlp/otlp_grpc_exporter_options.h" | ||
# include "opentelemetry/sdk/logs/exporter.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace exporter | ||
{ | ||
namespace otlp | ||
{ | ||
|
||
/** | ||
* Factory class for OtlpGrpcLogExporter. | ||
*/ | ||
class OtlpGrpcLogExporterFactory | ||
{ | ||
public: | ||
/** | ||
* Create a OtlpGrpcLogExporter. | ||
*/ | ||
static std::unique_ptr<opentelemetry::sdk::logs::LogExporter> Create(); | ||
|
||
/** | ||
* Create a OtlpGrpcLogExporter. | ||
*/ | ||
static std::unique_ptr<opentelemetry::sdk::logs::LogExporter> Create( | ||
const OtlpGrpcExporterOptions &options); | ||
}; | ||
|
||
} // namespace otlp | ||
} // namespace exporter | ||
OPENTELEMETRY_END_NAMESPACE | ||
|
||
#endif /* ENABLE_LOGS_PREVIEW */ |
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
39 changes: 39 additions & 0 deletions
39
exporters/otlp/include/opentelemetry/exporters/otlp/otlp_http_log_exporter_factory.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,39 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
#ifdef ENABLE_LOGS_PREVIEW | ||
|
||
# include "opentelemetry/exporters/otlp/otlp_http_log_exporter_options.h" | ||
# include "opentelemetry/sdk/logs/exporter.h" | ||
|
||
# include <memory> | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace exporter | ||
{ | ||
namespace otlp | ||
{ | ||
|
||
/** | ||
* Factory class for OtlpHttpLogExporter. | ||
*/ | ||
class OtlpHttpLogExporterFactory | ||
{ | ||
public: | ||
/** | ||
* Create a OtlpHttpLogExporter. | ||
*/ | ||
static std::unique_ptr<opentelemetry::sdk::logs::LogExporter> Create(); | ||
|
||
/** | ||
* Create a OtlpHttpLogExporter. | ||
*/ | ||
static std::unique_ptr<opentelemetry::sdk::logs::LogExporter> Create( | ||
const OtlpHttpLogExporterOptions &options); | ||
}; | ||
|
||
} // namespace otlp | ||
} // namespace exporter | ||
OPENTELEMETRY_END_NAMESPACE | ||
#endif |
Oops, something went wrong.
70fd2dc
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
8602573.871612549
ns/iter443449.15041966405
ns/iter19.40
This comment was automatically generated by workflow using github-action-benchmark.
70fd2dc
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 api Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.BM_ExtractBaggageHavingTenEntries
4.170020622031653
ns/iter1.6149569544038622
ns/iter2.58
BM_ExtractBaggageWith180Entries
4.228974271134641
ns/iter1.6149477168601134
ns/iter2.62
BM_SpinLockThrashing/2/process_time/real_time
1.2985419253913724
ms/iter0.21791537602742514
ms/iter5.96
BM_ProcYieldSpinLockThrashing/1/process_time/real_time
0.4402548414156486
ms/iter0.11020195120661588
ms/iter3.99
BM_ProcYieldSpinLockThrashing/2/process_time/real_time
0.684237966732103
ms/iter0.21685273559005172
ms/iter3.16
BM_NaiveSpinLockThrashing/1/process_time/real_time
0.5559200464293014
ms/iter0.1104135566329653
ms/iter5.03
BM_ThreadYieldSpinLockThrashing/1/process_time/real_time
18.739652633666992
ms/iter6.564521789550781
ms/iter2.85
This comment was automatically generated by workflow using github-action-benchmark.