Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: add null check before sending metrics #302

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

chriswk
Copy link
Member

@chriswk chriswk commented Mar 26, 2025

Seems like the engine can return null when there are no metrics to send. Updated the type signature to say that the bucket is nullable and added an is-not-null check before sending metrics to avoid 400's.

Fixes #301

@chriswk chriswk requested a review from sighphyre March 26, 2025 10:02
@chriswk chriswk self-assigned this Mar 26, 2025
@chriswk chriswk linked an issue Mar 26, 2025 that may be closed by this pull request
Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation bot moved this from New to Approved PRs in Issues and PRs Mar 26, 2025
@chriswk chriswk force-pushed the 301-unleash-sdk-sends-invalid-requests-to-the-edge branch from 3a822b3 to 6169577 Compare March 26, 2025 10:05
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 80.345% (+0.1%) from 80.197%
when pulling 6169577 on 301-unleash-sdk-sends-invalid-requests-to-the-edge
into 7f8ae07 on main.

@chriswk chriswk merged commit fec1b16 into main Mar 26, 2025
10 checks passed
@chriswk chriswk deleted the 301-unleash-sdk-sends-invalid-requests-to-the-edge branch March 26, 2025 11:14
@github-project-automation github-project-automation bot moved this from Approved PRs to Done in Issues and PRs Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Unleash sdk sends invalid requests to the edge
3 participants