-
Notifications
You must be signed in to change notification settings - Fork 501
[CONFIGURATION] File configuration - component registry #3537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8efe1be
[CONFIGURATION] File configuration - component registry
marcalff 9ddde6f
Merge branch 'main' into merge_config_component_registry
marcalff d47e634
Refresh code from PR #2518, to fix review comments.
marcalff 45c1a2c
Merge branch 'main' into merge_config_component_registry
marcalff ea1d2d9
Merge branch 'main' into merge_config_component_registry
marcalff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
sdk/include/opentelemetry/sdk/configuration/console_log_record_exporter_builder.h
This file contains hidden or 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,36 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/console_log_record_exporter_configuration.h" | ||
#include "opentelemetry/sdk/logs/exporter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ConsoleLogRecordExporterBuilder | ||
{ | ||
public: | ||
ConsoleLogRecordExporterBuilder() = default; | ||
ConsoleLogRecordExporterBuilder(ConsoleLogRecordExporterBuilder &&) = default; | ||
ConsoleLogRecordExporterBuilder(const ConsoleLogRecordExporterBuilder &) = default; | ||
ConsoleLogRecordExporterBuilder &operator=(ConsoleLogRecordExporterBuilder &&) = default; | ||
ConsoleLogRecordExporterBuilder &operator=(const ConsoleLogRecordExporterBuilder &other) = | ||
default; | ||
virtual ~ConsoleLogRecordExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter> Build( | ||
const opentelemetry::sdk::configuration::ConsoleLogRecordExporterConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
36 changes: 36 additions & 0 deletions
36
sdk/include/opentelemetry/sdk/configuration/console_push_metric_exporter_builder.h
This file contains hidden or 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,36 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/console_push_metric_exporter_configuration.h" | ||
#include "opentelemetry/sdk/metrics/push_metric_exporter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ConsolePushMetricExporterBuilder | ||
{ | ||
public: | ||
ConsolePushMetricExporterBuilder() = default; | ||
ConsolePushMetricExporterBuilder(ConsolePushMetricExporterBuilder &&) = default; | ||
ConsolePushMetricExporterBuilder(const ConsolePushMetricExporterBuilder &) = default; | ||
ConsolePushMetricExporterBuilder &operator=(ConsolePushMetricExporterBuilder &&) = default; | ||
ConsolePushMetricExporterBuilder &operator=(const ConsolePushMetricExporterBuilder &other) = | ||
default; | ||
virtual ~ConsolePushMetricExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::metrics::PushMetricExporter> Build( | ||
const opentelemetry::sdk::configuration::ConsolePushMetricExporterConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
34 changes: 34 additions & 0 deletions
34
sdk/include/opentelemetry/sdk/configuration/console_span_exporter_builder.h
This file contains hidden or 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,34 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/console_span_exporter_configuration.h" | ||
#include "opentelemetry/sdk/trace/exporter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ConsoleSpanExporterBuilder | ||
{ | ||
public: | ||
ConsoleSpanExporterBuilder() = default; | ||
ConsoleSpanExporterBuilder(ConsoleSpanExporterBuilder &&) = default; | ||
ConsoleSpanExporterBuilder(const ConsoleSpanExporterBuilder &) = default; | ||
ConsoleSpanExporterBuilder &operator=(ConsoleSpanExporterBuilder &&) = default; | ||
ConsoleSpanExporterBuilder &operator=(const ConsoleSpanExporterBuilder &other) = default; | ||
virtual ~ConsoleSpanExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::trace::SpanExporter> Build( | ||
const opentelemetry::sdk::configuration::ConsoleSpanExporterConfiguration *model) const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
36 changes: 36 additions & 0 deletions
36
sdk/include/opentelemetry/sdk/configuration/extension_log_record_exporter_builder.h
This file contains hidden or 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,36 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/extension_log_record_exporter_configuration.h" | ||
#include "opentelemetry/sdk/logs/exporter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionLogRecordExporterBuilder | ||
{ | ||
public: | ||
ExtensionLogRecordExporterBuilder() = default; | ||
ExtensionLogRecordExporterBuilder(ExtensionLogRecordExporterBuilder &&) = default; | ||
ExtensionLogRecordExporterBuilder(const ExtensionLogRecordExporterBuilder &) = default; | ||
ExtensionLogRecordExporterBuilder &operator=(ExtensionLogRecordExporterBuilder &&) = default; | ||
ExtensionLogRecordExporterBuilder &operator=(const ExtensionLogRecordExporterBuilder &other) = | ||
default; | ||
virtual ~ExtensionLogRecordExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter> Build( | ||
const opentelemetry::sdk::configuration::ExtensionLogRecordExporterConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
36 changes: 36 additions & 0 deletions
36
sdk/include/opentelemetry/sdk/configuration/extension_log_record_processor_builder.h
This file contains hidden or 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,36 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/extension_log_record_processor_configuration.h" | ||
#include "opentelemetry/sdk/logs/processor.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionLogRecordProcessorBuilder | ||
{ | ||
public: | ||
ExtensionLogRecordProcessorBuilder() = default; | ||
ExtensionLogRecordProcessorBuilder(ExtensionLogRecordProcessorBuilder &&) = default; | ||
ExtensionLogRecordProcessorBuilder(const ExtensionLogRecordProcessorBuilder &) = default; | ||
ExtensionLogRecordProcessorBuilder &operator=(ExtensionLogRecordProcessorBuilder &&) = default; | ||
ExtensionLogRecordProcessorBuilder &operator=(const ExtensionLogRecordProcessorBuilder &other) = | ||
default; | ||
virtual ~ExtensionLogRecordProcessorBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::logs::LogRecordProcessor> Build( | ||
const opentelemetry::sdk::configuration::ExtensionLogRecordProcessorConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
36 changes: 36 additions & 0 deletions
36
sdk/include/opentelemetry/sdk/configuration/extension_pull_metric_exporter_builder.h
This file contains hidden or 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,36 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/extension_pull_metric_exporter_configuration.h" | ||
#include "opentelemetry/sdk/metrics/metric_reader.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionPullMetricExporterBuilder | ||
{ | ||
public: | ||
ExtensionPullMetricExporterBuilder() = default; | ||
ExtensionPullMetricExporterBuilder(ExtensionPullMetricExporterBuilder &&) = default; | ||
ExtensionPullMetricExporterBuilder(const ExtensionPullMetricExporterBuilder &) = default; | ||
ExtensionPullMetricExporterBuilder &operator=(ExtensionPullMetricExporterBuilder &&) = default; | ||
ExtensionPullMetricExporterBuilder &operator=(const ExtensionPullMetricExporterBuilder &other) = | ||
default; | ||
virtual ~ExtensionPullMetricExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::metrics::MetricReader> Build( | ||
const opentelemetry::sdk::configuration::ExtensionPullMetricExporterConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
36 changes: 36 additions & 0 deletions
36
sdk/include/opentelemetry/sdk/configuration/extension_push_metric_exporter_builder.h
This file contains hidden or 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,36 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/extension_push_metric_exporter_configuration.h" | ||
#include "opentelemetry/sdk/metrics/push_metric_exporter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionPushMetricExporterBuilder | ||
{ | ||
public: | ||
ExtensionPushMetricExporterBuilder() = default; | ||
ExtensionPushMetricExporterBuilder(ExtensionPushMetricExporterBuilder &&) = default; | ||
ExtensionPushMetricExporterBuilder(const ExtensionPushMetricExporterBuilder &) = default; | ||
ExtensionPushMetricExporterBuilder &operator=(ExtensionPushMetricExporterBuilder &&) = default; | ||
ExtensionPushMetricExporterBuilder &operator=(const ExtensionPushMetricExporterBuilder &other) = | ||
default; | ||
virtual ~ExtensionPushMetricExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::metrics::PushMetricExporter> Build( | ||
const opentelemetry::sdk::configuration::ExtensionPushMetricExporterConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
34 changes: 34 additions & 0 deletions
34
sdk/include/opentelemetry/sdk/configuration/extension_sampler_builder.h
This file contains hidden or 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,34 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/extension_sampler_configuration.h" | ||
#include "opentelemetry/sdk/trace/sampler.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionSamplerBuilder | ||
{ | ||
public: | ||
ExtensionSamplerBuilder() = default; | ||
ExtensionSamplerBuilder(ExtensionSamplerBuilder &&) = default; | ||
ExtensionSamplerBuilder(const ExtensionSamplerBuilder &) = default; | ||
ExtensionSamplerBuilder &operator=(ExtensionSamplerBuilder &&) = default; | ||
ExtensionSamplerBuilder &operator=(const ExtensionSamplerBuilder &other) = default; | ||
virtual ~ExtensionSamplerBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::trace::Sampler> Build( | ||
const opentelemetry::sdk::configuration::ExtensionSamplerConfiguration *model) const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
34 changes: 34 additions & 0 deletions
34
sdk/include/opentelemetry/sdk/configuration/extension_span_exporter_builder.h
This file contains hidden or 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,34 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/extension_span_exporter_configuration.h" | ||
#include "opentelemetry/sdk/trace/exporter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionSpanExporterBuilder | ||
{ | ||
public: | ||
ExtensionSpanExporterBuilder() = default; | ||
ExtensionSpanExporterBuilder(ExtensionSpanExporterBuilder &&) = default; | ||
ExtensionSpanExporterBuilder(const ExtensionSpanExporterBuilder &) = default; | ||
ExtensionSpanExporterBuilder &operator=(ExtensionSpanExporterBuilder &&) = default; | ||
ExtensionSpanExporterBuilder &operator=(const ExtensionSpanExporterBuilder &other) = default; | ||
virtual ~ExtensionSpanExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::trace::SpanExporter> Build( | ||
const opentelemetry::sdk::configuration::ExtensionSpanExporterConfiguration *model) const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
35 changes: 35 additions & 0 deletions
35
sdk/include/opentelemetry/sdk/configuration/extension_span_processor_builder.h
This file contains hidden or 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,35 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/extension_span_processor_configuration.h" | ||
#include "opentelemetry/sdk/trace/processor.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionSpanProcessorBuilder | ||
{ | ||
public: | ||
ExtensionSpanProcessorBuilder() = default; | ||
ExtensionSpanProcessorBuilder(ExtensionSpanProcessorBuilder &&) = default; | ||
ExtensionSpanProcessorBuilder(const ExtensionSpanProcessorBuilder &) = default; | ||
ExtensionSpanProcessorBuilder &operator=(ExtensionSpanProcessorBuilder &&) = default; | ||
ExtensionSpanProcessorBuilder &operator=(const ExtensionSpanProcessorBuilder &other) = default; | ||
virtual ~ExtensionSpanProcessorBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::trace::SpanProcessor> Build( | ||
const opentelemetry::sdk::configuration::ExtensionSpanProcessorConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
36 changes: 36 additions & 0 deletions
36
sdk/include/opentelemetry/sdk/configuration/otlp_file_log_record_exporter_builder.h
This file contains hidden or 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,36 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "opentelemetry/sdk/configuration/otlp_file_log_record_exporter_configuration.h" | ||
#include "opentelemetry/sdk/logs/exporter.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class OtlpFileLogRecordExporterBuilder | ||
{ | ||
public: | ||
OtlpFileLogRecordExporterBuilder() = default; | ||
OtlpFileLogRecordExporterBuilder(OtlpFileLogRecordExporterBuilder &&) = default; | ||
OtlpFileLogRecordExporterBuilder(const OtlpFileLogRecordExporterBuilder &) = default; | ||
OtlpFileLogRecordExporterBuilder &operator=(OtlpFileLogRecordExporterBuilder &&) = default; | ||
OtlpFileLogRecordExporterBuilder &operator=(const OtlpFileLogRecordExporterBuilder &other) = | ||
default; | ||
virtual ~OtlpFileLogRecordExporterBuilder() = default; | ||
|
||
virtual std::unique_ptr<opentelemetry::sdk::logs::LogRecordExporter> Build( | ||
const opentelemetry::sdk::configuration::OtlpFileLogRecordExporterConfiguration *model) | ||
const = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.