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

contrib/labstack/echo: Custom tags #2340

Merged
merged 5 commits into from Nov 13, 2023
Merged

contrib/labstack/echo: Custom tags #2340

merged 5 commits into from Nov 13, 2023

Conversation

rafaeljusto
Copy link
Contributor

What does this PR do?

New option to allow adding custom tags when creating the span. Custom tags won't replace the default tags.

Motivation

This is important to attach some extra information, such as user session data (e.g. authentication type), that it's useful when generating graphs from Datadog APM traces.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.

For Datadog employees:

  • If this PR touches code that handles credentials of any kind, such as Datadog API keys, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

@rafaeljusto rafaeljusto requested a review from a team as a code owner November 9, 2023 20:22
@rafaeljusto rafaeljusto requested a review from a team November 9, 2023 20:22
contrib/labstack/echo.v4/echotrace.go Outdated Show resolved Hide resolved
contrib/labstack/echo.v4/appsec_test.go Outdated Show resolved Hide resolved
contrib/labstack/echo.v4/option.go Show resolved Hide resolved
New option to allow adding custom tags when creating the span. Custom tags
won't replace the default tags.

This is important to attach some extra information, such as user session data
(e.g. authentication type), that it's useful when generating graphs from
Datadog APM traces.
@rafaeljusto
Copy link
Contributor Author

Thank you lads! The requested changes are applied now.

Copy link
Contributor

@Hellzy Hellzy left a comment

Choose a reason for hiding this comment

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

Approving for ASM (apparently still needed)

contrib/labstack/echo.v4/echotrace.go Outdated Show resolved Hide resolved
@rafaeljusto
Copy link
Contributor Author

Hey @darccio , thank you for reviewing this. I'm not allowed to merge these changes. Are there any extra steps on my side?

@darccio
Copy link
Contributor

darccio commented Nov 10, 2023

@rafaeljusto We'll merge them.

@darccio darccio merged commit 0ab4465 into DataDog:main Nov 13, 2023
10 checks passed
@rafaeljusto rafaeljusto deleted the enhancement/labstack-echo-custom-tags branch November 13, 2023 13:04
@rafaeljusto
Copy link
Contributor Author

Hi @darccio , what's the policy regarding setting new tags for the library? Does it happen once a week or something? Just trying to figure out the timeline on my side as we have a couple of things depending on this change.

@darccio
Copy link
Contributor

darccio commented Nov 15, 2023

@rafaeljusto It happens monthly. This PR has been included in the next release train that started yesterday for v1.58.0.

@rafaeljusto
Copy link
Contributor Author

Thank you for clarifying it. 👍

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.

None yet

4 participants