aws / aws/aws-xray-sdk-python

Failed to send entity to Daemon with Streaming_Threshold=0

Offen
#326 4 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @srprash Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
338
Forks
147
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Whenever my lambda is triggered, I receive the following errors from XRay:
"[ERROR] 2022-02-08T02:32:12.228Z 564a4269-1437-496c-a824-943fa6bad466 Failed to send entity to Daemon.
Traceback (most recent call last):
File "/var/task/aws_xray_sdk/core/emitters/udp_emitter.py", line 41, in send_entity
self._send_data(message)
File "/var/task/aws_xray_sdk/core/emitters/udp_emitter.py", line 63, in _send_data
self._socket.sendto(data.encode('utf-8'), (self._ip, self._port))
OSError: [Errno 90] Message too long"

The lambda functions as expected.

I've followed similar issues related to "Failed to send entity to X-Ray" for resolution
[https://github.com/awslabs/aws-lambda-powertools-python/issues/283](url)
[https://github.com/aws/aws-xray-sdk-python/issues/21](url)
[https://github.com/aws/aws-xray-sdk-python/issues/21](url)

After setting "xray_recorder.configure(streaming_threshold=0)", I continue to receive the same errors.

Environment

AWS Lambda function runtime: Python 3.8
AWS_XRAY_TRACING_NAME is define
APPNAME_TRACE_XRAY is Y
Trigger APIGATEWAY

********CODE***************
def trace_flask(app):
if not os.environ.get("APPNAME_TRACE_XRAY"):
return app

from aws_xray_sdk.core import xray_recorder
from aws_xray_sdk.ext.flask.middleware import XRayMiddleware

xray_recorder.configure(streaming_threshold=0)

XRayMiddleware(app, xray_recorder)

return app

Any help would be greatly appreciated.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.