|
| 1 | +# Use this changelog template to create an entry for release notes. |
| 2 | + |
| 3 | +# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' |
| 4 | +change_type: enhancement |
| 5 | + |
| 6 | +# The name of the component, or a single word describing the area of concern, (e.g. receiver/otlp) |
| 7 | +component: all |
| 8 | + |
| 9 | +# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). |
| 10 | +note: Add support for typed resource attributes (bool, int, double, and array variants) in telemetry configuration |
| 11 | + |
| 12 | +# One or more tracking issues or pull requests related to the change |
| 13 | +issues: [14411] |
| 14 | + |
| 15 | +# (Optional) One or more lines of additional information to render under the primary note. |
| 16 | +# These lines will be padded with 2 spaces and then inserted directly into the document. |
| 17 | +# Use pipe (|) for multiline entries. |
| 18 | +subtext: | |
| 19 | + The resource configuration now supports typed attributes with the following types: |
| 20 | + - `string` (default) |
| 21 | + - `bool` |
| 22 | + - `int` |
| 23 | + - `double` |
| 24 | + - `string_array` |
| 25 | + - `bool_array` |
| 26 | + - `int_array` |
| 27 | + - `double_array` |
| 28 | +
|
| 29 | + Example configuration: |
| 30 | + ```yaml |
| 31 | + service: |
| 32 | + telemetry: |
| 33 | + resource: |
| 34 | + attributes: |
| 35 | + - name: service.name |
| 36 | + value: my-collector |
| 37 | + - name: feature.enabled |
| 38 | + value: true |
| 39 | + type: bool |
| 40 | + - name: retry.count |
| 41 | + value: 5 |
| 42 | + type: int |
| 43 | + - name: latency.threshold |
| 44 | + value: 12.5 |
| 45 | + type: double |
| 46 | + - name: owners |
| 47 | + value: [team-a, team-b] |
| 48 | + type: string_array |
| 49 | + - name: success.flags |
| 50 | + value: [true, false] |
| 51 | + type: bool_array |
| 52 | + ``` |
| 53 | +
|
| 54 | + The legacy inline attribute map format (string-only) is still supported for backward compatibility: |
| 55 | + ```yaml |
| 56 | + service: |
| 57 | + telemetry: |
| 58 | + resource: |
| 59 | + service.name: my-collector |
| 60 | + host.name: collector-host |
| 61 | + ``` |
| 62 | +
|
| 63 | +# Optional: The change log or logs in which this entry should be included. |
| 64 | +# e.g. '[user]' or '[user, api]' |
| 65 | +# Include 'user' if the change is relevant to end users. |
| 66 | +# Include 'api' if there is a change to a library API. |
| 67 | +# Default: '[user]' |
| 68 | +change_logs: [user] |
0 commit comments