Skip to content

Fix logging config #9467

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
Mar 10, 2025
Merged

Fix logging config #9467

merged 2 commits into from
Mar 10, 2025

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Mar 7, 2025

What does this PR do?

If the _APP_EXPERIMENT_LOGGING_CONFIG env var isn't set, every 4XX error
outputs this warning:

Failed to initialize logging provider: Unable to parse DSN: scheme is
required

To reduce this unnecessary clutter when _APP_EXPERIMENT_LOGGING_CONFIG
isn't set, this PR adds a check to only attempt to initialize the
logging provider if the env var is set.

Test Plan

Before:

image

After:

image

Related PRs and Issues

Checklist

  • Have you read the Contributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

If no logging config is set, there's a warning saying:

> Using deprecated logging configuration.

However, if they didn't set any config, it's not deprecated.
If the _APP_EXPERIMENT_LOGGING_CONFIG env var isn't set, every 4XX error
outputs this warning:

Failed to initialize logging provider: Unable to parse DSN: scheme is
required

To reduce this unnecessary clutter when _APP_EXPERIMENT_LOGGING_CONFIG
isn't set, this PR adds a check to only attempt to initialize the
logging provider if the env var is set.
@stnguyen90 stnguyen90 moved this to Code Review in 1.6 Release Mar 7, 2025
Copy link

github-actions bot commented Mar 7, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
libxml2 2.12.7-r0 CVE-2024-56171 HIGH
libxml2 2.12.7-r0 CVE-2025-24928 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link

github-actions bot commented Mar 7, 2025

✨ Benchmark results

  • Requests per second: 1,018
  • Requests with 200 status code: 183,368
  • P99 latency: 0.17833584

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,018 1,246
200 183,368 224,325
P99 0.17833584 0.149327477

@abnegate abnegate merged commit 078f953 into 1.6.x Mar 10, 2025
29 checks passed
@github-project-automation github-project-automation bot moved this from Code Review to Done in 1.6 Release Mar 10, 2025
@abnegate abnegate deleted the fix-logging-config branch March 10, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants