Skip to content

Datadog metrics do not work outside of a Racecar process #380

@jalford14

Description

@jalford14

When enable_datadog is set to true, only processes running Racecar are able to report Racecar-specific metrics to Datadog. For example, if we call Racecar.produce_sync in a Rails process (which is not running Racecar), the metrics won’t be reported to Datadog. This happens because Racecar::Cli, which configures Datadog, is never invoked in this context.

As a temporary workaround, we configured Racecar::Datadog directly in our initializer. Would this be considered a bug?

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