Skip to content

v6.0.0

Choose a tag to compare

@github-actions github-actions released this 30 Jan 16:57
· 6 commits to master since this release
6.0.0
1bd3d89

Breaking Changes

  • Api methods now complete exceptionally if the server returns an error response
    instead of returning a response object with error details.
    • Removed ApiException#getResponse and JsonResponse#throwIfError methods.
    • Remove JsonResponse
    • Remove the success and error fields from response objects.
  • Some response classes from response.insights have been moved to response.entry.
  • Many classes have been marked as final or not-extendable.
  • LimitedReader and Util are now internal
  • LogReader has been split into multiple classes in the reader package.
  • Removed deprecated constants and constructor from the Log class.
  • Mclogs instances running v1 are no longer supported.

New Features

  • You can now specify a source and other metadata when uploading logs. By default, this is filled with the project name
    you can set with MclogsClient#setProjectName(String)
  • You can delete logs after uploading them using UploadLogResponse#delete() or MclogsClient#deleteLog(id, token)
    with the token from the upload response.
  • Uploading a log now returns many new fields
  • These new fields, the raw content, the parsed log entries and insights can now be fetched with a single request.
  • Uploaded logs are now automatically compressed with GZIP during transfer

Improvements

  • Remove exception that is never thrown from signature of MclogsClient#analyseLog(Path)
  • Add annotations for nullability where missing
  • Limits are now applied to all methods that upload logs before the upload happens
  • ApiException now includes the HTTP status code