Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
229 changes: 115 additions & 114 deletions poetry.lock

Large diffs are not rendered by default.

9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,14 @@ classifiers = [
python = ">=3.8.0,<4"
datadog = ">=0.41.0,<1.0.0"
wrapt = "^1.11.2"
ddtrace = ">=2.9.2"
ddtrace = ">=2.10.0"
ujson = ">=5.9.0"
urllib3 = [
{version = "<2.0.0", python = "<3.11", optional = true},
{version = "<2.1.0", python = ">=3.11", optional = true},
]
boto3 = { version = "^1.28.0", optional = true }
boto3 = { version = "^1.34.0", optional = true }
requests = { version ="^2.22.0", optional = true }
pytest = { version= "^8.0.0", optional = true }
pytest-benchmark = { version = "^4.0", optional = true }
flake8 = { version = "^5.0.4", optional = true }


[tool.poetry.extras]
dev = [
"boto3",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_layer_size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

set -e
MAX_LAYER_COMPRESSED_SIZE_KB=$(expr 5 \* 1024)
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 12 \* 1024)
MAX_LAYER_UNCOMPRESSED_SIZE_KB=$(expr 13 \* 1024)


LAYER_FILES_PREFIX="datadog_lambda_py"
Expand Down
68 changes: 34 additions & 34 deletions tests/integration/snapshots/logs/async-metrics_python310.log
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:true",
"memorysize:1024",
"cold_start:true",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -36,8 +36,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -180,8 +180,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -207,8 +207,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -246,7 +246,7 @@ HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "
"metrics": {
"process_id": XXXX,
"_dd.top_level": 1,
"_sampling_priority_v1": -1
"_sampling_priority_v1": 1
},
"type": "web"
},
Expand Down Expand Up @@ -346,8 +346,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -373,8 +373,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -505,8 +505,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -532,8 +532,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -575,7 +575,7 @@ HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "
"metrics": {
"process_id": XXXX,
"_dd.top_level": 1,
"_sampling_priority_v1": -1
"_sampling_priority_v1": 1
},
"type": "http"
},
Expand Down Expand Up @@ -679,8 +679,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -706,8 +706,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -745,7 +745,7 @@ HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "
"metrics": {
"process_id": XXXX,
"_dd.top_level": 1,
"_sampling_priority_v1": -1
"_sampling_priority_v1": 1
},
"type": "web"
},
Expand Down Expand Up @@ -845,8 +845,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -872,8 +872,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -908,7 +908,7 @@ HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "
"metrics": {
"process_id": XXXX,
"_dd.top_level": 1,
"_sampling_priority_v1": -1
"_sampling_priority_v1": 1
},
"type": "web"
},
Expand Down Expand Up @@ -1008,8 +1008,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -1035,8 +1035,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -1072,7 +1072,7 @@ HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "
"metrics": {
"process_id": XXXX,
"_dd.top_level": 1,
"_sampling_priority_v1": -1
"_sampling_priority_v1": 1
},
"type": "web"
},
Expand Down Expand Up @@ -1172,8 +1172,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -1199,8 +1199,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -1235,7 +1235,7 @@ HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "
"metrics": {
"process_id": XXXX,
"_dd.top_level": 1,
"_sampling_priority_v1": -1
"_sampling_priority_v1": 1
},
"type": "web"
},
Expand Down Expand Up @@ -1335,8 +1335,8 @@ START
"account_id:XXXX",
"functionname:integration-tests-python-XXXX-async-metrics_python310",
"resource:integration-tests-python-XXXX-async-metrics_python310",
"cold_start:false",
"memorysize:1024",
"cold_start:false",
"runtime:python3.10",
"datadog_lambda:vXX",
"dd_lambda_layer:datadog-python310_X.X.X"
Expand All @@ -1362,8 +1362,8 @@ START
"dd_lambda_layer:datadog-python310_X.X.X"
]
}
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "Accept:*/*", "Connection:keep-alive", "User-Agent:python-requests/X.X.X", "traceparent:XXX", "tracestate:XXX
HTTP GET https://datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate","Accept:*/*","Connection:keep-alive","User-Agent:python-requests/X.X.X","traceparent:XXX","tracestate:XXX
{
"traces": [
[
Expand Down Expand Up @@ -1404,7 +1404,7 @@ HTTP GET https://www.datadoghq.com/ Headers: ["Accept-Encoding:gzip, deflate", "
"metrics": {
"process_id": XXXX,
"_dd.top_level": 1,
"_sampling_priority_v1": -1
"_sampling_priority_v1": 1
},
"type": "web"
},
Expand Down
Loading