You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Spanner client is sending builtin/native metrics directly to GCP by default.
For services that have no permission, the metric export results to error log and span with following message.
Permission monitoring.timeSeries.create denied (or the resource may not exist).
For the above noise to go away, the native metrics can be disabled (SPANNER_DISABLE_BUILTIN_METRICS=true) or simply give service the missing permission. However, this is always something to keep in mind for a new service using spanner.
Describe the solution you'd like
Use the ClientConfig.OpenTelemetryMeterProvider from the config
Is your feature request related to a problem? Please describe.
Spanner client is sending builtin/native metrics directly to GCP by default.
For services that have no permission, the metric export results to error log and span with following message.
For the above noise to go away, the native metrics can be disabled (SPANNER_DISABLE_BUILTIN_METRICS=true) or simply give service the missing permission. However, this is always something to keep in mind for a new service using spanner.
Describe the solution you'd like
Use the ClientConfig.OpenTelemetryMeterProvider from the config
Code affected.
google-cloud-go/spanner/client.go
Lines 496 to 511 in 5b59819
Describe alternatives you've considered
otel.GetMeterProvider()
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: