Skip to content

Failed to send data to X-Ray daemon. OSError: [Errno 90] Message too long #476

Closed
@ShengHow95

Description

@ShengHow95

I am trying to use aws-lambda-powertools in my lambda function and when I run my lambda function, it came out with this error but my lambda function still able to run and complete. I suppose version 1.17.0 has already included streaming_threshold=0 but I would still get the same error with Message too long.

What were you trying to accomplish?
I would like to know if there is anyway to fix this issue without disabling x-ray tracing in my lambda function. What configuration or workaround I can have?

Environment

  • Powertools version used: 1.17.0
  • AWS Lambda function runtime:: Python 3.7

Logs

[ERROR]	2021-06-11T16:37:43.245Z	e949c1fb-fb68-41c3-a77d-736cef47ec04	Failed to send entity to Daemon.
Traceback (most recent call last):
  File "/opt/python/aws_xray_sdk/core/emitters/udp_emitter.py", line 41, in send_entity
    self._send_data(message)
  File "/opt/python/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions