Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: BoundedQueue, and restart thread / keep alive on errors #38

Merged
merged 24 commits into from
Oct 30, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
fix: readme
aryascripts committed Oct 29, 2024
commit 985691e622490942fe23039d372bab56b0db5822
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -155,17 +155,17 @@ class MySchema < GraphQL::Schema
logger: MyLogger.new,
endpoint: 'app.graphql-hive.com',
port: 80,
buffer_size: 50, # forward the operations data to Hive every 50 requests

buffer_size: 50, # how many operations can be sent to hive in a single batch (AFTER sampling)
bounded_queue_multiple: 5, # how many operations can be added to the queue, before we start dropping them

collect_usage: true, # report usage to Hive
collect_usage_sampling: {
# optional members of `collect_usage_sampling`
sample_rate: 0.5, # % of operations reported
sampler: proc { |context| context.operation_name.includes?('someQuery') 1 : 0.5 }, # assign custom sampling rates (overrides `sampling rate`)
at_least_once: true, # sample every distinct operation at least once
key_generator: proc { |context| context.operation_name } # assign custom keys to distinguish between distinct operations
}

},
report_schema: true, # publish schema to Hive
# mandatory if `report_schema: true`
reporting: {