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

Add missing data to GCP integration. #1250

Closed
lucas-zimerman opened this issue Oct 11, 2021 · 1 comment
Closed

Add missing data to GCP integration. #1250

lucas-zimerman opened this issue Oct 11, 2021 · 1 comment
Labels
Feature New feature or request Google Cloud Functions
Projects

Comments

@lucas-zimerman
Copy link
Collaborator

lucas-zimerman commented Oct 11, 2021

Based on: https://github.com/getsentry/sentry-python/blob/4c09f3203d6d19789c6fa729a2e46557ad4ea913/sentry_sdk/integrations/gcp.py
Tag

                scope.set_tag("gcp_region", environ.get("FUNCTION_REGION"))

Transaction Name

            transaction = Transaction.continue_from_headers(
                headers, op="serverless.function", name=environ.get("FUNCTION_NAME", "")

Context

        extra["google cloud functions"] = {
            "function_name": environ.get("FUNCTION_NAME"),
            "function_entry_point": environ.get("ENTRY_POINT"),
            "function_identity": environ.get("FUNCTION_IDENTITY"),
            "function_region": environ.get("FUNCTION_REGION"),
            "function_project": environ.get("GCP_PROJECT"),

After looking for some data available on .NET I have found the following ones:

K_REVISION: Release version
FUNCTION_TARGET: namespace + function name
FUNCTION_SIGNATURE_TYPE : http (or event?)
K_SERVICE: the GCP function name
GAE_RUNTIME: dotnet3
I don't think we have the GCP Project name, nor the region nor the other data

@bruno-garcia bruno-garcia added this to To Discuss in v3.x via automation Oct 26, 2021
@lucas-zimerman
Copy link
Collaborator Author

Implemented on #1286

v3.x automation moved this from To Discuss to Done Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request Google Cloud Functions
Projects
No open projects
v3.x
Done
Development

No branches or pull requests

2 participants