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

chore: add logging #321

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: logging
astsiapanay committed May 3, 2024
commit 5fc461c580869c8ebc5fbd1700b1c2bb4e26dfee
Original file line number Diff line number Diff line change
@@ -144,11 +144,10 @@ private void setupProxyApiKeyData() {
ApiKeyData proxyApiKeyData = new ApiKeyData();
context.setProxyApiKeyData(proxyApiKeyData);
ApiKeyData.initFromContext(proxyApiKeyData, context);
log.info("Start assigning per request api key. Trace: {}. Span: {}. Key: {}. Deployment: {}",
context.getTraceId(), context.getSpanId(),
context.getProject(), context.getDeployment().getName());
long start = System.currentTimeMillis();
proxy.getApiKeyStore().assignPerRequestApiKey(proxyApiKeyData);
log.info("Complete assigning per request api key. Trace: {}. Span: {}. Key: {}. Deployment: {}",
log.info("Complete assigning per request api key for {} ms. Trace: {}. Span: {}. Key: {}. Deployment: {}",
System.currentTimeMillis() - start,
context.getTraceId(), context.getSpanId(),
context.getProject(), context.getDeployment().getName());
}