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

Google Cloud Trace Client Library/Exporter #1434

Open
HaGuesto opened this issue Nov 18, 2024 · 4 comments
Open

Google Cloud Trace Client Library/Exporter #1434

HaGuesto opened this issue Nov 18, 2024 · 4 comments

Comments

@HaGuesto
Copy link

HaGuesto commented Nov 18, 2024

Is your feature request related to a problem?
If so, provide a concise description of the problem.

We used opencensus to extend the tracing capabilities. In general, Google already creates traces for any incoming requests. However, if you want to enhance the data collected, like which subprocesses took how long, you need to include tracing libraries. To do this Google recommended opencensus when we started implementing the tracing.

opencensus was archived on Oct 4, 2023 and we get a warning in php8.2 that it has been deperecated with php7.4 . The tracing still works though at the moment. It still tracks the sub “spans” and traces correctly. However, we cannot count on it for long and a change in the Google infra-structure could mean that the tracing will not be working from one day to another. Since we still want to keep the tracing, we need to migrate.

Now in general, Google recommends OpenTelemetry for tracing, but there is no specific exporter/lib or documentation of OpenTelemetry that works for php and GoogleCloud.

Describe the solution you'd like
What do you want to happen instead? What is the expected behavior?

specific exporter/lib of OpenTelemetry that works for php and Google Cloud Trace or documentation how to use the OTLP exporter with Google Cloud trace

Describe alternatives you've considered
Which alternative solutions or features have you considered?

https://github.com/affordablemobiles/opentelemetry-operations-php

Additional context
Add any other context about the feature request here.

The Google documentation specific to php still recommends opencensus (here their php tracing sample) even though they also require at least php8.1 to be run on their servers.

@ynikitin-etsy
Copy link
Contributor

@HaGuesto
Copy link
Author

Does this do what you need? https://github.com/opentelemetry-php/extension-propagator-cloudtrace

No. I rather need a way how to configure the OTLP exporter to report correctly to Google Cloud Trace similar to the python documentation

@brettmc
Copy link
Collaborator

brettmc commented Nov 21, 2024

@HaGuesto what is the OTLP exporter missing to be able to "report correctly to Google Cloud Trace" ? This hasn't come up before AFAIK. Does google cloud trace accept traces in the opentelemety format?

@idontusenumbers
Copy link

I believe the missing pieces to the puzzle are:

  1. The OTLP endpoint
  2. Authentication

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

No branches or pull requests

4 participants