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

Trace API function for trace writer project ID #548

Merged

Conversation

draffensperger
Copy link
Contributor

This will be used by the best-effort logs correlation changes to be able to format the LogEntry.trace field in the specified projects/[PROJECT-ID]/traces/[TRACE-ID] format (per https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry).

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 30, 2017
src/trace-api.js Outdated
TraceAgent.prototype.getWriterProjectId = function() {
var traceWriter;
try {
traceWriter = TraceWriter.get();

This comment was marked as spam.

This comment was marked as spam.

});
});

it('should return get the project ID if set in config', function() {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Copy link
Contributor

@matthewloring matthewloring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together!

@draffensperger
Copy link
Contributor Author

No problem. If all is good, can you go ahead and merge this?

@matthewloring matthewloring merged commit 68ec8d5 into googleapis:master Sep 5, 2017
@draffensperger draffensperger deleted the get-writer-project-id branch September 5, 2017 15:41
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants