-
Notifications
You must be signed in to change notification settings - Fork 321
feat: Replace deprecated Doppler recentLogs with Log Cache client
#1237
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?
Changes from all commits
b6b5205
1afe7df
61c556d
7a4cb06
9f76d44
03e1eb7
5ed6c07
13aff7b
8a8cdee
5e0d918
b39e647
78d06ab
5e78e83
06d11f6
4ab560d
7e7174b
b236ad3
f952c57
e742f32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,8 @@ | |
| package org.cloudfoundry.operations.applications; | ||
|
|
||
| import org.cloudfoundry.doppler.LogMessage; | ||
| import org.cloudfoundry.logcache.v1.Log; | ||
| import org.cloudfoundry.logcache.v1.ReadRequest; | ||
| import reactor.core.publisher.Flux; | ||
| import reactor.core.publisher.Mono; | ||
|
|
||
|
|
@@ -126,6 +128,15 @@ public interface Applications { | |
| @Deprecated | ||
| Flux<LogMessage> logs(LogsRequest request); | ||
|
|
||
| /** | ||
| * List the applications logs from logCacheClient. | ||
| * If no messages are available, an empty Flux is returned. | ||
| * | ||
| * @param request the application logs request | ||
| * @return the applications logs | ||
| */ | ||
| Flux<Log> logsRecent(ReadRequest request); | ||
|
Comment on lines
+131
to
+138
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the original plan, we were to replace Maybe we should not introduce a new method, but update
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would result in an incompatible change. I believe we should not release any incompatible changes in version 5.x.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to clarify, my point is:
This method was introduced specifically for this migration, see this commit: 1664cbf It did not exist before
The idea was to make a method that uses Doppler, then change it to use Loggregator. That's why we introduced Doppler-agnostic types. The whole idea was to do a non-breaking change when swapping out Doppler ; the breaking change would be to remove (Also, in practice, this new method |
||
|
|
||
| /** | ||
| * List the applications logs. | ||
| * Only works with {@code Loggregator < 107.0}, shipped in {@code CFD < 24.3} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.