opentelemetry-python-contrib icon indicating copy to clipboard operation
opentelemetry-python-contrib copied to clipboard

Add support for Google Cloud Functions

Open beijiez opened this issue 10 months ago • 2 comments

What problem do you want to solve?

Since OpenTelemetry is widely used in serverless applications, adding instrumentation for GCF would improve usability.

While an aws_lambda instrumenter already exists, there is no equivalent for Google Cloud Functions, which is widely used for serverless deployments. Providing this support would help OpenTelemetry users monitor and trace their workloads in Google Cloud Functions with the same level of insight as AWS Lambda.

Describe the solution you'd like

  • Create a new instrumenter for Google Cloud Functions. Similar to what's already available in aws_lambda instrumenter
  • Add tests

Additional Context

  • Related Google Cloud resources: https://cloud.google.com/functions/docs/concepts/overview
  • Existing aws_lambda instrumenter implementation

Would you like to implement a fix?

None

beijiez avatar Jan 24 '25 21:01 beijiez

@beijiez can you expand a little on what you would like to see instrumented? Either specifics or some CUJs you have would be helpful

aabmass avatar Jan 28 '25 16:01 aabmass

@beijiez can you expand a little on what you would like to see instrumented? Either specifics or some CUJs you have would be helpful

Sure, I was thinking of starting with general stuff like request duration, error rates, and external service call counts. If it can then be sent to a backend such as Jaeger or Google Cloud Monitoring (because GCF) would be great.

beijiez avatar Jan 28 '25 17:01 beijiez