Skip to content

Revert "Merge branch 'crashlytics-tracing' into crashlytics"#9705

Merged
MaesterChestnut merged 1 commit intocrashlyticsfrom
crash-merge-revert
Mar 10, 2026
Merged

Revert "Merge branch 'crashlytics-tracing' into crashlytics"#9705
MaesterChestnut merged 1 commit intocrashlyticsfrom
crash-merge-revert

Conversation

@MaesterChestnut
Copy link
Copy Markdown

This reverts commit b2c174c, reversing changes made to 861ce74.

This reverts commit b2c174c, reversing
changes made to 861ce74.
@MaesterChestnut MaesterChestnut requested review from a team as code owners March 10, 2026 13:19
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 10, 2026

⚠️ No Changeset found

Latest commit: b0e6362

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@MaesterChestnut MaesterChestnut merged commit 0045da8 into crashlytics Mar 10, 2026
34 checks passed
@MaesterChestnut MaesterChestnut deleted the crash-merge-revert branch March 10, 2026 13:27
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request reverts a previous merge that introduced tracing capabilities to the Crashlytics SDK. The primary goal is to remove the OpenTelemetry tracing integration, including its associated configurations, dependencies, and API surface, effectively rolling back the tracing functionality from the codebase.

Highlights

  • Removed Tracing Functionality: The tracingUrl option was removed from the CrashlyticsOptions interface and its corresponding documentation across various API and devsite markdown files.
  • Deleted Tracing Provider: The tracing-provider.ts file, responsible for creating the OpenTelemetry tracing provider, was entirely removed.
  • Dependency Clean-up: OpenTelemetry tracing-specific dependencies were removed from package.json and packages/crashlytics/package.json, and the yarn.lock file was updated accordingly.
  • Simplified Crashlytics Service: The CrashlyticsService constructor and its instantiation in registerCrashlytics functions were updated to no longer accept or utilize a tracingProvider.
  • Test Code Removal: Tracing-related test code and mocks were removed from api.test.ts and helpers.test.ts.
  • Minor Code Adjustments: Small changes were made, such as adding eslint-disable-next-line comments for extraneous dependencies, updating the type of AUTO_CONSTANTS, and refining the OTLPLogExporter implementation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .yarnrc
    • Removed autogenerated comments and yarn-path configuration.
  • common/api-review/crashlytics-angular.api.md
    • Removed tracingUrl property from CrashlyticsOptions interface.
  • common/api-review/crashlytics-react-router.api.md
    • Removed tracingUrl property from CrashlyticsOptions interface.
  • common/api-review/crashlytics-react.api.md
    • Removed tracingUrl property from CrashlyticsOptions interface.
  • common/api-review/crashlytics.api.md
    • Removed tracingUrl property from CrashlyticsOptions interface.
  • docs-devsite/crashlytics_.crashlyticsoptions.md
    • Removed documentation for tracingUrl from CrashlyticsOptions.
  • docs-devsite/crashlytics_angular.crashlyticsoptions.md
    • Removed documentation for tracingUrl from CrashlyticsOptions.
  • docs-devsite/crashlytics_react-router.crashlyticsoptions.md
    • Removed documentation for tracingUrl from CrashlyticsOptions.
  • docs-devsite/crashlytics_react-router.md
    • Updated references to Routes component to use {@link react-router-dom#Routes}.
  • docs-devsite/crashlytics_react.crashlyticsoptions.md
    • Removed documentation for tracingUrl from CrashlyticsOptions.
  • package.json
    • Removed @opentelemetry/exporter-trace-otlp-proto dependency.
  • packages/crashlytics/package.json
    • Removed next optional dependency.
    • Downgraded several @opentelemetry dependencies and removed tracing-specific ones like exporter-trace-otlp-proto, instrumentation, instrumentation-fetch, instrumentation-user-interaction, sdk-trace-base, sdk-trace-web.
  • packages/crashlytics/src/angular/index.ts
    • Added eslint-disable-next-line comments for @angular/core and @angular/router imports.
  • packages/crashlytics/src/api.test.ts
    • Removed TracerProvider import and sinon import.
    • Added imports for InMemorySpanExporter, SimpleSpanProcessor, and WebTracerProvider.
    • Removed fakeTracingProvider mock.
    • Updated fakeCrashlytics to remove tracingProvider.
    • Refactored trace context propagation test to use WebTracerProvider directly instead of sinon stub.
    • Updated CrashlyticsService instantiation to remove fakeTracingProvider argument.
  • packages/crashlytics/src/auto-constants.ts
    • Changed type of AUTO_CONSTANTS to any and added eslint-disable-next-line comment.
  • packages/crashlytics/src/helpers.test.ts
    • Removed TracerProvider import.
    • Removed fakeTracingProvider mock.
    • Updated fakeCrashlytics to remove tracingProvider.
    • Updated CrashlyticsService instantiation to remove fakeTracingProvider argument.
  • packages/crashlytics/src/logging/logger-provider.ts
    • Added logRecordLimits: {} to LoggerProvider constructor options.
    • Simplified OTLPLogExporter headers handling.
    • Removed shutdown and forceFlush methods from OTLPLogExporter.
  • packages/crashlytics/src/next.ts
    • Added eslint-disable-next-line comment for next import.
  • packages/crashlytics/src/public-types.ts
    • Removed tracingUrl property from CrashlyticsOptions interface.
  • packages/crashlytics/src/react-router/index.ts
    • Updated JSDoc comment for CrashlyticsRoutes to use {@link react-router-dom#Routes}.
  • packages/crashlytics/src/register.node.ts
    • Removed createTracingProvider import.
    • Removed tracingUrl variable and tracingProvider creation.
    • Updated CrashlyticsService instantiation to remove tracingProvider argument.
  • packages/crashlytics/src/register.ts
    • Removed createTracingProvider import.
    • Removed tracingUrl variable and tracingProvider creation.
    • Updated CrashlyticsService instantiation to remove tracingProvider argument.
  • packages/crashlytics/src/service.ts
    • Removed TracerProvider import.
    • Updated CrashlyticsService constructor to remove tracingProvider argument.
  • packages/crashlytics/src/tracing/tracing-provider.ts
    • Removed file.
  • packages/crashlytics/src/types.ts
    • Removed TracerProvider import.
    • Removed tracingProvider property from CrashlyticsInternal interface.
  • packages/crashlytics/tsconfig.json
    • Simplified TypeScript compiler options by removing baseUrl, paths, and include properties.
  • yarn.lock
    • Updated various @opentelemetry dependency versions to older ones, reflecting the revert.
    • Removed entries for acorn-import-attributes, cjs-module-lexer, import-in-the-middle, module-details-from-path, and [email protected].
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request reverts the 'crashlytics-tracing' feature. While no security vulnerabilities were identified as no specific changes were provided for review, a critical issue that will likely break compilation has been found. Additionally, there are medium-severity issues concerning corrupted documentation and a reduction in type safety.

I am having trouble creating individual review comments. Click here to see my feedback.

packages/crashlytics/src/logging/logger-provider.ts (125-134)

critical

The shutdown() and forceFlush() methods are being removed from OTLPLogExporter. However, the base class OTLPExporterBase (in version 0.205.0, which this PR reverts to) is an abstract class that requires these methods to be implemented. Removing them will cause a compilation error. These methods should not be removed.

docs-devsite/crashlytics_react-router.md (18)

medium

The description for CrashlyticsRoutes in the table is corrupted. The text "<code>Routes</code> from react-router-dom`" has been removed, leaving a blank space. This appears to be an error from the revert process.

|  [CrashlyticsRoutes({ firebaseApp, crashlyticsOptions, children, ...props })](./crashlytics_react-router.md#crashlyticsroutes_707e4a5) | A wrapper around <code>Routes</code> from <code>react-router-dom</code> that automatically captures errors in route components.<!-- -->This component acts as a replacement for <code>Routes</code> from <code>react-router-dom</code>. It wraps the routes in an error boundary that captures errors thrown during rendering and reports them to Crashlytics. The error boundary is reset on navigation (path changes). |

docs-devsite/crashlytics_react-router.md (31)

medium

The description for CrashlyticsRoutes is corrupted here as well. The text "Routes from react-router-dom" has been removed, leaving a blank space.

A wrapper around `Routes` from `react-router-dom` that automatically captures errors in route components.

packages/crashlytics/src/auto-constants.ts (23-24)

medium

The type of AUTO_CONSTANTS is being changed from Record<string, string> to any. Using any weakens type safety and should be avoided. If there's a type error causing this change, it's better to understand the root cause and fix it properly rather than resorting to any. Please restore the original, more specific type.

export const AUTO_CONSTANTS: Record<string, string> = {};

MaesterChestnut pushed a commit that referenced this pull request Mar 10, 2026
MaesterChestnut pushed a commit that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants