You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(mdatagen): convert feature gates from map to list
- Changed FeatureGates to []FeatureGate with ID field for preserved ordering
- Added duplicate ID validation
- Updated templates to iterate list using .ID
- Added feature_gates section to schema and README
- Updated tests and testdata
- Removed accidentally committed mdatagen binary
Addresses all feedback from @mx-psi on PR open-telemetry#14130
| `{{ $gateID }}` | {{ $gate.Stage }} | {{ $gate.Description }} | {{ if $gate.FromVersion }}{{ $gate.FromVersion }}{{ else }}N/A{{ end }} | {{ if $gate.ToVersion }}{{ $gate.ToVersion }}{{ else }}N/A{{ end }} | {{ if $gate.ReferenceURL }}[Link]({{ $gate.ReferenceURL }}){{ else }}N/A{{ end }} |
276
+
{{- range .FeatureGates }}
277
+
| `{{ .ID }}` | {{ .Stage }} | {{ .Description }} | {{ if .FromVersion }}{{ .FromVersion }}{{ else }}N/A{{ end }} | {{ if .ToVersion }}{{ .ToVersion }}{{ else }}N/A{{ end }} | {{ if .ReferenceURL }}[Link]({{ .ReferenceURL }}){{ else }}N/A{{ end }} |
278
278
{{- end }}
279
279
280
280
For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation.
| `{{ $gateID }}` | {{ $gate.Stage }} | {{ $gate.Description }} | {{ if $gate.FromVersion }}{{ $gate.FromVersion }}{{ else }}N/A{{ end }} | {{ if $gate.ToVersion }}{{ $gate.ToVersion }}{{ else }}N/A{{ end }} | {{ if $gate.ReferenceURL }}[Link]({{ $gate.ReferenceURL }}){{ else }}N/A{{ end }} |
9
+
{{- range .FeatureGates }}
10
+
| `{{ .ID }}` | {{ .Stage }} | {{ .Description }} | {{ if .FromVersion }}{{ .FromVersion }}{{ else }}N/A{{ end }} | {{ if .ToVersion }}{{ .ToVersion }}{{ else }}N/A{{ end }} | {{ if .ReferenceURL }}[Link]({{ .ReferenceURL }}){{ else }}N/A{{ end }} |
11
11
{{- end }}
12
12
13
13
For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation.
|`sample.feature.gate`| alpha | This is a sample feature gate for testing purposes | v0.100.0 | N/A |[Link](https://github.com/open-telemetry/opentelemetry-collector/issues/12345)|
12
-
|`stable.feature.gate`| stable | This is a stable feature gate | v0.90.0 | v0.95.0 |[Link](https://github.com/open-telemetry/opentelemetry-collector/issues/11111)|
13
-
14
-
For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation.
7
+
| Name | Description | Values | Enabled |
8
+
| ---- | ----------- | ------ | ------- |
9
+
| host.id | The unique host identifier | Any Str | true |
10
+
| host.name | The hostname | Any Str | true |
11
+
| process.pid | The process identifier | Any Int | true |
0 commit comments