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

Requestor API routes #94

Merged
merged 8 commits into from
Jul 30, 2024
Merged

Requestor API routes #94

merged 8 commits into from
Jul 30, 2024

Conversation

stephlow
Copy link
Member

Same changes as #86, but somehow the git history got borked there so I just copied over the changes to a new branch to get it out of the way

@stephlow stephlow mentioned this pull request Jul 25, 2024
@stephlow stephlow marked this pull request as ready for review July 25, 2024 14:17
@stephlow stephlow requested a review from a team as a code owner July 25, 2024 14:17
fpx/src/api/client.rs Outdated Show resolved Hide resolved
fpx/src/api/client.rs Outdated Show resolved Hide resolved
fpx/src/api/client.rs Outdated Show resolved Hide resolved
fpx/src/api/client.rs Outdated Show resolved Hide resolved
fpx/src/api/handlers/requests.rs Outdated Show resolved Hide resolved
fpx/src/commands/client/requests.rs Show resolved Hide resolved
fpx/src/data.rs Show resolved Hide resolved
@stephlow stephlow requested a review from hatchan July 30, 2024 09:09
Copy link
Member

@hatchan hatchan left a comment

Choose a reason for hiding this comment

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

Some minor things, but overall looks good 👍

@@ -113,6 +140,6 @@ impl ApiClient {
) -> Result<Vec<models::Span>, ApiClientError<SpanGetError>> {
let path = format!("api/traces/{}/spans", trace_id.as_ref());

self.do_req(Method::GET, path).await
self.do_req(Method::GET, path, None::<()>).await
Copy link
Member

Choose a reason for hiding this comment

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

Not a big fan of having to define these ::<()> things, but this is fine for now. We can solve this another time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Wasn't a fan either, but couldn't figure out a way to make it compile without these type annotations :(

fpx/src/api/handlers/requests.rs Outdated Show resolved Hide resolved
fpx/src/commands/client/requests.rs Outdated Show resolved Hide resolved
fpx/src/commands/client/requests.rs Outdated Show resolved Hide resolved
@stephlow stephlow merged commit 5521579 into main Jul 30, 2024
3 checks passed
@stephlow stephlow deleted the requestor-api-history-fix branch July 30, 2024 11:49
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.

2 participants