Skip to content

macro variants that do not panic if global default client is not set #210

@danielnorberg

Description

@danielnorberg

Thank you a lot for this library!

Would it make sense to add variants of the statsd macros that do not panic if the global default client is not set?

When testing code makes use of the statsd macros it is sometimes awkward to have to initialize the global default client in unit tests to avoid the macros panicking.

Would be happy to contribute a PR to add such macros if you think it would make sense.

Wdyt?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions