Add Firebase Version to header#414
Conversation
| }; | ||
|
|
||
| if (settings && settings.firebaseVersion) { | ||
| libraryHeader.libVersion += ' fire/' + settings.firebaseVersion; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| @@ -279,11 +279,6 @@ export class Firestore { | |||
| * use `Timestamp` now and opt-in to this new behavior as soon as you can. | |||
| */ | |||
| constructor(settings?: Settings) { | |||
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Ping :) |
|
It looks the code will add |
We updated the code to use Issue: https://github.com/googleapis/gapic-generator/issues/2400 |
This PR allows the Admin SDK to pass its version to our SDK. We then add it as a header value to the existing x-goog-api-client header.
This looks like this:
x-goog-api-client: gl-node/v8.11.3 grpc/1.15.1 gax/0.20.0 gapic/0.18.0 gccl/0.18.0 fire/6.1.0