You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] UnboundLocalError: local variable 'span_kind' referenced before assignment
Traceback (most recent call last):
File "/opt/python/opentelemetry/instrumentation/aws_lambda/__init__.py", line 203, in _instrumented_lambda_handler_call
kind=span_kind,
Also seeing this with s3 events. I assume that code linked above should be more expansive to allow for different events sources. I'd be happy to submit a PR that at least included S3, Dynamo and maybe SNS. Would that be appropriate?
When lambdas are triggered from dyanmodb messages the event will look like
{"Records": [{"eventSource": "aws:dynamodb" ...}]}
https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html
As a result, I am seeing these error messages:
https://github.com/open-telemetry/opentelemetry-python-contrib/blob/main/instrumentation/opentelemetry-instrumentation-aws-lambda/src/opentelemetry/instrumentation/aws_lambda/__init__.py#L192-L196
The text was updated successfully, but these errors were encountered: