-
Notifications
You must be signed in to change notification settings - Fork 1
New log subscription #217
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
base: main
Are you sure you want to change the base?
New log subscription #217
Conversation
f134af3
to
1e16f97
Compare
internal/loki/loki.go
Outdated
u := q.baseURL | ||
u.Path = "/loki/api/v1/tail" | ||
|
||
since := -1 * time.Hour |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since := -1 * time.Hour | |
since := 1 * time.Hour |
Siden vi gjør -since
i .Add()
på linje 60?
internal/graph/schema/log.graphqls
Outdated
|
||
Defaults to 1 hour. | ||
""" | ||
since: Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skulle vi hatt datetime i stedetfor en duration? Det lar oss i f.eks. frontenden kunne linke til logger. Eller gir det ikke mening på en subscription?
internal/graph/schema/log.graphqls
Outdated
""" | ||
Initial batch of past log lines before streaming starts. Defaults to 100. | ||
""" | ||
limit: Int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bytte navn fra limit til f.eks. initialBatch? Limit navnet tolker jeg som at subscription vil avslutte etter 100 linjer
We initially added the transport since the one from gqlgen did not have support for ping. It has since gotten support for ping, so we no longer need our custom one.
Initiativ: https://github.com/nais/o11y/pull/43