Skip to content

Add http.useragent tag#2252

Merged
lloeki merged 1 commit into
masterfrom
add-http-useragent-tag
Sep 9, 2022
Merged

Add http.useragent tag#2252
lloeki merged 1 commit into
masterfrom
add-http-useragent-tag

Conversation

@lloeki

@lloeki lloeki commented Sep 1, 2022

Copy link
Copy Markdown
Member

What does this PR do?

Add http.useragent tag to capture and report the user agent that made an HTTP request to Rack-based applications.

Motivation

While User-Agent is a header and can be included in the http.request_headers tag, it is not by default, and even if it were it could be removed from the list by the user.

This unconditionally obtains the request header value and stores it in a dedicated tag.

Additional Notes

This is a requirement for server-side ASM and is part of the APM tag standardization project.

How to test the change?

@lloeki
lloeki requested a review from a team September 1, 2022 15:37

@TonyCTHsu TonyCTHsu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

While User-Agent is a header and can be included in the
http.request_headers tag, it is not by default, and even if it were it
oculd be removed from the list by the user.

This unconditionally obtains the request header value and stores it in a
dedicated tag.
@lloeki
lloeki force-pushed the add-http-useragent-tag branch from 8af4ff0 to 1875ffd Compare September 9, 2022 13:43
@lloeki

lloeki commented Sep 9, 2022

Copy link
Copy Markdown
Member Author

Rebased + fixed conflicts.

@lloeki
lloeki merged commit 64b0526 into master Sep 9, 2022
@lloeki
lloeki deleted the add-http-useragent-tag branch September 9, 2022 15:17
@github-actions github-actions Bot added this to the 1.5.0 milestone Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants