open-telemetry / opentelemetry-collector

OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
4.28k stars 1.41k forks source link

Support for Deploying OpenTelemetry Collector in Google Cloud Functions #11070

Closed khossain-clgx closed 5 days ago

khossain-clgx commented 1 week ago

Is your feature request related to a problem? Please describe. I’m always frustrated when I cannot deploy the OpenTelemetry Collector in Google Cloud Functions. This limitation hinders our ability to monitor and trace serverless applications effectively.

Describe the solution you’d like I would like to have support for deploying the OpenTelemetry Collector in Google Cloud Functions. This would enable us to collect telemetry data from our serverless applications seamlessly.

Describe alternatives you’ve considered We have considered using other monitoring tools, but they do not provide the same level of integration and flexibility as the OpenTelemetry Collector.

Additional context Adding support for Google Cloud Functions would greatly enhance our ability to monitor serverless applications and ensure better observability across our infrastructure.

codeboten commented 1 week ago

maybe @dashpole can comment here, i don't know what the best place to make this kind of feature request. are there any limitations to the collector that prevent it from being deployed in google cloud functions?

codeboten commented 1 week ago

updated the title to remove duplicate portion

dashpole commented 1 week ago

It is possible (but hacky) to run the collector in-process for cloud functions, but I wouldn't recommend it. I don't think this is because of any limitation of the otel collector, so it probably should be closed here. Cloud functions can't run sidecars, so you would need to run a collector service on cloud run or GKE, and have the function send OTLP to that service.

bogdandrutu commented 5 days ago

Closing per @dashpole comment. @khossain-clgx let me know if that helps.