Skip to content

Add headers to be able to track bidi usage #6939

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

Merged
merged 3 commits into from
May 6, 2025
Merged

Conversation

VinayGuthal
Copy link
Contributor

Originally we were not tracking bidi usage in android. This PR enables it by adding certain headers when the initial websocket connection is made. There was some refractoring done wrt to extract out the part which just adds the headers from the applyCommonConfiguration function

Copy link
Contributor

github-actions bot commented May 6, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@VinayGuthal VinayGuthal requested a review from rlazo May 6, 2025 16:27
@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 6, 2025

Copy link
Contributor

github-actions bot commented May 6, 2025

Test Results

 22 files   -  1 034   22 suites   - 1 034   34s ⏱️ - 34m 45s
100 tests  -  5 874  100 ✅  -  5 852  0 💤  - 22  0 ❌ ±0 
200 runs   - 11 811  200 ✅  - 11 767  0 💤  - 44  0 ❌ ±0 

Results for commit a9c16ec. ± Comparison against base commit 525f293.

This pull request removes 5874 tests.
com.google.android.datatransport.cct.CctBackendFactoryTest ‑ create_returnCCTBackend_WhenBackendNameIsCCT
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldOnlySupportProtoAndJson
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldSupportProtoAndJson
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOffline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOnline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldAddCookieOnPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldDropCookieOnMixedPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_CompressedResponseIsUncompressed
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirectsMoreThan5Times_shouldOnlyRedirect4Times
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirects_shouldCorrectlyFollowTheRedirectViaPost
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • firebase-ai

    TypeBase (525f293)Merge (23dd81b)Diff
    aar818 kB819 kB+1.18 kB (+0.1%)
    apk (aggressive)1.55 MB1.55 MB+260 B (+0.0%)
    apk (release)9.52 MB9.52 MB+500 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/NGg9400Wjr.html

@VinayGuthal VinayGuthal merged commit 4c29e0b into main May 6, 2025
31 checks passed
@VinayGuthal VinayGuthal deleted the add_headers_to_bidi branch May 6, 2025 17:29
daymxn added a commit that referenced this pull request May 7, 2025
daymxn added a commit that referenced this pull request May 7, 2025
Per [b/414829218](https://b.corp.google.com/issues/414829218),

This ensures the Vertex AI SDK is properly aligned for the upcoming
release. More specifically, this PR does the following:

- Adds deprecation notices for all the public classes and interfaces,
**besides** the root `FirebaseVertexAI` class and the relevant extension
methods.
- Updates the golden file version.
- Adds the change from #6925 for working around invalid
`SafetyRating`(s).
- Adds a changelog entry that aligns with the deprecation notices.
- Adds the changes from #6939 for tracking bidi usage.
- Adds the changes from #6910 for aligning the bidi protos.

---------

Co-authored-by: Rodrigo Lazo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants