-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Problem Statement
Looking at your documentation and trying it out, it looks like to me there is no way to pass functions HttpsOptions to the wrapped functions which should pass them to the google cloud functions itself, or maybe Im even Overlooking something
The documentation is saying this:
import * as Sentry from "@sentry/google-cloud-serverless"
Sentry.init({
dsn: "xxxxxxx",
integrations: [
nodeProfilingIntegration(),
],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: 1.0,
});
// Use wrapHttpFunction to instrument your http functions
exports.helloHttp = Sentry.wrapHttpFunction((req, res) => {
/* Your function code */
});
.....
But we need to handle CORS and Headers, so we have for example something like this,
const opts: functions.https.HttpsOptions = {
cors: true,
region: "europe-west1"
};
exports.obtainusergroups = functions.https.onRequest(opts, async (request, response) => {})
So opts is passed to functions.https.onRequest, but this with Sentry is not doable which brings limitations
Solution Brainstorm
There should be a way to configure the native functions
Metadata
Metadata
Assignees
Labels
Projects
Status
Waiting for: Product Owner