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

PHP library that has OpenTelemetry natively integrated #6126

Open
tillkruss opened this issue Jan 30, 2025 · 4 comments
Open

PHP library that has OpenTelemetry natively integrated #6126

tillkruss opened this issue Jan 30, 2025 · 4 comments
Labels

Comments

@tillkruss
Copy link

Hi!

I saw this:

As of today, we don't know about any PHP library that has OpenTelemetry natively integrated.
https://opentelemetry.io/docs/languages/php/libraries/

We have an Open Telemetry wrapper class for Relay (extension) that's used by a few of our clients.

Not sure if that's what was meant?

@tiffany76
Copy link
Contributor

Thanks for letting us know, @tillkruss!

@open-telemetry/php-approvers, PTAL.

@svrnm
Copy link
Member

svrnm commented Jan 31, 2025

hey Till, thanks for sharing!

What we are looking for when we talk about "natively integrated" is a library that does not require a wrapper or an instrumentation library, you can read more about this topic here:

https://opentelemetry.io/docs/concepts/instrumentation/libraries/

So, instead of providing a wrapper the relay project would take direct dependency of the OpenTelemetry API (which is noop by default) and a user can activate OTel by adding the OpenTelemetry SDK to the application as well.

Independent of that, it's great to see that such a wrapper exist, and we should add it to the OpenTelemetry Registry:

https://opentelemetry.io/ecosystem/registry/

Here are instructions on the how to

https://opentelemetry.io/ecosystem/registry/adding/

@tillkruss
Copy link
Author

@svrnm Can you point us at the documentation on how we can record spans from C within our extension? Ping @yatsukhnenko.

@brettmc
Copy link
Contributor

brettmc commented Feb 4, 2025

@tillkruss it would be https://opentelemetry.io/docs/languages/cpp/ but you won't find anything specific to integrating it into a PHP extension. However, I have been playing around with something similar so perhaps we can compare notes over on the opentelemetry-php slack channel ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants