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

Require non-empty values in SetDestinationService #931

Merged
merged 3 commits into from
Apr 13, 2021

Conversation

axw
Copy link
Member

@axw axw commented Apr 12, 2021

Change SpanContext.SetDestinationService to be a no-op if either Name or Resource is empty. We must not send an empty Name if a non-empty Resource is specified (and vice versa), as this will lead to a validation error in apm-server.

Closes #916

SetDestinationService must not send an empty Name if a
non-empty Resource is specified (and vice versa), as
this will lead to a validation error in apm-server.

Change SetDestinationService to set neither if either
one is empty.
@axw axw force-pushed the destinationservice-validation branch from f7ec08d to 1b91d8c Compare April 12, 2021 09:47
@axw axw marked this pull request as ready for review April 12, 2021 09:48
@axw axw requested a review from a team April 12, 2021 09:48
@apmmachine
Copy link
Contributor

apmmachine commented Apr 12, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #931 updated

  • Start Time: 2021-04-12T14:19:02.536+0000

  • Duration: 27 min 49 sec

  • Commit: 9da52cc

Test stats 🧪

Test Results
Failed 0
Passed 10164
Skipped 266
Total 10430

Trends 🧪

Image of Build Times

Image of Tests

@axw axw merged commit 0f4fcad into elastic:master Apr 13, 2021
@axw axw deleted the destinationservice-validation branch April 13, 2021 06:40
stuartnelson3 pushed a commit that referenced this pull request Jul 30, 2021
SetDestinationService must not send an empty Name if a
non-empty Resource is specified (and vice versa), as
this will lead to a validation error in apm-server.

Change SetDestinationService to set neither if either
one is empty.
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.

[META 424] Public API extended by destination fields
3 participants