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

A way to link log data to an external system #2146

Open
xt0rted opened this issue Mar 29, 2024 · 1 comment
Open

A way to link log data to an external system #2146

xt0rted opened this issue Mar 29, 2024 · 1 comment

Comments

@xt0rted
Copy link

xt0rted commented Mar 29, 2024

We log a lot of Ids without friendly names either because we don't have the name at the time of logging, like at the start of an http request where we only have the route parameter, or because we just don't want to fill Seq with extra data that isn't useful most of the time.

GitHub has the ability to provide an Id format and will then auto link1 any occurrence of those anywhere they render markdown. This is great when you're using an external ticketing system for example since you only have to put the Id in your comment to get the same auto link behavior issues & PRs have.

It'd be really helpful if we could do something similar with our log data in Seq. I'm envisioning this where you specify a property name such as BusinessId and a url template it should be added to, then an external link icon would shown next to it.

seq mock

This would be incredibly useful for linking to user/business profiles, orders, etc. without the need to copy the Id from the logs and then go search for it elsewhere. Being able to show multiple external links would be even better so we could point to multiple sources for some things.

Footnotes

  1. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/configuring-autolinks-to-reference-external-resources

@nblumhardt
Copy link
Member

Nice idea, thanks @xt0rted

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

No branches or pull requests

2 participants