We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OS: Fedora 41 Python version: 3.13 Package version: 0.49b2 / latest
A simple app is not instrumented properly
from http.server import BaseHTTPRequestHandler, HTTPServer class RequestHandler(BaseHTTPRequestHandler): def do_GET(self): if self.path == '/': self.send_response(200) self.send_header('Content-type', 'text/plain') self.end_headers() self.wfile.write(b'Hello') else: self.send_response(404) self.send_header('Content-type', 'text/plain') self.end_headers() self.wfile.write(b'not found') def run(server_class=HTTPServer, handler_class=RequestHandler, port=8080): server_address = ('', port) httpd = server_class(server_address, handler_class) print(f'Starting server on: {port}') httpd.serve_forever() if __name__ == '__main__': run()
And instrument
pip install opentelemetry-distro opentelemetry-exporter-otlp ~/.local/bin/opentelemetry-bootstrap -a install ~/.local/bin/opentelemetry-instrument --service_name python-example --exporter_otlp_endpoint localhost:4317 --traces_exporter console,otlp --metrics_exporter console python helloworld.py ... Starting httpd server on port 8080 127.0.0.1 - - [02/Dec/2024 13:59:40] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [02/Dec/2024 13:59:40] "GET / HTTP/1.1" 200 -
Follow steps in https://github.com/pavolloffay/otel-python-bug-03969593
See traces from HTTP server
No traces reported, no logged error in the app.
https://github.com/pavolloffay/otel-python-bug-03969593
None
The text was updated successfully, but these errors were encountered:
I think this is a feature request because we don't have an instrumentation for the stdlib http module.
Sorry, something went wrong.
No branches or pull requests
Describe your environment
OS: Fedora 41
Python version: 3.13
Package version: 0.49b2 / latest
What happened?
A simple app is not instrumented properly
Steps to Reproduce
And instrument
Follow steps in https://github.com/pavolloffay/otel-python-bug-03969593
Expected Result
See traces from HTTP server
Actual Result
No traces reported, no logged error in the app.
Additional context
https://github.com/pavolloffay/otel-python-bug-03969593
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: