-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add custom data helper #1147
Labels
Comments
tombruijn
added a commit
that referenced
this issue
Jul 4, 2024
I saw we tell people in our docs to use the `Appsignal::Transaction#set_sample_data` method. Let's not do that. Here's a helper to hide all those internals away and make it less likely to break when setting custom data as sample data. I considered adding logic to merge the custom data, but merging these values is quite tricky because it can be both a Hash and an Array as the root object. It's not something I want to think about right now. If we want to add this in the future, we can also name that helper `add_custom_data` to differentiate between setting and merging the custom data. Closes #1147
tombruijn
added a commit
that referenced
this issue
Jul 4, 2024
I saw we tell people in our docs to use the `Appsignal::Transaction#set_sample_data` method. Let's not do that. Here's a helper to hide all those internals away and make it less likely to break when setting custom data as sample data. I considered adding logic to merge the custom data, but merging these values is quite tricky because it can be both a Hash and an Array as the root object. It's not something I want to think about right now. If we want to add this in the future, we can also name that helper `add_custom_data` to differentiate between setting and merging the custom data. Closes #1147
tombruijn
added a commit
that referenced
this issue
Jul 8, 2024
I saw we tell people in our docs to use the `Appsignal::Transaction#set_sample_data` method. Let's not do that. Here's a helper to hide all those internals away and make it less likely to break when setting custom data as sample data. I considered adding logic to merge the custom data, but merging these values is quite tricky because it can be both a Hash and an Array as the root object. It's not something I want to think about right now. If we want to add this in the future, we can also name that helper `add_custom_data` to differentiate between setting and merging the custom data. Closes #1147
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our sample data docs give this example.
Let's add a custom helper for this like
Appsignal.set_custom_data
andAppsignal::Transaction#set_custom_data
The text was updated successfully, but these errors were encountered: