Skip to content

Commit 2bcab30

Browse files
committed
urllib and urllib3 and otel propagators to fix broken trace issue
1 parent 8d7ede4 commit 2bcab30

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lambda-layer/src/otel-instrument

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ fi
9494

9595
export LAMBDA_RESOURCE_ATTRIBUTES="cloud.region=$AWS_REGION,cloud.provider=aws,faas.name=$AWS_LAMBDA_FUNCTION_NAME,faas.version=$AWS_LAMBDA_FUNCTION_VERSION,faas.instance=$AWS_LAMBDA_LOG_STREAM_NAME,aws.log.group.names=$AWS_LAMBDA_LOG_GROUP_NAME";
9696

97+
if [ -z ${OTEL_PROPAGATORS} ]; then
98+
export OTEL_PROPAGATORS="xray,tracecontext,b3,b3multi"
99+
fi
97100

98101
if [ -z "${OTEL_AWS_APPLICATION_SIGNALS_ENABLED}" ]; then
99102
export OTEL_AWS_APPLICATION_SIGNALS_ENABLED="true";
@@ -126,7 +129,7 @@ fi
126129
# - Enable botocore instrumentation by default
127130

128131
if [ -z ${OTEL_PYTHON_DISABLED_INSTRUMENTATIONS} ]; then
129-
export OTEL_PYTHON_DISABLED_INSTRUMENTATIONS="aio-pika,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,jinja2,kafka,logging,mysql,mysqlclient,pika,psycopg,psycopg2,pymemcache,pymongo,pymysql,pyramid,redis,remoulade,requests,sklearn,sqlalchemy,sqlite3,starlette,system_metrics,threading,tornado,tortoiseorm,wsgi"
132+
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,wsgi"
130133
fi
131134
export OTEL_PYTHON_DISABLED_INSTRUMENTATIONS="$OTEL_PYTHON_DISABLED_INSTRUMENTATIONS,aws-lambda";
132135

0 commit comments

Comments
 (0)