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

fix: Drop the setTracingEnabled flag from Options (@BetaApi change) #1869

Merged
merged 7 commits into from
Nov 6, 2024

Conversation

ehsannas
Copy link
Contributor

@ehsannas ehsannas commented Oct 4, 2024

the deprecated setTracingEnabled() API is redundant and is being removed.

Firestore SDK will use the OpenTelemetry instance passed to it. In its absence, it will use the Global OpenTelemetry by default. There is no need to enable tracing via the setTracingEnabled() API. If the user wants to disable tracing, they can still do so by providing a no-op OpenTelemetry instance or by using FIRESTORE_ENABLE_TRACING=OFF env var.

@ehsannas ehsannas self-assigned this Oct 4, 2024
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: firestore Issues related to the googleapis/java-firestore API. labels Oct 4, 2024
@ehsannas ehsannas force-pushed the ehsann/drop-tracing-enable-flag branch from b50f823 to c0c912d Compare October 4, 2024 22:07
@ehsannas ehsannas added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 7, 2024
@ehsannas ehsannas marked this pull request as ready for review October 7, 2024 18:28
@ehsannas ehsannas requested review from a team as code owners October 7, 2024 18:28
Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

Please add PR description for future reference. Otherwise, LGTM

@milaGGL milaGGL mentioned this pull request Oct 16, 2024
4 tasks
@ehsannas ehsannas requested a review from milaGGL November 5, 2024 22:13
@ehsannas ehsannas removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 5, 2024
Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

@ehsannas ehsannas changed the title feat: Drop the setTracingEnabled flag from Options (Beta Api change) fix: Drop the setTracingEnabled flag from Options (Beta Api change) Nov 6, 2024
@ehsannas ehsannas changed the title fix: Drop the setTracingEnabled flag from Options (Beta Api change) fix: Drop the setTracingEnabled flag from Options (@BetaApi change) Nov 6, 2024
@ehsannas ehsannas merged commit 712d57e into main Nov 6, 2024
24 of 25 checks passed
@ehsannas ehsannas deleted the ehsann/drop-tracing-enable-flag branch November 6, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/java-firestore API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants