Skip to content

How to log 500 error/exception from other services? #1819

Answered by raman-m
tungphuong asked this question in Q&A
Discussion options

You must be logged in to vote

@tungphuong on Jul 24, 2018:

I have one concern that how to log exception (Http code 500) from downstream services.

Hey Phuong Le!
Seems you are no longer with Ocelot... This is last try to ping you...

What details of 500 error would you like to log by Ocelot?

  • Status code and the path
  • Status code, template path, service error/exception details

And, why do you think that Ocelot should log error details of downstream service?
I believe downstream should log service errors.

If you want to transfer root cause of 500 error then you have to control downstream service, develop, setup, and prepare error details model to send all this information in response as JSON for example to allow Ocelot…

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@raman-m
Comment options

@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
2 replies
@raman-m
Comment options

@raman-m
Comment options

Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;)
4 participants
Converted from issue

This discussion was converted from issue #492 on November 29, 2023 19:46.