Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce x-goog-api-client for common-grpc #2164

Merged
merged 3 commits into from
Mar 30, 2017

Conversation

jmuk
Copy link
Contributor

@jmuk jmuk commented Mar 30, 2017

This introduces this header for non-gapic APIs.
Revise of #2020.

This introduces this header for non-gapic APIs.
Revise of googleapis#2020.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 30, 2017
@@ -178,6 +179,11 @@ function GrpcService(config, options) {

this.grpcMetadata = new grpc.Metadata();

this.grpcMetadata.add('x-goog-api-client', [
'gl-node/' + process.versions.node,
'gccl/' + (config.packageJson.version || ''),

This comment was marked as spam.

This comment was marked as spam.

'gl-node/' + process.versions.node,
'gccl/' + (config.packageJson.version || ''),
'grpc/' + grpcVersion
].join(' '));
if (config.grpcMetadata) {

This comment was marked as spam.

This comment was marked as spam.

'x-goog-api-client': [
'gl-node/' + process.versions.node,
'gccl/' + CONFIG.packageJson.version,
'grpc/' + grpcVersion].join(' ')

This comment was marked as spam.

This comment was marked as spam.

this.grpcMetadata.add('x-goog-api-client', [
'gl-node/' + process.versions.node,
'gccl/' + (config.packageJson.version || ''),
'grpc/' + grpcVersion

This comment was marked as spam.

This comment was marked as spam.

@@ -21,6 +21,7 @@ var duplexify = require('duplexify');
var extend = require('extend');
var googleProtoFiles = require('google-proto-files');
var grpc = require('grpc');
var grpcVersion = require('grpc/package.json').version;

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Coverage increased (+3.0e-06%) to 99.987% when pulling ed92594 on jmuk:header into f7d4b05 on GoogleCloudPlatform:master.

- remove grpcVersion from src/service.js
- style fixes
@coveralls
Copy link

Coverage Status

Coverage increased (+2.0e-06%) to 99.987% when pulling c6dda85 on jmuk:header into f7d4b05 on GoogleCloudPlatform:master.

@stephenplusplus stephenplusplus merged commit 4c71ccd into googleapis:master Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants