Skip to content

Release 2.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Jul 06:57
· 69 commits to main since this release

New in version 2

Purpose of 'v2' of this library has been simplification of both the API
and the structure of the repository.

  • Minimum Java version bumped to 8.
  • Repository module restructuring.
    • Separate API module containing only the minimum API.
    • Separate core module for all utility classes.
    • All provided manager implementations moved to managers subdirectory.
    • All context timer implementations moved to timers subdirectory.
  • API simplification.
    • Static ContextSnapshot.capture() captures a new snapshot and ContextSnapshot.reactivate() reactivates it.
    • ContextManager.initializeNewContext(value) was renamed to activate(value).
    • ContextManager.getActiveContext() was replaced by getActiveContextValue().
    • ContextManager.clear() must be implemented, but is allowed to be a 'no-op' empty implementation. The Clearable interface was removed.
  • New ContextManager implementations for:
    • OpenTelemetry context
    • The gRPC framework context
  • New ContextTimer implementation using:
    • OpenTelemetry histogram meter.
  • All @Deprecated(forRemoval=true) items from v1 were removed.

Full Changelog: 1.1.0...2.0.0