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

Add queue peek size control and additional metrics #1327

Merged
merged 6 commits into from
May 8, 2024

Conversation

darwin67
Copy link
Collaborator

@darwin67 darwin67 commented May 7, 2024

Description

Add attribute to control the queue peek size.

Also add additional metrics for instrumenting queue performance, and reorganize some of the existing counters into telemetry.

scope and meter has been removed from the queue attributes. these should be accessible globally without being embedded.

Type of change (choose one)

  • Chore (refactors, upgrades, etc.)
  • Bug fix (non-breaking change that fixes an issue)
  • Security fix (non-breaking change that fixes a potential vulnerability)
  • Docs
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)

Checklist

  • I've linked any associated issues to this PR.
  • I've tested my own changes.

Check our Pull Request Guidelines

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
ui ⬜️ Ignored (Inspect) Visit Preview May 7, 2024 11:03pm

func IncrQueuePeekedCounter(ctx context.Context, incr int64, opts CounterOpt) {
recordCounterMetric(ctx, incr, counterOpt{
Name: opts.PkgName,
MetricName: "queue_peeked_total",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the new metric added.

@darwin67 darwin67 changed the title Add additional metrics for queue Add queue peek size control and additional metrics May 7, 2024
@darwin67 darwin67 requested a review from tonyhb May 7, 2024 22:43
@darwin67 darwin67 marked this pull request as ready for review May 7, 2024 22:43
these don't need to be embedded and should be globally accessible for
instrumentation purposes
@darwin67 darwin67 merged commit 9b93885 into main May 8, 2024
12 checks passed
@darwin67 darwin67 deleted the darwin/reduce-peek-size branch May 8, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants