Skip to content
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

Don't set session when send_session_data is false #772

Merged
merged 1 commit into from
May 30, 2022

Conversation

jeffkreeftmeijer
Copy link
Member

Note: this is the same patch as 96c6036, but for session data.

Currently, the send_session_data configuration option is checked in Appsignal.Plug.set_session_data/2-3.

Since sesion data is 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_session_data configuration if the passed key equals "sesion_data".

The implementation in appsignal_plug can be removed as soon as it depends on the upcoming version of this library.

Note: this is the same patch as
96c6036, but for session data.

Currently, the send_session_data configuration option is checked in
appsignal_plug, in Appsignal.Plug.set_session_data/2-3.

Since session data is 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_session_data configuration if the passed key equals "session-data".

The implementation in appsignal_plug can be removed when depending on
the upcoming version of this library.
@jeffkreeftmeijer jeffkreeftmeijer merged commit 65c5d71 into main May 30, 2022
jeffkreeftmeijer added a commit to appsignal/appsignal-elixir-plug that referenced this pull request May 30, 2022
Since appsignal 2.2.13 (which includes
appsignal/appsignal-elixir#771 and
appsignal/appsignal-elixir#772), the app's
configuration is checked whenever parameters or session data is added to
the current span.

This patch updates the appsignal version dependency to 2.2.13 or higher,
and removes the duplicate checks from Appsignal.Plug.
jeffkreeftmeijer added a commit to appsignal/appsignal-elixir-plug that referenced this pull request May 30, 2022
Since appsignal 2.2.13 (which includes
appsignal/appsignal-elixir#771 and
appsignal/appsignal-elixir#772), the app's
configuration is checked whenever parameters or session data is added to
the current span.

This patch updates the appsignal version dependency to 2.2.13 or higher,
and removes the duplicate checks from Appsignal.Plug.
jeffkreeftmeijer added a commit to appsignal/appsignal-elixir-plug that referenced this pull request Jun 1, 2022
* Use Span.to_map to test Plug.set_conn_data/2

The current Elixir integration version automatically handles the skip
parameter and skip session data options, meaning that logic can be
removed from the Plug integration. To make sure everything keeps
working, this patch adds two tests that ensure the params and session
data is properly set right now, and after the removal.

* Remove config checks for params and session data

Since appsignal 2.2.13 (which includes
appsignal/appsignal-elixir#771 and
appsignal/appsignal-elixir#772), the app's
configuration is checked whenever parameters or session data is added to
the current span.

This patch updates the appsignal version dependency to 2.2.13 or higher,
and removes the duplicate checks from Appsignal.Plug.
jeffkreeftmeijer added a commit to appsignal/appsignal-elixir-plug that referenced this pull request Jun 1, 2022
* Use Span.to_map to test Plug.set_conn_data/2

The current Elixir integration version automatically handles the skip
parameter and skip session data options, meaning that logic can be
removed from the Plug integration. To make sure everything keeps
working, this patch adds two tests that ensure the params and session
data is properly set right now, and after the removal.

* Remove config checks for params and session data

Since appsignal 2.2.13 (which includes
appsignal/appsignal-elixir#771 and
appsignal/appsignal-elixir#772), the app's
configuration is checked whenever parameters or session data is added to
the current span.

This patch updates the appsignal version dependency to 2.2.13 or higher,
and removes the duplicate checks from Appsignal.Plug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants