-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support lists as sample data root arguments
We documented that we support lists as sample data root values, but in practice we did not. This fix allows for setting lists as custom sample data (and other types of sample data) as shown in the changeset.
- Loading branch information
Showing
3 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
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,17 @@ | ||
--- | ||
bump: "patch" | ||
type: "change" | ||
--- | ||
|
||
Add support for lists in the sample data as root values on spans, as shown below. Previously we only supported lists as nested objects in maps. | ||
|
||
```elixir | ||
Appsignal.Span.set_sample_data( | ||
Appsignal.Tracer.root_span, | ||
"custom_data", | ||
[ | ||
"value 1", | ||
"value 2" | ||
] | ||
) | ||
``` |
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