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

request_id() in BlueScreen #512

Open
janbarasek opened this issue Oct 12, 2021 · 2 comments
Open

request_id() in BlueScreen #512

janbarasek opened this issue Oct 12, 2021 · 2 comments

Comments

@janbarasek
Copy link
Contributor

When debugging complex applications I often need to pair a specific BlueScreen with a request that logs another system (for example Sentry, or one of our applications).

I use the request_id() function to tag requests, which is defined either by a specific environment or a shared package and provides a unique UUID for a specific request.

In the BlueScreen footer, it would make sense to me to verify the existence of the request_id() function, and if it returns a string, its value is displayed.

Inspiration: https://packagist.org/packages/chrisguitarguy/request-id-bundle

Thanks.

@dg
Copy link
Member

dg commented Oct 12, 2021

getBlueScreen()->info[] = request_id() ?

@janbarasek
Copy link
Contributor Author

janbarasek commented Jan 15, 2022

This is related to a more general problem.

Large applications use what is called a CorrelationId, which is the ID of the current request to allow you to correlate calls and logs from different sources. For example, if Tracy stores a particular log with this ID, I can correlate requests to the database, external API services, and so on, accordingly.

ID can be logged in HTML BlueScreen for example like: <!-- CorrelationId: "foo" -->.

Tracy could automatically implement a provider or interface to which the CorrelationId can be passed simply so that there is a system solution for this.

More info: https://help.mypurecloud.com/articles/find-a-correlation-id/ and https://hilton.org.uk/blog/microservices-correlation-id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants