-
Notifications
You must be signed in to change notification settings - Fork 90
Prepare release 3.6.3 #1168
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
Prepare release 3.6.3 #1168
Changes from all commits
464344f
2ab2f13
dd943d4
709e41a
91fe3e0
a420e68
9130938
501e218
59e02ce
671a223
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # newer versions go on top | ||
| - version: "0.0.1" | ||
| changes: | ||
| - description: Initial package | ||
| type: enhancement | ||
| link: https://github.com/elastic/package-spec/pull/1168 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| receivers: | ||
| otlp: | ||
| protocols: | ||
| http: | ||
| endpoint: 0.0.0.0:4318 | ||
| service: | ||
| pipelines: | ||
| logs: | ||
| receivers: [otlp] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| - name: data_stream.type | ||
| type: constant_keyword | ||
| description: Data stream type. | ||
| - name: data_stream.dataset | ||
| type: constant_keyword | ||
| description: Data stream dataset. | ||
| - name: data_stream.namespace | ||
| type: constant_keyword | ||
| description: Data stream namespace. | ||
| - name: '@timestamp' | ||
| type: date | ||
| description: Event timestamp. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| title: OTel logs | ||
| type: logs | ||
| streams: | ||
| - input: otel_logs | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldnt this be
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yes, this is only passing now I think because it is not using the policy. I have to review the compliance tests in any case after elastic-package release.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah no, sorry, this is fine. This is not a composable package, so the name should be already resolved. |
||
| title: Collect logs via OTel receiver | ||
| description: Collecting logs via OpenTelemetry receiver | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| receivers: | ||
| otlp: | ||
| protocols: | ||
| http: | ||
| endpoint: 0.0.0.0:4317 | ||
| service: | ||
| pipelines: | ||
| metrics: | ||
| receivers: [otlp] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| - name: data_stream.type | ||
| type: constant_keyword | ||
| description: Data stream type. | ||
| - name: data_stream.dataset | ||
| type: constant_keyword | ||
| description: Data stream dataset. | ||
| - name: data_stream.namespace | ||
| type: constant_keyword | ||
| description: Data stream namespace. | ||
| - name: '@timestamp' | ||
| type: date | ||
| description: Event timestamp. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| title: OTel metrics | ||
| type: metrics | ||
| streams: | ||
| - input: otel_metrics | ||
| title: Collect metrics via OTel receiver | ||
| description: Collecting metrics via OpenTelemetry receiver |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Good OTel Integration package | ||
|
|
||
| Minimal integration package with an OTel input and an otel_logs data stream, used by basic compliance tests. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| format_version: 3.6.0 | ||
| name: good_integration_otel | ||
| title: "Good OTel Integration package" | ||
| version: 0.0.1 | ||
| source: | ||
| license: "Elastic-2.0" | ||
| description: "Minimal integration package with an OTel input and an otel_logs data stream, used by basic compliance tests." | ||
| type: integration | ||
| categories: | ||
| - custom | ||
| conditions: | ||
| kibana: | ||
| version: "^9.4.0" | ||
| elastic: | ||
| subscription: "basic" | ||
| icons: | ||
| - src: /img/sample-logo.svg | ||
| title: Sample logo | ||
| size: 32x32 | ||
| type: image/svg+xml | ||
| policy_templates: | ||
| - name: otel | ||
| title: OTel logs | ||
| description: Collect logs and metrics via OTel receiver | ||
| inputs: | ||
| - name: otel_logs | ||
| type: otelcol | ||
| title: Collect logs via OTel receiver | ||
| description: Collecting logs via OpenTelemetry receiver | ||
| - name: otel_metrics | ||
| type: otelcol | ||
| title: Collect metrics via OTel receiver | ||
| description: Collecting metrics via OpenTelemetry receiver | ||
| owner: | ||
| github: elastic/ecosystem | ||
| type: elastic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial | ⚡ Quick win
Consider validating
inputEffectiveNamewhen building the policy input name.The conditional on line 268 checks that
templateName,inputName, andinputTypeare non-empty, but line 269 usesinputEffectiveNamewithout verifying it's non-empty. IfinputEffectiveNamewere empty,policyInputNamewould become"templateName-".While the function comment indicates
inputEffectiveNameshould always be valid when the other parameters are provided, an explicit guard would improve robustness.🛡️ Suggested validation
📝 Committable suggestion
🤖 Prompt for AI Agents