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

Garage week trace debug validators #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cristianconstantin
Copy link
Contributor

@ddragosd ping

ngx.log(ngx.WARN, "Please initialize RequestTrackingManager before calling this method")
end

local tracingLogger = ngx.apiGateway.getAsyncLogger("api-gateway-debugging")
Copy link
Member

Choose a reason for hiding this comment

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

There's a few assumptions here we could think of configure rather than hard-coding:

  • that there's an object ngx.apiGateway.
  • that there's an object ngx.apiGateway.getAsyncLogger
  • that there's a configuration for the logger named api-gateway-debugging

Copy link
Contributor Author

@cristianconstantin cristianconstantin Jun 21, 2016

Choose a reason for hiding this comment

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

@ddragosd , let's then follow the same path as for the trackingManager variable and use

local tracingManager = ngx.apiGateway.tracing.manager

which should be initialized in the GW init code. WDYT?
The TracingManager object would need to have a method logTraceRequest which accepts a Lua table as a parameter.

@vdatcu vdatcu force-pushed the garage-week-trace-debug-validators branch from 8f18405 to 4f1db04 Compare July 6, 2017 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants