Repository navigation
[CONFIGURATION] validate and update config files to yaml schema 1.1.0 #4374
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
10 commits
Select commit
Hold shift + click to select a range
c50d7fd
[CI] add otel-config yaml schema validation tools
dbarker 2904f73
add otel-config yaml file validation github job
dbarker e359567
Merge branch 'main' into yaml_schema_validation
dbarker b065424
adds functional test yaml files that validation should skip
dbarker 95c1f15
update the example configuration yaml files. update CMake and Bazel t…
dbarker 609682f
change the prometheus port in yaml to not conflict with other tests
dbarker 0c6df74
add changelog. don't run example_yaml kitchen-sink with tsan due to k…
dbarker cc714b4
Merge branch 'main' into yaml_schema_validation
dbarker 078945c
update config shelltest files
dbarker 77faf76
add guard on the kitchen sink test to require all exporters
dbarker 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
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
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
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
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
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
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
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
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 |
|---|---|---|
| @@ -1,82 +1,79 @@ | ||
| # Copyright The OpenTelemetry Authors | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # The file format version | ||
| file_format: "1.0" | ||
| # extensions.yaml demonstrates the extension points in the configuration model. | ||
| # Each my_custom_* key maps to a builder that can be registered via Registry::SetExtension*Builder (see main.cc). | ||
| file_format: "1.1" | ||
|
|
||
| # Configure if the SDK is disabled or not. This is not required to be provided | ||
| # to ensure the SDK isn't disabled, the default value when this is not provided | ||
| # is for the SDK to be enabled. | ||
| # | ||
| # Environment variable: OTEL_SDK_DISABLED | ||
| # Configure if the SDK is disabled or not. | ||
| # If omitted or null, false is used. | ||
| disabled: false | ||
|
|
||
| # Configure text map context propagators. | ||
| # | ||
| # Environment variable: OTEL_PROPAGATORS | ||
| # If omitted, a noop propagator is used. | ||
| propagator: | ||
| # composite: [tracecontext, baggage, b3, b3multi, jaeger, xray, ottrace] | ||
| composite: tracecontext | ||
| composite: | ||
| - tracecontext: | ||
|
|
||
| # Configure tracer provider. | ||
| tracer_provider: | ||
| # Configure span processors. | ||
| processors: | ||
| # Configure a batch span processor. | ||
|
marcalff marked this conversation as resolved.
Resolved
|
||
| - batch: | ||
| # Configure exporter. | ||
| # | ||
| # Environment variable: OTEL_TRACES_EXPORTER | ||
| exporter: | ||
| # Configure exporter to be zipkin. | ||
| zipkin: | ||
| # Configure endpoint. | ||
| # | ||
| # Environment variable: OTEL_EXPORTER_ZIPKIN_ENDPOINT | ||
| endpoint: http://localhost:9411/api/v2/spans | ||
| # Configure max time (in milliseconds) to wait for each export. | ||
| # | ||
| # Environment variable: OTEL_EXPORTER_ZIPKIN_TIMEOUT | ||
| timeout: 10000 | ||
| # Configure a simple span processor. | ||
| - simple: | ||
| # Configure exporter. | ||
| exporter: | ||
| # Configure exporter to be console. | ||
| console: {} | ||
| console: | ||
| # Registry::SetExtensionSpanProcessorBuilder, see custom_span_processor.cc. | ||
| - my_custom_span_processor: | ||
| comment: "This is a span processor extension point, with properties." | ||
| - batch: | ||
| exporter: | ||
| # Registry::SetExtensionSpanExporterBuilder, see custom_span_exporter.cc. | ||
| my_custom_span_exporter: | ||
| comment: "This is a span exporter extension point, with properties." | ||
|
|
||
| # Configure the sampler. | ||
| sampler: | ||
| # Registry::SetExtensionSamplerBuilder, see custom_sampler.cc. | ||
| my_custom_sampler: | ||
| comment: "This is a sampler extension point, with properties." | ||
|
|
||
| meter_provider: | ||
| readers: | ||
| - periodic: | ||
| exporter: | ||
| console: | ||
| - pull: | ||
| exporter: | ||
| # Registry::SetExtensionPullMetricExporterBuilder, see custom_pull_metric_exporter.cc. | ||
| my_custom_pull_metric_exporter: | ||
| comment: "This is a pull metric exporter extension point, with properties." | ||
| - periodic: | ||
| exporter: | ||
| # Registry::SetExtensionPushMetricExporterBuilder, see custom_push_metric_exporter.cc. | ||
| my_custom_push_metric_exporter: | ||
| comment: "This is a push metric exporter extension point, with properties." | ||
| producers: | ||
| # Registry::SetExtensionMetricProducerBuilder. No example implementation in this directory. | ||
| - my_custom_metric_producer: | ||
| comment: "This is a metric producer extension point, with properties." | ||
|
|
||
| logger_provider: | ||
| processors: | ||
| - simple: | ||
| # Configure exporter. | ||
| exporter: | ||
| # Configure exporter to be console. | ||
| console: {} | ||
| console: | ||
| # Registry::SetExtensionLogRecordProcessorBuilder, see custom_log_record_processor.cc. | ||
| - my_custom_log_record_processor: | ||
| comment: "This is a log record processor extension point, with properties." | ||
| - batch: | ||
| exporter: | ||
| # Registry::SetExtensionLogRecordExporterBuilder, see custom_log_record_exporter.cc. | ||
| my_custom_log_record_exporter: | ||
| comment: "This is a log record exporter extension point, with properties." | ||
| resource: | ||
| detection/development: | ||
| detectors: | ||
| # Registry::SetExtensionResourceDetectorBuilder. No example implementation in this directory. | ||
| - my_custom_detector: | ||
| comment: "This is a resource detector extension point, with properties." | ||
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.