Skip to content

Has DataDog logger been successfully initialized / has a valid API token? #2611

Open
@monsieurnebo

Description

@monsieurnebo

Hello,

Context

While implementing the DataDog logger (@datadog/browser-logs), I'm trying to make sure that it has been successfully initialized with a valid API token.

What I tried

From my understanding:

  • The DD logger will initialized with or without a valid token
  • It has no internal way of providing this info (e.g. app_id like DD rum, isInitialized, ...)

The only way of getting the info seems to be the failing logging query resulting of a wrong token... Which is not really helping me.

The question

Did I miss something in the doc & issues regarding this topic? Is there a way of getting this information?

If not, wouldn't it be useful to provide this info somehow? What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions