8 Commits

Author SHA1 Message Date
7f8fe690a0 Adds an option to configure disable_aws_context_propagation by environment variable (#1507)
* Adds an option to configure `disable_aws_context_propagation` by environment variable

The variable `OTEL_LAMBDA_DISABLE_AWS_CONTEXT_PROPAGATION` can be used to disable aws context propagation. This is similar to the proposed changes in the JS implementation: https://github.com/open-telemetry/opentelemetry-js-contrib/pull/1227

Signed-off-by: Alex Boten <aboten@lightstep.com>

* update changelog

* Apply suggestions from code review

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>

Signed-off-by: Alex Boten <aboten@lightstep.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-12-19 16:50:36 -06:00
a9f34136d2 Add uninstrument test for aws lambda (#1505) 2022-12-20 03:15:43 +05:30
8dbd1428c2 opentelemetry-instrumentation-aws-lambda: Adding option to disable context propagation (#1466)
* `opentelemetry-instrumentation-aws-lambda`: Adding option to disable context propagation

Adding the following option to disable context propagation `disable_aws_context_propagation`. This is similar to the disableAwsContextPropagation option in the nodejs instrumentation.

* update changelog

* lint

* more lint
2022-11-23 22:30:06 +01:00
36264e97c3 Capture common HTTP attributes from API Gateway proxy events in Lambda instrumentor (#1233) 2022-11-02 04:27:09 +00:00
5539d1f35a adding additional event sources (#926) 2022-03-11 10:39:01 -08:00
07f81461df lambda instrumentation - support for flush timeout (#825)
* lambda instrumentation - support for flush timeout

* Update instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py

Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>

* Update instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py

Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>

* fixing lint

* fixing django lint

Co-authored-by: (Eliseo) Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>
2021-12-14 18:06:36 +05:30
3137c1fa41 Upgrade black (#802) 2021-11-10 20:57:01 +00:00
671aea32f9 Add instrumentation for AWS Lambda Service - Implementation (Part 2/2) (#777)
* Add instrumentation for AWS Lambda Service - Implementation

* Lambda is CONSUMER SQS trace if 'Records' key in Lambda event

* More robust check of SQS by indexing and catching

* Explicitly catch errors we expect when determinig if SQS triggered Lambda
2021-11-01 20:02:58 +05:30