Skip to content

Conversation

basepi
Copy link
Contributor

@basepi basepi commented Mar 7, 2023

What does this pull request do?

We list name as a required argument in our capture_span docs. However, if a span name is not provided, we silently set it to None, and it gets dropped by the APM Server (as it's a required field).

I didn't think this was acceptable behavior, so I copied what the Node agent does, and set the default to "unnamed" so we don't silently drop spans.

This also matches my spec change here: elastic/apm#772

@basepi basepi requested a review from beniwohli March 7, 2023 22:24
@basepi basepi added this to the 8.8 milestone Mar 7, 2023
@basepi basepi force-pushed the default_span_name branch from e5c871e to d6551c9 Compare March 7, 2023 22:28
Copy link
Contributor

@beniwohli beniwohli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@basepi basepi merged commit 760c199 into elastic:main Mar 8, 2023
@basepi basepi self-assigned this Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants