-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't set params when send_params is false (#771)
* Add missing test to set parameter values There was no test to make sure the params are actually set. This patch adds a regression test to make sure this isn't broken through future work. * Don't set params when send_params is false Currently, the send_params configuration option is checked in appsignal_plug, in Appsignal.Plug.set_params/2-3. Since parameters are now also added from appsignal_phoenix, and because there's already a distinction between sample data and parameters in Appsignal.Span, Appsignal.Span.set_sample_data/3-4 now checks the send_params configuration if the passed key equals "params". The implementation in appsignal_plug can be removed when depending on the upcoming version of this library.
- Loading branch information
1 parent
0e15373
commit 96c6036
Showing
3 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...sets/don't-set-parameters-when-the-send_params-configuration-is-set-to-false.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
bump: "patch" | ||
type: "add" | ||
--- | ||
|
||
Don't set parameters when the send_params configuration is set to false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters