Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUMM-1530 Add Datadog.isInitialized variable #566

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

maxep
Copy link
Member

@maxep maxep commented Aug 18, 2021

What and why?

The public interface lacks a way of checking the SDK initialized state.

How?

A static variable isInitialized of the Datadog configuration class checks the internal instance availability.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference

@maxep maxep requested a review from ncreated August 18, 2021 14:24
@maxep maxep requested a review from a team as a code owner August 18, 2021 14:24
Copy link
Contributor

@buranmert buranmert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might break old Xcodes, but otherwise looks good 👍

Sources/Datadog/Datadog.swift Outdated Show resolved Hide resolved
Copy link
Member

@ncreated ncreated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

@ncreated ncreated added the needs-docs To mark PRs which need documentation update label Aug 18, 2021
Copy link
Member

@xgouchet xgouchet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maxep maxep merged commit 8b3a8ed into master Aug 20, 2021
@maxep maxep deleted the maxep/RUMM-1530-add-init-check branch August 20, 2021 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-docs To mark PRs which need documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants