This PR changes the behaviour of the default EnvironmentMetadataProvider so that if an environment value is already set in a signal payload, it will not be overwritten.
We need this for the Flutter SDK where the flutter layer (or the user) will set some client version information.
This PR changes the behaviour of the default EnvironmentMetadataProvider so that if an environment value is already set in a signal payload, it will not be overwritten.
We need this for the Flutter SDK where the flutter layer (or the user) will set some client version information.
In the iOS SDK this is known as precedence: https://github.com/TelemetryDeck/SwiftClient/blob/main/Tests/TelemetryClientTests/TelemetryClientTests.swift#L77
It will be up to every
TelemetryProvider
to implement the desired behaviour.