Skip to content

#621 - add the logging of requestId#1032

Merged
1 commit merged into
gooddata:masterfrom
daniel-rusnak:621-gh-issue
Jun 21, 2021
Merged

#621 - add the logging of requestId#1032
1 commit merged into
gooddata:masterfrom
daniel-rusnak:621-gh-issue

Conversation

@daniel-rusnak

Copy link
Copy Markdown
Contributor

Added 'RequestIdInterceptor' on the apache http client to generate 'requestId' for the client requests. It wasn't added to Spring 'RestTemplate' because the Sardine client doesn't use it.

Added 'ResponseMissingRequestIdInterceptor' on the apache http client to add missing 'X-GDC-REQUEST' header in responses coming from WebDav server.

Added the 'requestId' information to exceptions to easier tracking the problem.

@ghost

ghost commented Jun 15, 2021

Copy link
Copy Markdown

Build succeeded (check pipeline).

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.2%) to 86.061% when pulling 38f0042 on daniel-rusnak:621-gh-issue into e01fd92 on gooddata:master.

@peter-plochan peter-plochan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work 👍
Just minor things to consider

Comment thread gooddata-java/src/test/java/com/gooddata/sdk/service/gdc/DatastoreServiceAT.java Outdated
@ghost

ghost commented Jun 15, 2021

Copy link
Copy Markdown

Build succeeded (check pipeline).

@jimirocks jimirocks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

GoodJob, but please note comments

Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/RequestIdInterceptor.java Outdated
Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/RequestIdInterceptor.java Outdated
Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/RequestIdInterceptor.java Outdated
Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/RequestIdInterceptor.java Outdated
Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/RequestIdInterceptor.java Outdated
Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/gdc/DataStoreService.java Outdated
Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/gdc/DataStoreService.java Outdated
Comment thread gooddata-java/src/main/java/com/gooddata/sdk/service/gdc/DataStoreService.java Outdated
Comment thread gooddata-java/src/test/java/com/gooddata/sdk/service/gdc/DatastoreServiceAT.java Outdated
@ghost

ghost commented Jun 17, 2021

Copy link
Copy Markdown

Build succeeded (check pipeline).

@ghost

ghost commented Jun 20, 2021

Copy link
Copy Markdown

Build succeeded (check pipeline).

Added 'RequestIdInterceptor' on the apache http client to generate 'requestId' for the client requests. It wasn't added to Spring 'RestTemplate' because the Sardine client doesn't use it.

Added 'ResponseMissingRequestIdInterceptor' on the apache http client to add missing 'X-GDC-REQUEST' header in responses coming from WebDav server.

Added the 'requestId' information to exceptions to easier tracking the problem.
@ghost

ghost commented Jun 20, 2021

Copy link
Copy Markdown

Build succeeded (check pipeline).

@ghost ghost removed the merge label Jun 21, 2021
@ghost ghost merged commit cf4a3e4 into gooddata:master Jun 21, 2021
@ghost

ghost commented Jun 21, 2021

Copy link
Copy Markdown

@liry liry added enhancement and removed bug labels Jun 25, 2021
@liry liry added this to the next milestone Jun 25, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RequestId is not propagated to the exception in DataStoreService

5 participants