Skip to content

feat: otel hook #22

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

Merged
merged 4 commits into from
Dec 27, 2022
Merged

feat: otel hook #22

merged 4 commits into from
Dec 27, 2022

Conversation

tcarrio
Copy link
Member

@tcarrio tcarrio commented Dec 27, 2022

This PR

  • adds new OpenTelemetry hook
  • separate providers/hooks into independent directories at the top level, also reducing the confusion of a PHP source project that's actually a monorepo

Related Issues

Fixes #6

Notes

Follow-up Tasks

More tests. The PHP OTel API exposes a null-safe means to access the current span that absolutely cannot fail, so this is very low risk. Either way, I'll be mocking the call to ensure everything is run through correctly.

How to test

Execute (in-progress) tests.

@tcarrio tcarrio changed the title Feat/otel hook feat: otel hook Dec 27, 2022
@tcarrio tcarrio force-pushed the feat/otel-hook branch 3 times, most recently from 2320b84 to 43b0783 Compare December 27, 2022 00:44
- new statically registerable OTel hook for OpenFeature
- move hooks and providers into independent directories
- enable PHP 8.2 runner
- disable integration tests since none exist
- utilize test wrapper script definition in CI

Ref: #6

Signed-off-by: Tom Carrio <[email protected]>

Signed-off-by: Tom Carrio <[email protected]>
@tcarrio
Copy link
Member Author

tcarrio commented Dec 27, 2022

I approve? 🤷

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.

Add OTel Hook
1 participant