mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 00:58:36 +00:00
Ignore unknown graphql_client_name
This commit is contained in:
parent
cc89a72b97
commit
9ac112db1e
1 changed files with 2 additions and 2 deletions
|
|
@ -114,8 +114,8 @@ export const graphqlHandler = (options: GraphQLHandlerOptions): RouteHandlerMeth
|
|||
const clientName = Array.isArray(clientNameHeaderValue) ? clientNameHeaderValue[0] : clientNameHeaderValue;
|
||||
|
||||
if (transaction) {
|
||||
transaction.setTag('graphql_client_name', clientName);
|
||||
transaction.sampled = clientName !== 'Hive Client';
|
||||
transaction.setTag('graphql_client_name', clientName ?? 'unknown');
|
||||
transaction.sampled = !!clientName && clientName !== 'Hive Client';
|
||||
}
|
||||
|
||||
scope.setContext('Extra Info', {
|
||||
|
|
|
|||
Loading…
Reference in a new issue