extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[firestore-bigquery-export] Too many verbose logs for each row insertions in Cloud logs.

Open arvind-fluxon opened this issue 4 years ago • 9 comments

[READ] Step 1: Are you in the right place? Yes

Issues filed here should be about a feature request for a specific extension in this repository. To file a feature request that affects multiple extensions or the Firebase Extensions platform, please reach out to Firebase support directly.

[REQUIRED] Step 2: Extension name

firestore-bigquery-export

What feature would you like to see?

Control the verbosity / level of logs.

How would you use it?

While creating the configuration its best to give this attribute to record probably only the warnings and errors. Screenshot 2022-08-19 at 16 56 05

Also, I've gone through the existing issues but there is no configuration noticed while using the extension from Firebase extension configuration UI.

arvind-fluxon avatar Aug 19 '22 11:08 arvind-fluxon

Hi @arvind-fluxon, Thank you for filling this issue, I'll add this feature request to the project tracker to be considered.

yamankatby avatar Aug 19 '22 11:08 yamankatby

Hi @yamankatby, Thanks for taking this up as a feature request. Could you tell me what happens after this?

arvind-fluxon avatar Aug 24 '22 05:08 arvind-fluxon

Hi @arvind-fluxon, Currently, the issue is under consideration, now the project manager will decide whether to implement it.

yamankatby avatar Aug 24 '22 11:08 yamankatby

Hey @yamankatby, We also would like to see this feature implemented. Can you tell me what is the current state of it? Can we help moving forward with it?

lmesz avatar Jun 06 '23 08:06 lmesz

Hey @lmesz

This task is currently in our backlog.

PRs are very welcome on this repository if you would like to give it a go!

dackers86 avatar Jun 06 '23 09:06 dackers86

This is an issue for me too, to put it into perspective, after enabling this extension we saw a larger increase in cloud logging costs than in big query costs.

As far as I am aware the logger being used doesn't support setting a required log level. I could write a patch in this BQ extension to implement log-level based filtering, but it might not be very clean.

I think what people want is to be able to set a configuration option on the extension: LOG_LEVEL and know that this extension will only emit logs of that level or greater. Let me know if that sounds reasonable to implement in the extension @yamankatby @dackers86, and I can give it a try 🦾

cam-at-tactiq avatar Oct 03 '24 02:10 cam-at-tactiq

A work around is to set a log exclusion on your Default log sink.
Adjust the regex to match your function_names that you use for extensions. This prefix matches the ones I need to reduce the volume. This can easily be muted if you need to see more detail.

Some extensions dump entire document payloads even at INFO level.

resource.type = "cloud_function"
resource.labels.region = "us-central1"
resource.labels.function_name=~"^ext-(firestore|fsbq)-"
logName="projects/<your-project>/logs/cloudfunctions.googleapis.com%2Fcloud-functions"
severity<INFO
Image

kevpie avatar Mar 13 '25 20:03 kevpie

I believe we now have a draft PR in for LOG_LEVEL to address this, I'll make sure to link this issue to it tomorrow

cabljac avatar Mar 13 '25 20:03 cabljac

I'm going to close this as https://github.com/firebase/extensions/pull/2330 has addressed this issue.

CorieW avatar Mar 18 '25 12:03 CorieW