Skip to content

Conversation

@aanshu-ss
Copy link
Collaborator

@aanshu-ss aanshu-ss commented Nov 13, 2025

A bug which is preventing otel logs from being exported correctly is addressed in this PR.
The logging.basicConfig was being called with a handlers argument, which can interfere with the OpenTelemetry logging setup if a handler is already configured on the root logger.

The root of the problem was a conflict in how Python's standard logging module was being configured within the main.py file.
In Python, there are two main ways to configure the logging system:
Manually: By getting a logger object (like the root logger) and directly adding handlers to it (e.g., logging.root.addHandler(...)).
Convenience Function: Using logging.basicConfig(...), which is a helper for simple, one-time configuration of the root logger.

basicConfig only works if the root logger has no handlers configured yet. If we call it after a handler has already been added, it does nothing.

Testing

Tested with custom agent, testing with Analyst pending.

JIRA

https://memsql.atlassian.net/browse/MCDB-84204

@aanshu-ss aanshu-ss self-assigned this Nov 13, 2025
@vsingh-singlestore
Copy link
Contributor

Tested this with Analyst and logs are Analyst logs are showing with traces

@vsingh-singlestore vsingh-singlestore merged commit 9d75297 into master Nov 18, 2025
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.

5 participants