Commit 6e2081e
Flutter SDK meta properties (#135)
> [!IMPORTANT]
> **This PR cannot be merged until
[grafana/app-o11y-kwl-endpoint#987](grafana/app-o11y-kwl-endpoint#987)
is merged and deployed.**
>
> Without that backend fix, all telemetry from this SDK would be
rejected because this SDK currently has version `0.9.0`, and the old
backend requires versions of at least `1.3.5`.
## Description
This PR aligns the Faro Flutter SDK's metadata (`meta.sdk.version` and
`meta.sdk.name`) with the patterns established in the Faro Web SDK.
The changes ensure:
* Consistent SDK naming (`faro-mobile-flutter`) across Faro mobile
implementations.
* Accurate reporting of the SDK version, moving from a hardcoded value
to `FaroConstants.sdkVersion`.
* Removal of the `integrations` field from the `Sdk` model, as it
provided no actionable insights and aligns with the web SDK's simplified
model.
These updates enable better SDK version analytics, distribution
tracking, and proper version checking by the backend endpoint service.
## Related Issue(s)
Closes grafana/faro-flutter-sdk#7403
## Type of Change
- [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
- [x] 🚀 New feature (non-breaking change which adds functionality)
- [ ] 💥 Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 📝 Documentation
- [ ] 📈 Performance improvement
- [x] 🏗️ Code refactoring
- [ ] 🧹 Chore / Housekeeping
## Checklist
- [x] I have made corresponding changes to the documentation
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the CHANGELOG.md under the "Unreleased" section
## Screenshots (if applicable)
N/A
## Additional Notes
This PR directly addresses the discussion regarding `meta.sdk.version`
and `meta.sdk.name` alignment with the Faro Web SDK, as well as the
simplification of the `Sdk` model by removing the `integrations` field.
All tests pass with these changes.
---
[Slack
Thread](https://raintank-corp.slack.com/archives/C04LHN01GN7/p1769688028990529?thread_ts=1769688028.990529&cid=C04LHN01GN7)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes the shape and values of emitted metadata (`meta.sdk`, session
attributes), which can affect backend validation/analytics and
downstream dashboards even though the code changes are small.
>
> **Overview**
> Updates telemetry `meta.sdk` to match Faro Web SDK conventions:
renames the SDK identifier to `faro-mobile-flutter` and reports the real
SDK version via `FaroConstants.sdkVersion` (removing the previous
hardcoded `1.3.5` workaround).
>
> Simplifies SDK metadata by removing the `integrations` field (and the
`Integration` model/export), and stops emitting `faro_sdk_version` as a
session attribute; docs/changelog and affected tests are updated
accordingly.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
a223839. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: robert.magnusson <robert.magnusson@grafana.com>1 parent e6053d8 commit 6e2081e
File tree
12 files changed
+27
-45
lines changed- doc
- lib/src
- device_info
- models
- util
- test/src
- device_info
- session
- tracing
12 files changed
+27
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
132 | 142 | | |
133 | 143 | | |
134 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
| |||
948 | 958 | | |
949 | 959 | | |
950 | 960 | | |
951 | | - | |
| 961 | + | |
952 | 962 | | |
953 | 963 | | |
954 | 964 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | | - | |
| 2 | + | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 7 | | |
16 | 8 | | |
17 | 9 | | |
18 | | - | |
19 | 10 | | |
20 | 11 | | |
21 | 12 | | |
22 | 13 | | |
23 | 14 | | |
24 | | - | |
25 | 15 | | |
26 | 16 | | |
27 | 17 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
| |||
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
155 | | - | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
| |||
174 | 172 | | |
175 | 173 | | |
176 | 174 | | |
177 | | - | |
178 | 175 | | |
179 | 176 | | |
180 | 177 | | |
| |||
286 | 283 | | |
287 | 284 | | |
288 | 285 | | |
289 | | - | |
290 | 286 | | |
291 | 287 | | |
292 | 288 | | |
| |||
0 commit comments