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

Gin exporter: support reading Client IP from custom headers (and make sure proxy is trusted) #6095

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Commits on Sep 8, 2024

  1. Gin exporter: support reading Client IP from custom headers (and make…

    … sure proxy is trusted)
    
    With Gin, it's possible to configure the server to read the Client IP from custom headers; examples include `X-Real-Ip` or `CF-Connecting-IP`. This PR makes it possible to set as span attribute the same IP that Gin reads.
    
    Additionally, it makes sure that headers such as "X-Forwarded-For" are used only if Gin is configured to trust the upstream server
    
    PS: Also fixed unit tests, where there were assertions inside handlers, which are executed in separate goroutines
    ItalyPaleAle committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    0273b8c View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    66ab057 View commit details
    Browse the repository at this point in the history
  2. Lint

    ItalyPaleAle committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    e978ded View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d2bac00 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Configuration menu
    Copy the full SHA
    83866e7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69fc65d View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    27ffeda View commit details
    Browse the repository at this point in the history
  2. Updated per review

    ItalyPaleAle committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    5ea8dec View commit details
    Browse the repository at this point in the history
  3. Add changelog

    ItalyPaleAle committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    2046f0b View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Update CHANGELOG.md

    Co-authored-by: Damien Mathieu <[email protected]>
    ItalyPaleAle and dmathieu authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    5cc0025 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    66533fe View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Move test to test folder

    ItalyPaleAle committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    4b7a39a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9149000 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Fixed changelog

    ItalyPaleAle committed Sep 20, 2024
    Configuration menu
    Copy the full SHA
    3a07c40 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. Configuration menu
    Copy the full SHA
    fe2b800 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2024

  1. Configuration menu
    Copy the full SHA
    1de3e69 View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.md

    ItalyPaleAle authored Oct 7, 2024
    Configuration menu
    Copy the full SHA
    666002a View commit details
    Browse the repository at this point in the history