pinecone-io / pinecone-java-client

The official Java client for the Pinecone vector database
https://www.pinecone.io
Apache License 2.0
35 stars 12 forks source link

Fix useragent for grpc #138

Closed rohanshah18 closed 2 months ago

rohanshah18 commented 2 months ago

Problem

The user agent string was defaulting to netty-java-grpc/1.60.2 even though the user agent + source tag was passed in.

Solution

Instead of passing user agent as extra headers to the stubs, set the user agent string using .userAgent() on NettyChannelBuilder object.

Type of Change

Test Plan

Added a screenshot of the user agent being correctly populated in datadog on the internal ticket.