Skip to content

feat: allow setting application_name via header #941

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

Merged
merged 2 commits into from
May 8, 2025

Conversation

soedirgo
Copy link
Member

@soedirgo soedirgo commented May 7, 2025

What kind of change does this PR introduce?

feature

What is the current behavior?

application_name setting is always set as postgres-meta <ver>

What is the new behavior?

application_name can be customized by passing a x-pg-application-name header. This allows distinguishing internal queries (e.g. user queries from SQL editor vs. internal queries on table editor vs. queries from user's own conns) which affords us better query analysis (e.g. excluding queries from table editor when displaying long running queries)

@soedirgo soedirgo requested review from a team as code owners May 7, 2025 09:59
@soedirgo soedirgo merged commit 8ca034c into master May 8, 2025
5 checks passed
@soedirgo soedirgo deleted the feat/application-name branch May 8, 2025 10:15
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.

2 participants