Open rlasante opened 2 years ago
I am unable to access the current version information stored here due to internal level visibility: Version
We would accept a PR to make this public (although it would need to be renamed GRPCVersion
because of https://github.com/grpc/grpc-swift/blob/main/docs/api.md).
If you were motivated enough, an additional object which provided a way to generate a user-agent string with additional properties could be a nice addition as well.
What are you trying to achieve?
I'm attempting to get the grpc-swift library version programmatically to include it in my user-agent headers for grpc requests.
Using a
customMetadata
header with the keyuser-agent
properly overrides the default user-agent passed by the framework. However I'm attempting to follow the format defined in the gRPC core user-agent definitionso my example would be
grpc-swift/1.6.0 (com.company.MyApp/1.0; iOS/15)
What have you tried so far?
I am unable to access the current version information stored here due to internal level visibility: Version
I am unable to use the library's own user-agent due to it being private.
I really would prefer not to have to either
Any help or suggestions would be greatly appreciated.