Skip to content

Comments

Crashlytics tracing onboarding improvements#9587

Open
MaesterChestnut wants to merge 5 commits intocrashlytics-tracingfrom
crashlytics-tracing-onboarding-improvements
Open

Crashlytics tracing onboarding improvements#9587
MaesterChestnut wants to merge 5 commits intocrashlytics-tracingfrom
crashlytics-tracing-onboarding-improvements

Conversation

@MaesterChestnut
Copy link

  • Use endpointUrl for easier compatibility with the Crashlytics js-sdk
  • Specify port for usage with local proxy url

@MaesterChestnut MaesterChestnut requested a review from a team as a code owner February 23, 2026 19:45
@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2026

⚠️ No Changeset found

Latest commit: f8c9664

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 requested review from anitdas and removed request for a team February 23, 2026 19:45
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @MaesterChestnut, 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 refines the Crashlytics tracing onboarding process by standardizing endpoint configuration and updating core dependencies. The primary goal is to enhance compatibility with the Crashlytics JavaScript SDK and improve local development workflows for tracing data, ensuring a more robust and consistent setup for telemetry.

Highlights

  • Endpoint Configuration Renamed: The loggingUrl option has been renamed to endpointUrl within the CrashlyticsOptions interface across various API definition files and the core crashlytics package. This change aims to improve compatibility with the Crashlytics JavaScript SDK.
  • Local Tracing URL Update: The tracingUrl in register.ts has been explicitly set to http://localhost:4318 to facilitate local proxy usage for tracing data, along with an explanatory comment.
  • Package Version Bump: The version of the @firebase/crashlytics package has been incremented from 0.0.1 to 0.0.2.
  • OpenTelemetry Dependency Adjustments: Several OpenTelemetry dependency versions have been adjusted in packages/crashlytics/package.json and yarn.lock to align with updated specifications and potentially resolve compatibility issues.
  • Yarn Configuration Update: The .yarnrc file was updated to include Yarn 1.x specific configuration, such as yarn-path, and an autogenerated file header.

🧠 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
    • Added autogenerated file header and Yarn 1.x lockfile version.
    • Specified yarn-path for Yarn 1.x.
  • common/api-review/crashlytics-angular.api.md
    • Renamed loggingUrl to endpointUrl in CrashlyticsOptions.
  • common/api-review/crashlytics-react-router.api.md
    • Renamed loggingUrl to endpointUrl in CrashlyticsOptions.
  • common/api-review/crashlytics-react.api.md
    • Renamed loggingUrl to endpointUrl in CrashlyticsOptions.
  • common/api-review/crashlytics.api.md
    • Renamed loggingUrl to endpointUrl in CrashlyticsOptions.
  • packages/crashlytics/package.json
    • Updated package version to 0.0.2.
    • Reordered next and react peer dependencies.
    • Downgraded several @opentelemetry dependencies to earlier versions.
  • packages/crashlytics/src/api.ts
    • Changed loggingUrl to endpointUrl when getting the Crashlytics service identifier.
  • packages/crashlytics/src/public-types.ts
    • Renamed loggingUrl property to endpointUrl in the CrashlyticsOptions interface and updated its JSDoc.
  • packages/crashlytics/src/register.ts
    • Updated tracingUrl to http://localhost:4318 and added a comment explaining its local-only usage.
  • packages/crashlytics/tsconfig.json
    • Removed specific path mapping for @opentelemetry/exporter-trace-otlp-proto.
  • yarn.lock
    • Updated and added various @opentelemetry package versions and their dependencies.
    • Added a duplicate protobufjs@8.0.0 entry with slightly different dependencies.
Activity
  • No specific activity (comments, reviews, progress) was provided for this pull request.
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
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 aims to improve Crashlytics tracing onboarding by renaming loggingUrl to endpointUrl for better compatibility and specifying a port for local proxy usage. The renaming is applied consistently across the API surfaces. However, the implementation for the local proxy URL introduces a critical issue by hardcoding a development-specific URL, which would negatively impact non-local environments. Additionally, the yarn.lock file appears to be corrupted with duplicate entries, likely from the dependency updates, and needs to be regenerated.

const tracingUrl = instanceIdentifier || 'http://localhost';
// Traces will only be sent when running locally; change to instanceIdentifier once we can
// send trace data through the Crashlytics backend
const tracingUrl = 'http://localhost:4318';
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

Hardcoding tracingUrl to http://localhost:4318 will cause issues in non-local environments, as it will always try to send traces to localhost. The accompanying comment // Traces will only be sent when running locally suggests this is intended for local development only, but the implementation does not reflect this. This could lead to failed network requests and potential performance issues in production.

To ensure this URL is only used during development, you could make its value conditional based on the environment. For example:

const tracingUrl =
  process.env.NODE_ENV === 'development'
    ? 'http://localhost:4318'
    : instanceIdentifier || 'http://localhost';

This would use the local proxy URL for development and fall back to the previous behavior for other environments.

Suggested change
const tracingUrl = 'http://localhost:4318';
const tracingUrl = process.env.NODE_ENV === 'development' ? 'http://localhost:4318' : (instanceIdentifier || 'http://localhost');

@MaesterChestnut MaesterChestnut requested a review from a team as a code owner February 23, 2026 21:42
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