GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add trace_id to log payload to enable log aggregation in GAE Flex by liyanhui1228 · Pull Request #3355 · googleapis/google-cloud-python Conversation
|
| else: | ||
| trace_id = None | ||
|
|
||
| return trace_id No newline at end of file |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| flask = None | ||
|
|
||
| # Extract the trace_id | ||
| if flask: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| try: | ||
| import flask | ||
| except ImportError: | ||
| flask = None |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| """Parse flask request header to get trace_id. | ||
|
|
||
| :rtype: str | ||
| :return: trace_id get from flask header |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| # Make a best effort to add the trace id. | ||
| # First try to extract the trace_id from HTTP header, only support flask framework for now. | ||
| trace_id = parse_flask_request_header() |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This whole PR should get closed, we are just supposed to use the generic log handler according to @JustinBeckwith in #2997 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Maybe we can still get the trace ID in there but it shouldn't be via the stackdriver helper that currently exists. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/cc @duggelz for context |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@waprin Can we make a decision quickly and either move forward or close this thing? (i.e. just don't want it to come off our plates and sit open in limbo) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I think we should close and @liyanhui1228 and @duggelz should have a quick chat about best way to do this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
OK, closing now. We can always re-open. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This has nothing to do with #2997 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It has everything to do with it because the helper method it's modifying is used to format the messages for /var/log/appengine. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Okay - deep breath - we failed to properly support a new contributor here. We need to do better. It's clear that while we want this feature, we're not ready to implement it. So, let's create a bug/feature request for this feature and mark all blocking bugs. If the owners of those bugs can't resolve them in a timely manner, let's see what we can do to enable @liyanhui1228 or @duggelz to address them so that this feature can be implemented. @dhermes or @lukesneeringer, can you own this? If not, please let me know and I will do this personally. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I am happy to own it if needed ("buck stops here" kind of thing), but I am not sure I am the right person. I have read over this ticket and I do not intuitively grok the issue in question. I think the issue is that if there is an HTTP header that we can easily get at, we want to send it to Stackdriver in some way? Best case for me is if @jonparrott owns this, but I am willing to if needed. :-) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@lukesneeringer I'm on it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.