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

Init the new loader extension #2684

Merged
merged 45 commits into from
Jun 26, 2024
Merged

Init the new loader extension #2684

merged 45 commits into from
Jun 26, 2024

Conversation

iamluc
Copy link
Contributor

@iamluc iamluc commented May 31, 2024

Description

This extension will be used to find and load the right ddtrace extension to support PHP Single Step Instrumentation

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

@iamluc iamluc force-pushed the luc/ssi-library-loader branch 11 times, most recently from 2f4bdd9 to ccce898 Compare May 31, 2024 14:46
root: '.'
paths: [ './loader/modules/dd_library_loader.so', './loader/dd-library-php' ]

"test_loader":
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd like to have on one PHP version run the test suite with opcache. Just to make sure the load ordering doesn't mess with the delicate callback replacing we do.

@iamluc iamluc force-pushed the luc/ssi-library-loader branch 2 times, most recently from cbd3854 to b0276b6 Compare June 3, 2024 09:54
loader/compat_php.c Outdated Show resolved Hide resolved
matrix:
parameters:
php_major_minor:
# - "5.6"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We still need a test that, on 5.6, that the loader will disable itself. Without doing anything or emitting warnings. (Change the url to 1.0.0 to test without PHP 5 binaries included).

loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
@bwoebi
Copy link
Collaborator

bwoebi commented Jun 6, 2024

Just adding a note so that we don't forget about it: if getenv("DD_TELEMETRY_FORWARDER_PATH") is set, then fork(), execve() to it with the telemetry payload telling why it wasn't loaded.

loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
@iamluc iamluc force-pushed the luc/ssi-library-loader branch from 3b584b1 to dc05737 Compare June 21, 2024 09:18
loader/compat_php.c Outdated Show resolved Hide resolved
loader/compat_php.c Outdated Show resolved Hide resolved
loader/dd_library_loader.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@bwoebi bwoebi left a comment

Choose a reason for hiding this comment

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

Looks good by me now - nice work :-)

@iamluc iamluc merged commit 72632b8 into master Jun 26, 2024
657 of 659 checks passed
@iamluc iamluc deleted the luc/ssi-library-loader branch June 26, 2024 11:28
@github-actions github-actions bot added this to the 1.2.0 milestone Jun 26, 2024
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.

2 participants