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

feat(lambda-tiler): show number of bytes served with WMTS requests #1439

Merged
merged 2 commits into from
Feb 16, 2021

Conversation

blacha
Copy link
Member

@blacha blacha commented Feb 16, 2021

No description provided.

@@ -164,6 +164,7 @@ export async function wmts(req: LambdaContext): Promise<LambdaHttpResponse> {
response.header(HttpHeader.ETag, cacheKey);
response.header(HttpHeader.CacheControl, 'max-age=0');
response.buffer(data, 'text/xml');
req.set('bytes', data.byteLength);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it suppose to set to response?

Copy link
Member Author

Choose a reason for hiding this comment

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

This set set's the request context.

The request context is logged at the end of the request.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. Now good to go.

@kodiakhq kodiakhq bot merged commit 459c88e into master Feb 16, 2021
@kodiakhq kodiakhq bot deleted the feat/show-bytes-served branch February 16, 2021 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants