Skip to content

Extract ddtrace_sandbox_begin/ddtrace_sandbox_end helpers#940

Merged
morrisonlevi merged 1 commit intomasterfrom
levi/build/sandbox
Jul 1, 2020
Merged

Extract ddtrace_sandbox_begin/ddtrace_sandbox_end helpers#940
morrisonlevi merged 1 commit intomasterfrom
levi/build/sandbox

Conversation

@morrisonlevi
Copy link
Copy Markdown
Collaborator

@morrisonlevi morrisonlevi commented Jun 30, 2020

Description

Most of the time the sandboxing code is the same, so let's de-duplicate it. We're going to start using it more too, for example:

  • Non-instrumentation API
  • Loading integrations on-demand

Note that the PHP 7 curl handlers were only partly sandboxed as they don't expect exceptions from curl calls; they now backup the exception info anyway.

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. For community contributors the reviewer is in charge of this task.

@morrisonlevi morrisonlevi added the c-extension Apply this label to issues and prs related to the C-extension label Jun 30, 2020
@morrisonlevi morrisonlevi force-pushed the levi/build/sandbox branch 3 times, most recently from 3eb9529 to 873bd99 Compare June 30, 2020 22:17
Most of the time the sandboxing code is the same, so let's
de-duplicate it.
@morrisonlevi morrisonlevi marked this pull request as ready for review June 30, 2020 22:50
summner
summner approved these changes Jul 1, 2020
@pawelchcki pawelchcki self-requested a review July 1, 2020 15:40
Copy link
Copy Markdown
Contributor

@pawelchcki pawelchcki left a comment

Choose a reason for hiding this comment

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

👍

@morrisonlevi morrisonlevi added this to the 0.47.0 milestone Jul 1, 2020
@morrisonlevi morrisonlevi merged commit 24e2960 into master Jul 1, 2020
@morrisonlevi morrisonlevi deleted the levi/build/sandbox branch July 1, 2020 15:41
@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

c-extension Apply this label to issues and prs related to the C-extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants