Skip to content

Warn on dd_trace usage if DD_TRACE_WARN_LEGACY_DD_TRACE#941

Merged
morrisonlevi merged 4 commits intomasterfrom
levi/build/legacy-warning
Jul 7, 2020
Merged

Warn on dd_trace usage if DD_TRACE_WARN_LEGACY_DD_TRACE#941
morrisonlevi merged 4 commits intomasterfrom
levi/build/legacy-warning

Conversation

@morrisonlevi
Copy link
Copy Markdown
Collaborator

@morrisonlevi morrisonlevi commented Jun 30, 2020

Description

If the function dd_trace is used, it will print a warning if:

  • DD_TRACE_WARN_LEGACY_DD_TRACE is a truthy value like 1 or true
  • AND this process hasn't printed a warning about it before.

Currently, this still warns on PHP 5.4 as well, even though it does not have access to the sandboxed API.

Readiness checklist

  • Changelog has been added to the appropriate release draft.
  • Tests added for this feature/bug.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.
  • Changelog has been added to the appropriate release draft.

@morrisonlevi morrisonlevi added the 🏆 enhancement A new feature or improvement label Jun 30, 2020
@morrisonlevi morrisonlevi added this to the 0.47.0 milestone Jun 30, 2020
@morrisonlevi morrisonlevi force-pushed the levi/build/legacy-warning branch 3 times, most recently from 7fb23f6 to cd41eb8 Compare July 2, 2020 14:35
@morrisonlevi morrisonlevi marked this pull request as ready for review July 2, 2020 14:47
@morrisonlevi morrisonlevi force-pushed the levi/build/legacy-warning branch from cd41eb8 to c5454ea Compare July 2, 2020 15:02
@morrisonlevi morrisonlevi changed the title Warn on dd_trace usage if DD_TRACE_WARNINGS Warn on dd_trace usage if DD_TRACE_WARN_LEGACY_DD_TRACE Jul 2, 2020
@morrisonlevi
Copy link
Copy Markdown
Collaborator Author

This is blocked on sandboxing both Lumen and Symfony.

@morrisonlevi morrisonlevi force-pushed the levi/build/legacy-warning branch 2 times, most recently from 7303c43 to 3fa5abd Compare July 6, 2020 21:19
SammyK
SammyK previously approved these changes Jul 6, 2020
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.

Nice work @morrisonlevi!

SammyK
SammyK previously approved these changes Jul 6, 2020
They cannot take any actions, so no need to link them to a page that
will not help them.
@morrisonlevi morrisonlevi merged commit 4eb3ac1 into master Jul 7, 2020
@morrisonlevi morrisonlevi deleted the levi/build/legacy-warning branch July 7, 2020 17:54
@morrisonlevi morrisonlevi mentioned this pull request Jul 7, 2020
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.

2 participants