Skip to content

Commit 6461cf0

Browse files
committed
Update event context extractor description + clean up log
1 parent da03b2f commit 6461cf0

File tree

1 file changed

+2
-6
lines changed
  • python/src/otel/otel_sdk/opentelemetry/instrumentation/aws_lambda

1 file changed

+2
-6
lines changed

python/src/otel/otel_sdk/opentelemetry/instrumentation/aws_lambda/__init__.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def _instrument(self, **kwargs):
8686
**kwargs: Optional arguments
8787
``tracer_provider``: a TracerProvider, defaults to global
8888
``event_context_extractor``: a method which takes the Lambda
89-
Event as input and provides the object which contains the
90-
context as output (usually HTTP headers)
89+
Event as input and extracts an OTel Context from it. Usually
90+
the the context is extract from HTTP headers on the event.
9191
"""
9292
tracer = get_tracer(
9393
__name__, __version__, kwargs.get("tracer_provider")
@@ -174,10 +174,6 @@ def _determine_parent_context(lambda_event: Any) -> Context:
174174
):
175175
return parent_context
176176

177-
logger.debug(
178-
"X-Ray propagation failed, using user-configured propagators to extract context from Lambda Event."
179-
)
180-
181177
if event_context_extractor:
182178
parent_context = event_context_extractor(lambda_event)
183179
else:

0 commit comments

Comments
 (0)