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

OpenTelemetry logs not being suppressed on the console. #3901

Open
abhinavyesss opened this issue May 3, 2024 · 0 comments
Open

OpenTelemetry logs not being suppressed on the console. #3901

abhinavyesss opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@abhinavyesss
Copy link

abhinavyesss commented May 3, 2024

Python 3.10.12
opentelemetry-api 1.24.0
opentelemetry-instrumentation-flask 0.45b0
azure-monitor-opentelemetry 1.4.1

My code is similar to the one displayed in this example.
I have initialized OTEL_LOGS_EXPORTER=None.

On setting the above variable as None, I expected logs to not be exported.

However my console is filled with logs like:
[2024-05-03 12:36:59,299][INFO][Process-483][OtelPeriodicExportingMetricReader][_universal][on_response] Response status: 200 Response headers: 'Transfer-Encoding': 'chunked' 'Content-Type': 'application/json; charset=utf-8' 'Server': 'Microsoft-HTTPAPI/2.0' 'Strict-Transport-Security': 'REDACTED' 'X-Content-Type-Options': 'REDACTED' 'Date': 'Fri, 03 May 2024 12:36:57 GMT' [2024-05-03 12:36:59,704][INFO][Process-488][OtelPeriodicExportingMetricReader][_universal][on_response] Response status: 200 Response headers: 'Transfer-Encoding': 'chunked' 'Content-Type': 'application/json; charset=utf-8' 'Server': 'Microsoft-HTTPAPI/2.0' 'Strict-Transport-Security': 'REDACTED' 'X-Content-Type-Options': 'REDACTED' 'Date': 'Fri, 03 May 2024 12:36:57 GMT'

This makes it hard for me to view the actual logs. What would be the correct way to stop these message from being displayed on the console?

@abhinavyesss abhinavyesss added the bug Something isn't working label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant