Skip to content

Refactor request telemetry#870

Merged
ob-stripe merged 1 commit intointegration-client-refactorfrom
ob-refactor-telemetry
Oct 25, 2019
Merged

Refactor request telemetry#870
ob-stripe merged 1 commit intointegration-client-refactorfrom
ob-refactor-telemetry

Conversation

@ob-stripe
Copy link
Contributor

r? @richardm-stripe
cc @stripe/api-libraries

Refactor the request telemetry code into a single RequestTelemetry class.

Technically a breaking change because ClientTelemetryPayload and RequestMetrics were public, though I doubt this will affect many (or any) users.

.get("last_request_metrics")
.getAsJsonObject();
String requestId1 = requestMetrics1.get("request_id").getAsString();
Long requestDurationMs1 = requestMetrics1.get("request_duration_ms").getAsLong();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a little bit more awkward because we can no longer deserialize the JSON string into a ClientTelemetryPayload instance so we're using a raw JsonObject instead.

@ob-stripe ob-stripe mentioned this pull request Oct 25, 2019
22 tasks
@ob-stripe ob-stripe merged commit 1f39319 into integration-client-refactor Oct 25, 2019
@ob-stripe ob-stripe deleted the ob-refactor-telemetry branch October 25, 2019 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants