| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…t running on gcp Refactor OpenTelemetryBootstrappingUtils to return a channel configurator function rather than mutating a passed in value. Add ChannelConfigurator interface to make testing easier and to simplify composition with any existing channel configurator function present in the InstantiatingGrpcChannelProvider.
There was a problem hiding this comment.
Thanks Ben!
Sorry, something went wrong.
| if (projectId == null && detectedProjectId == null) { | ||
| log.warning( | ||
| "Unable to determine the Project ID in order to report metrics. No gRPC client metrics will be reported."); | ||
| return channelConfigurator != null ? channelConfigurator : ChannelConfigurator.identity(); |
There was a problem hiding this comment.
qq: is this the case of not running on GCP?
Sorry, something went wrong.
There was a problem hiding this comment.
In a round about manner yes. The metrics reporting relies on application default credentials for initialization, and if the project can't be determined either as a passed in value from the Storage client, or resolved from the GCP resolved otel attributes there isn't any way to bootstrap.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Refactor OpenTelemetryBootstrappingUtils to return a channel configurator function rather than mutating a passed in value.
Add ChannelConfigurator interface to make testing easier and to simplify composition with any existing channel configurator function present in the InstantiatingGrpcChannelProvider.