Skip to content

Commit 65edb2d

Browse files
committed
fix disable instrummentation libs
1 parent 6815f55 commit 65edb2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lambda-layer/src/otel-instrument

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ fi
142142
if [ -z ${OTEL_PYTHON_DISABLED_INSTRUMENTATIONS} ]; then
143143
export OTEL_PYTHON_DISABLED_INSTRUMENTATIONS="aio-pika,aiohttp-client,aiohttp-server,aiopg,asgi,asyncio,asyncpg,boto,boto3,cassandra,celery,confluent_kafka,dbapi,django,elasticsearch,falcon,fastapi,flask,grpc_client,grpc_server,grpc_aio_client,grpc_aio_server,httpx,jinja2,kafka,logging,mysql,mysqlclient,pika,psycopg,psycopg2,pymemcache,pymongo,pymysql,pyramid,redis,remoulade,requests,sklearn,sqlalchemy,sqlite3,starlette,system_metrics,threading,tornado,tortoiseorm,urllib,urllib3,wsgi"
144144
fi
145-
export OTEL_PYTHON_DISABLED_INSTRUMENTATIONS="OTEL_PYTHON_DISABLED_INSTRUMENTATIONS,aws-lambda";
145+
export OTEL_PYTHON_DISABLED_INSTRUMENTATIONS="$OTEL_PYTHON_DISABLED_INSTRUMENTATIONS,aws-lambda";
146146

147147
# - Use a wrapper because AWS Lambda's `python3 /var/runtime/bootstrap.py` will
148148
# use `imp.load_module` to load the function from the `_HANDLER` environment

0 commit comments

Comments
 (0)