Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion samples/audiences/ingest_audience_members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,14 @@ async function main() {
});
}

const client = new IngestionServiceClient();
// [START create_client]
// Creates a client for the ingestion service. Increases the maximum metadata
// size to 16MB to prevent RESOURCE_EXHAUSTED errors when responses contain
// large error details.
const client = new IngestionServiceClient({
'grpc.max_metadata_size': 16 * 1024 * 1024,
});
// [END create_client]

let requestCount = 0;
// Batches requests to send up to the maximum number of audience members per request.
Expand Down
7 changes: 6 additions & 1 deletion samples/events/ingest_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,12 @@ async function main() {
});
}

const client = new IngestionServiceClient();
// Creates a client for the ingestion service. Increases the maximum metadata
// size to 16MB to prevent RESOURCE_EXHAUSTED errors when responses contain
// large error details.
const client = new IngestionServiceClient({
'grpc.max_metadata_size': 16 * 1024 * 1024,
});

let requestCount = 0;
// Batches requests to send up to the maximum number of events per request.
Expand Down
Loading