Skip to content

Conversation

@dboyliao
Copy link
Collaborator

No description provided.

@dboyliao dboyliao requested a review from c9s January 27, 2026 05:36
@dboyliao dboyliao force-pushed the dboy/max/v3-metrics branch 2 times, most recently from 4764e60 to 29e8893 Compare January 27, 2026 06:07
if errors.As(err, &requestErr) {
statusCode = requestErr.StatusCode
} else {
log.WithError(err).Warn("fail to cast request error to record status code")
Copy link
Owner

Choose a reason for hiding this comment

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

if failed, the code will still be 200?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed.
I changed it to 500.

@dboyliao dboyliao force-pushed the dboy/max/v3-metrics branch from 29e8893 to 92f83b9 Compare January 30, 2026 06:31
@dboyliao dboyliao changed the title FEATURE: [exchange] add status metrics tracking for MAX API requests FEATURE: [exchange] add latency metrics tracking for MAX API requests Jan 30, 2026
@dboyliao dboyliao force-pushed the dboy/max/v3-metrics branch from 92f83b9 to 596e198 Compare January 30, 2026 06:34
@dboyliao dboyliao requested a review from c9s January 30, 2026 06:34
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.

3 participants