-
Notifications
You must be signed in to change notification settings - Fork 265
Feature request - correlation out-of-the box #391
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
Comments
Thanks for creating the issue. This might interest you https://devblogs.microsoft.com/aspnet/improvements-in-net-core-3-0-for-troubleshooting-and-monitoring-distributed-apps/ |
That's nice! So we may not need a dedicated correlation approach in Giraffe. Super library, btw. I maybe suggest some other functionality related to max request body size, request header validation, authentication, ... but not sure if that's really something that would help Giraffe. Maybe to 'application-specific'. idk. |
@stijnmoreels Does the link provided by @NinoFloris solve this particular issue or is there still a feature request in here worth discussing? |
I think it's still an option to discus this. But it;s not a problem to discard it either. It seems helpful to have some basic correlation handlers here. |
Is there a sample that shows |
Is your feature request related to a problem? Please describe.
Provide support for out-of-the-box correlation on both the operation & transaction level.
Every request should allow consumers to specify a transaction id by passing the X-Transaction-Id header. If this is not specified, one will be generated.
Internally this transaction id and operation id can be used internally for correlating telemetry.
Every response should return the used correlation information via the following headers:
X-Transaction-Id - The generated or specified transaction id
RequestId - The unique id that identifies this operation.
This information should also be able to be retrieved further down the application if they wish to use it.
Describe the solution you'd like
Middleware should be provided that handles this for every call, and registers the information for others to use.
This way, correlation can be added easily to the pipeline without any effort.
Only not sure if this is something we want in the Core library, or if this is too much 'application-specific' and should exists in another package/library.
The text was updated successfully, but these errors were encountered: