Skip to content

[BUG] Libdatadog error messages repeat the error message multiple times #283

Description

@ivoanjo

Describe the bug

Libdatadog error messages repeat the error message multiple times. For instance, I've started the Ruby profiler without a Datadog agent, and this is the libdatadog error message I see:

failed ddog_prof_Exporter_send: error trying to connect: tcp connect error: Connection refused (os error 111): tcp connect error: Connection refused (os error 111): Connection refused (os error 111)

Since these are user-visible error messages, it's not great to have them be somewhat confusing.

To Reproduce
Steps to reproduce the behavior:

  1. Try to report a profile with the exporter, and do not start the agent
  2. Observe the error message from the exporter

Expected behavior

An error message that's not repeated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions