{"id":21546,"library":"lumigo-tracer","title":"Lumigo Tracer for Python","description":"A Python tracing library for serverless and distributed applications, providing automatic instrumentation for AWS Lambda and other runtimes. Version 1.1.257, updated frequently. It wraps AWS SDK calls, HTTP requests, and other libraries to send telemetry to the Lumigo observability platform.","status":"active","version":"1.1.257","language":"python","source_language":"en","source_url":"https://github.com/lumigo-io/python_tracer","tags":["aws-lambda","tracing","observability","serverless"],"install":[{"cmd":"pip install lumigo-tracer","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"AWS Lambda environment usually includes boto3; needed for certain instrumentations","package":"boto3","optional":true}],"imports":[{"note":"Package name is lumigo_tracer, not lumigo","wrong":"from lumigo import lumigo_tracer","symbol":"lumigo_tracer","correct":"from lumigo_tracer import lumigo_tracer"}],"quickstart":{"code":"import os\nfrom lumigo_tracer import lumigo_tracer\n\n@lumigo_tracer(token=os.environ.get('LUMIGO_TOKEN', ''))\ndef lambda_handler(event, context):\n    return {'statusCode': 200, 'body': 'Hello from Lumigo!'}","lang":"python","description":"Decorate your Lambda handler with @lumigo_tracer and set the LUMIGO_TOKEN environment variable."},"warnings":[{"fix":"Change import statement to `from lumigo_tracer import lumigo_tracer`.","message":"The import from `lumigo` (without `_tracer`) is deprecated and will be removed. Use `from lumigo_tracer import lumigo_tracer`.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Remove `timeout_seconds` argument from the decorator.","message":"The `lumigo_tracer` decorator no longer supports `timeout_seconds` parameter. It now infers timeout from Lambda configuration.","severity":"deprecated","affected_versions":">=1.1.0"},{"fix":"Set the `LUMIGO_TOKEN` environment variable with your Lumigo token.","message":"If you don't set `LUMIGO_TOKEN` environment variable, tracing will silently fail. The token must be present at startup.","severity":"gotcha","affected_versions":"All"},{"fix":"Check the Lumigo docs for supported libraries; use `lumigo_tracer.add_execution_tag()` for manual instrumentation.","message":"The tracer wraps many common libraries (requests, boto3, pymongo, etc.) automatically. If you use an unsupported library, you must manually create spans.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install with `pip install lumigo-tracer` and ensure the Lambda layer includes it.","cause":"Library not installed or environment missing it.","error":"ModuleNotFoundError: No module named 'lumigo_tracer'"},{"fix":"Use `from lumigo_tracer import lumigo_tracer` and ensure the correct package is installed.","cause":"Incorrect import path: probably used `from lumigo_tracer import lumigo_tracer` but the package is installed as `lumigo-tracer` vs `lumigo_tracer`? Or installed wrong package.","error":"AttributeError: module 'lumigo_tracer' has no attribute 'lumigo_tracer'"},{"fix":"Remove `timeout_seconds` argument; the tracer now uses Lambda's configured timeout.","cause":"Using old API where timeout_seconds was allowed; removed in newer versions.","error":"TypeError: lumigo_tracer() got an unexpected keyword argument 'timeout_seconds'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}