-
Notifications
You must be signed in to change notification settings - Fork 32
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
Allow suppressing reserved prefix warning #220
Comments
@kkostov Hmm, that warning was a feature request by users. I'm not entirely sure if it is still relevant after the Grand Rename since it's impossible that a user accidentally writes "TelemetryDeck." as a prefix. So I see 3 ways out of this here:
I'm personally leaning towards the first suggestion as it's the simplest without real drawbacks. But it will not work if you are also sending/overriding the old parameters alongside the existing ones as a dual approach like we do in the Swift SDK. |
Is there a mechanism to prevent them from doing that? afaik the parameters are open to arbitrary values, e.g. one can easily append
Perhaps we can make it part of the starting configuration for |
Please note the "accidentally" in my sentence, of course there's nothing to prevent from users doing that, even with warnings enabled users can still do that. But I wouldn't consider it "accidental" when somebody explicitly writes "TelemetryDeck." as a prefix. That's what I meant. And yeah, if they override, it's their problem. I think having the warnings in the old params is important though as it's easily possible somebody uses them for other things in their app which breaks out built-in stats.
Yeah, we could make such a setting independent of SDKs. I agree that adding an option but simply not mentioning it anywhere in our documentation is a good approach that prevents accidentally turning it off while making it easy for other SDKs to use. I'm hearing out that you prefer approach 3, just not with the "secret" aspect of it. I assume approach 1 would not work because you'd also want to override old parameter names with your values. Then I'll make sure to add such setting. |
As the Flutter SDK adds and updates additional parameters when preparing signals, please allow for a way to suppress the reserved namespace warning for "legitimate uses":
SwiftSDK/Sources/TelemetryDeck/TelemetryDeck.swift
Line 55 in e1a5f4e
This is related to #219, tracked in TelemetryDeck/FlutterSDK#23
The text was updated successfully, but these errors were encountered: