feat(sql_connect): add "X-Client-Platform" and "X-Client-Version" headers - #18484
#18484feat(sql_connect): add "X-Client-Platform" and "X-Client-Version" headers#18484dconeybe wants to merge 1 commit intomainfirebase/flutterfire:mainfrom dconeybe/dataconnect/CloudMonitoringHeadersfirebase/flutterfire:dconeybe/dataconnect/CloudMonitoringHeadersCopy head branch name to clipboard
Conversation
… and "X-Client-Version" headers Googlers see go/dataconnect:sdk:headers for details
Using Gemini Code AssistThe 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
Customization To customize the 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. 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. |
This PR adds
x-client-platformandx-client-versionrequest headers tofirebase_data_connect. These headers supply the client platform (flutter) and SDK version (packageVersion) to enable metrics collection in Cloud Monitoring.Highlights
x-client-platform(set to"flutter") andx-client-version(set topackageVersion) request headers across REST (rest_transport.dart) and WebSocket (websocket_transport.dart) transports.rest_transport_test.dartto verifyx-client-platformandx-client-versionheaders are attached on outgoing requests.Changelog
x-client-platformandx-client-versionheaders toinvokeOperation.x-client-platformandx-client-versionheaders to_buildHeadersand exposedbuildHeadersfor testing.x-client-platformandx-client-versionheaders are included in REST requests.