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

feat: implement context handler to store HTTP request and tracing information #752

Merged
merged 12 commits into from Nov 23, 2021

Commits on Nov 17, 2021

  1. chore: removing compilation warning

    removing warnings related to serialVersionUID and unused objects
    minherz committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    ebc8189 View commit details
    Browse the repository at this point in the history
  2. feat: add support for request and tracing context

    provide context abstraction to instantiate a context with info about
    HttpRequest and tracing (trace id and span id).
    provide handler that is able to store context per-thread to support
    Web servers that handle each request in a dedicated thread.
    provide support for ServletContainerInititializer by introducing
    request context scope that can be "entered" and "leaved".
    minherz committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    f1e08bb View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Configuration menu
    Copy the full SHA
    71d0aa9 View commit details
    Browse the repository at this point in the history
  2. chore: add empty HttpRequest constant

    the empty instance of HttpRequest is used as a reference for empty object.
    minherz committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    3ad9f36 View commit details
    Browse the repository at this point in the history
  3. chore: add unit testing for context classes

    refactor Context constructor to set null instead of empty HttpRequest.
    update traceparent context load method name and comments.
    fix string comparison bug in traceparent context load method.
    minherz committed Nov 18, 2021
    Configuration menu
    Copy the full SHA
    ff53f73 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. chore: improve code clarity

    minherz committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    831590f View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2021

  1. chore: refactoring code

    replace String.length() > 0 with !String.isEmpty().
    strict W3C trace parent format validation
    minherz committed Nov 20, 2021
    Configuration menu
    Copy the full SHA
    ba61b6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    238c9b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2021

  1. chore: remove context scope

    RequestContextScope is removed to avoid ambiguous use
    minherz committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    2a6af06 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. chore: refactor ContextHolder implementation

    move Context and ContextHolder to the root library package.
    initialize ContextHolder to InheritableThreadLocal if configuration property is provided.
    Add support for additional configuration property into LoggingConfig.
    minherz committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    0cc14d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    caef1c1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3105d17 View commit details
    Browse the repository at this point in the history