Skip to content

Add otlp metrics export from Google Cloud Run Functions#377

Merged
psx95 merged 7 commits into
GoogleCloudPlatform:mainfrom
psx95:cloud-run-functions
Oct 3, 2024
Merged

Add otlp metrics export from Google Cloud Run Functions#377
psx95 merged 7 commits into
GoogleCloudPlatform:mainfrom
psx95:cloud-run-functions

Conversation

@psx95
Copy link
Copy Markdown
Contributor

@psx95 psx95 commented Oct 2, 2024

Add an example that showcases metrics export from a serverless environment like Google Cloud Run Functions using OpenTelemetry Collector.

Demonstrates a workaround for #259

@psx95 psx95 force-pushed the cloud-run-functions branch from f27f836 to 9b6fdcb Compare October 2, 2024 20:52
@psx95 psx95 marked this pull request as ready for review October 2, 2024 20:55
@psx95 psx95 requested a review from a team as a code owner October 2, 2024 20:55
Copy link
Copy Markdown
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-blocking questions.

Also, random question, do you know if it is possible to use java auto-instrumentation with cloud functions?

Comment thread examples/otlpmetrics-function/collector-deployment/Dockerfile Outdated
Comment thread examples/otlpmetrics-function/collector-deployment/collector-config.yaml Outdated
Comment thread examples/otlpmetrics-function/collector-deployment/collector-config.yaml Outdated
Comment thread examples/otlpmetrics-function/collector-deployment/collector-config.yaml Outdated
@psx95
Copy link
Copy Markdown
Contributor Author

psx95 commented Oct 3, 2024

non-blocking questions.

Also, random question, do you know if it is possible to use java auto-instrumentation with cloud functions?

I have not tried, but I don't think we can use auto-instrumentation with Cloud Run Functions. Attaching auto-instrumentation agent requires the access to -javaagent JVM Flag and Cloud Run Function does not give the user access to this or any other JVM options.

@dashpole
Copy link
Copy Markdown
Contributor

dashpole commented Oct 3, 2024

Got it. Thats good to know, and makes this sample significantly more useful.

Comment thread examples/otlpmetrics-function/collector-deployment/Dockerfile
@psx95 psx95 merged commit 4181e2d into GoogleCloudPlatform:main Oct 3, 2024
@psx95 psx95 deleted the cloud-run-functions branch October 3, 2024 18:19
@psx95 psx95 mentioned this pull request Oct 4, 2024
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.

2 participants