Skip to content

Commit

Permalink
Change BatchLogRecordProcessorFactory::Create to static method, Fixed…
Browse files Browse the repository at this point in the history
… a typo in a comment (open-telemetry#1876)
  • Loading branch information
ninghejun authored Dec 21, 2022
1 parent 066c2f3 commit 9dd19a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Increment the:

## [Unreleased]

* [METRICS] Change BatchLogRecordProcessorFactory::Create to static method
* [BUILD] Fix OTELCPP_MAINTAINER_MODE [#1844](https://github.com/open-telemetry/opentelemetry-cpp/pull/1844)
* [BUILD] Fix compatibility when using clang and libc++, upgrade GTest and
cmake when using C++20 [#1852](https://github.com/open-telemetry/opentelemetry-cpp/pull/1852)
Expand Down
2 changes: 1 addition & 1 deletion sdk/include/opentelemetry/sdk/common/global_log_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class GlobalLogHandler
OPENTELEMETRY_END_NAMESPACE

/**
* GlobalLogHandler and TracerProvider/MeterProvider/LoggerProvider are lazy sigletons.
* GlobalLogHandler and TracerProvider/MeterProvider/LoggerProvider are lazy singletons.
* To ensure that GlobalLogHandler is the first one to be initialized (and so last to be
* destroyed), it is first used inside the constructors of TraceProvider, MeterProvider
* and LoggerProvider for debug logging. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class BatchLogRecordProcessorFactory
/**
* Create a BatchLogRecordProcessor.
*/
std::unique_ptr<LogRecordProcessor> Create(std::unique_ptr<LogRecordExporter> &&exporter,
const BatchLogRecordProcessorOptions &options);
static std::unique_ptr<LogRecordProcessor> Create(std::unique_ptr<LogRecordExporter> &&exporter,
const BatchLogRecordProcessorOptions &options);
};

} // namespace logs
Expand Down

0 comments on commit 9dd19a2

Please sign in to comment.