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

fix(datadog): report consumer username tag #11354

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

bzp2010
Copy link
Contributor

@bzp2010 bzp2010 commented Jun 16, 2024

Description

When datadog tries to upload metrics containing the consumer username tag, it fails.
Basically the code there tries to splice a string with a table (without __tostring), which is completely wrong, and it has had this problem since the original version of the plugin, which went undetected because the original authors didn't write test cases related.

The previous author of PR #10934 was closed by bot for not adding test cases and no longer responding. Thanks to the issue reporter and the author of the previous PR.

Fixes #9269

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Copy link
Member

@bisakhmondal bisakhmondal left a comment

Choose a reason for hiding this comment

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

/lgtm
Thanks for the fix🎉

Copy link
Member

@juzhiyuan juzhiyuan left a comment

Choose a reason for hiding this comment

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

LGTM

@moonming moonming merged commit 1a45d1d into apache:master Jun 17, 2024
46 checks passed
ssignik added a commit to ssignik/apisix that referenced this pull request Jun 21, 2024
fix(datadog): report consumer username tag (apache#11354)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: datadog plugin failed to send metric when consumer is used with route for authentication
6 participants