Skip to content

Conversation

etolbakov
Copy link
Collaborator

@etolbakov etolbakov commented Nov 26, 2023

Description

Add jaeger rest endpoints for grafana tracing support

TODO:

  • Remove go_parse_duration dependency
  • Move functions in util.rs into models.rs (can we get rid of some of them?)
  • Check if the swagger UI is working correctly with the new endpoints

Related issues:

quickwit-oss/quickwit-datasource#5

.map(|result| make_jaeger_api_response(result, BodyFormat::default()))
}

/// GET otel-traces-v0_6/traces/{trace-id-base-64}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would avoid putting the "otel-traces-v0_6/traces/{trace-id-base-64}" in comment, if we do correctly the openapi stuff it should be sufficient.

Just say "Get trace by ID", it's singular.

.into_inner();

Ok(JaegerSearchBody {
data: Some(get_operations_response.operation_names),
Copy link
Collaborator

Choose a reason for hiding this comment

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

operation names is empty, it's a bit strange. if you take get_operations_response.operations.into_iter().map(|op| op.name).collect_vec() instead, it will work in grafana
@guilload did you see this weird empty operation name list?

@etolbakov etolbakov marked this pull request as ready for review December 9, 2023 14:57
@etolbakov
Copy link
Collaborator Author

Checked the swagger UI, the image below
image001

@fmassot fmassot merged commit 2074c2a into quickwit-oss:main Dec 21, 2023
@etolbakov etolbakov deleted the etolbakov/grafana-tracing-support branch December 21, 2023 12:11
@etolbakov
Copy link
Collaborator Author

😅🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants