Skip to content

Add \DDTrace\get_current_context#1227

Merged
Anilm3 merged 8 commits intomasterfrom
anilm3/ddtrace_get_current_context
Jun 1, 2021
Merged

Add \DDTrace\get_current_context#1227
Anilm3 merged 8 commits intomasterfrom
anilm3/ddtrace_get_current_context

Conversation

@Anilm3
Copy link
Copy Markdown
Contributor

@Anilm3 Anilm3 commented May 5, 2021

Description

Readiness checklist

  • (only for Members) Changelog has been added to the release document.
  • Tests added for this feature/bug.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.
  • Changelog has been added to the release document. For community contributors the reviewer is in charge of this task.

@SammyK SammyK added the 🏆 enhancement A new feature or improvement label May 28, 2021
@SammyK SammyK added this to the 0.61.0 milestone May 28, 2021
Copy link
Copy Markdown
Contributor

@SammyK SammyK left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 Nice work @Anilm3.

Before marking approve, one tiny nit on the API (cc @labbati): WDYT of dropping the get_ prefix: \DDTrace\current_context(). That would make it more consistent with existing getter functions. e.g.:

  • \DDTrace\trace_id()
  • \DDTrace\additional_trace_meta()
  • \DDTrace\startup_logs()

No strong opinion either way though. :)

@labbati
Copy link
Copy Markdown
Member

labbati commented May 31, 2021

WDYT of dropping the get_ prefix: \DDTrace\current_context()

Sounds good to me! Thank you both!

@Anilm3
Copy link
Copy Markdown
Contributor Author

Anilm3 commented Jun 1, 2021

@SammyK, thanks, as suggested I've renamed get_current_context to current_context.

@Anilm3 Anilm3 requested a review from SammyK June 1, 2021 13:08
Copy link
Copy Markdown
Contributor

@SammyK SammyK left a comment

Choose a reason for hiding this comment

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

Thanks @Anilm3! 💯

@Anilm3 Anilm3 merged commit de3bf1f into master Jun 1, 2021
@Anilm3 Anilm3 deleted the anilm3/ddtrace_get_current_context branch June 1, 2021 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏆 enhancement A new feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants