-
Notifications
You must be signed in to change notification settings - Fork 7
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
01 - Add request logging mechanism #82
Conversation
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/StreamingResponseHandler.java
Outdated
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/TrinoS3ProxyClient.java
Outdated
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/signing/InternalSigningController.java
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/RequestLogger.java
Outdated
Show resolved
Hide resolved
4dfd008
to
c0fa6ea
Compare
@vagaerg all comments addressed |
8946fef
to
9efb701
Compare
c9c85a4
to
3efbe80
Compare
bd79898
to
3fbc13c
Compare
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/RequestBuilder.java
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/RequestLoggerController.java
Outdated
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/RequestLoggerController.java
Outdated
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/RequestLoggerController.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
@Override | ||
public Void handleException(Request request, Exception exception) | ||
throws RuntimeException | ||
{ | ||
throw propagate(request, exception); | ||
requestLoggingSession.logException(exception); | ||
requestLoggingSession.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we shouldn't be calling close()
here, but I'm also unsure where it should be called
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see #83 which improves management of this.
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/signing/InternalSigningController.java
Outdated
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/RequestLoggingSession.java
Show resolved
Hide resolved
trino-s3-proxy/src/main/java/io/trino/s3/proxy/server/rest/RequestLoggerController.java
Show resolved
Hide resolved
3fbc13c
to
a890eb7
Compare
TODO - add complete telemetry system Adds controller that logs requests and allows for eventual admin API that can return recent request info Relates to #25
a890eb7
to
e0c4fa6
Compare
TODO - add complete telemetry system
Adds controller that logs requests and allows for eventual admin
API that can return recent request info
Relates to #25