mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Adds `exported_configs` as the metadata.yaml field for config schemas that should be exported from a component or package. This keeps source metadata from using `config.$defs` directly while still emitting JSON Schema `$defs` in generated schema output. The loader maps `exported_configs` into internal schema defs for resolution, and mdatagen does the same before config generation. Also updates generated/internal schema handling so mdatagen-injected defs are marked internal-only and removed after resolution. User-authored exported defs are preserved, while generated telemetry/resource/event helper defs no longer inflate generated component config schemas or duplicate Go types. <!-- Issue number if applicable --> #### Link to tracking issue Fixes #15304 <!--Describe what testing was performed and which tests were added.--> #### Testing - Sample components amended with new functionality - Unit test coverage
17 lines
322 B
YAML
17 lines
322 B
YAML
type: filter
|
|
github_project: open-telemetry/opentelemetry-collector
|
|
|
|
status:
|
|
disable_codecov_badge: true
|
|
class: pkg
|
|
|
|
exported_configs:
|
|
config:
|
|
description: Config configures the matching behavior of a Filter.
|
|
type: object
|
|
properties:
|
|
regexp:
|
|
type: string
|
|
strict:
|
|
type: string
|