@@ -312,6 +312,7 @@ pub enum CreateChunkReqPayloadEnum {
312312 ( "ApiKey" = [ "admin" ] ) ,
313313 )
314314) ]
315+ #[ tracing:: instrument( skip_all) ]
315316pub async fn create_chunk (
316317 create_chunk_data : web:: Json < CreateChunkReqPayloadEnum > ,
317318 pool : web:: Data < Pool > ,
@@ -568,6 +569,7 @@ pub async fn create_chunk(
568569}
569570
570571/// Delete Chunk
572+ #[ tracing:: instrument( skip_all) ]
571573///
572574/// Delete a chunk by its id. Auth'ed user or api key must have an admin or owner role for the specified dataset's organization.
573575#[ utoipa:: path(
@@ -639,6 +641,7 @@ pub struct BulkDeleteChunkPayload {
639641 ( "ApiKey" = [ "admin" ] ) ,
640642 )
641643) ]
644+ #[ tracing:: instrument( skip_all) ]
642645pub async fn bulk_delete_chunk (
643646 chunk_filter : web:: Json < BulkDeleteChunkPayload > ,
644647 redis_pool : web:: Data < RedisPool > ,
@@ -690,6 +693,7 @@ pub async fn bulk_delete_chunk(
690693 ( "ApiKey" = [ "admin" ] ) ,
691694 )
692695) ]
696+ #[ tracing:: instrument( skip_all) ]
693697pub async fn delete_chunk_by_tracking_id (
694698 tracking_id : web:: Path < String > ,
695699 pool : web:: Data < Pool > ,
@@ -796,6 +800,7 @@ pub struct UpdateIngestionMessage {
796800 ( "ApiKey" = [ "admin" ] ) ,
797801 )
798802) ]
803+ #[ tracing:: instrument( skip_all) ]
799804pub async fn update_chunk (
800805 update_chunk_data : web:: Json < UpdateChunkReqPayload > ,
801806 pool : web:: Data < Pool > ,
@@ -957,6 +962,7 @@ pub struct UpdateChunkByTrackingIdData {
957962 )
958963) ]
959964#[ deprecated]
965+ #[ tracing:: instrument( skip_all) ]
960966pub async fn update_chunk_by_tracking_id (
961967 update_chunk_data : web:: Json < UpdateChunkByTrackingIdData > ,
962968 pool : web:: Data < Pool > ,
@@ -1242,6 +1248,7 @@ pub fn is_audio(query: QueryTypes) -> bool {
12421248 ( "ApiKey" = [ "readonly" ] ) ,
12431249 )
12441250) ]
1251+ #[ tracing:: instrument( skip_all) ]
12451252pub async fn search_chunks (
12461253 data : web:: Json < SearchChunksReqPayload > ,
12471254 _user : LoggedUser ,
@@ -1526,6 +1533,7 @@ impl From<AutocompleteReqPayload> for SearchChunksReqPayload {
15261533 ( "ApiKey" = [ "readonly" ] ) ,
15271534 )
15281535) ]
1536+ #[ tracing:: instrument( skip_all) ]
15291537pub async fn autocomplete (
15301538 data : web:: Json < AutocompleteReqPayload > ,
15311539 _user : LoggedUser ,
@@ -1671,6 +1679,7 @@ pub struct ScrollChunksReqPayload {
16711679 ( "ApiKey" = [ "readonly" ] ) ,
16721680 )
16731681) ]
1682+ #[ tracing:: instrument( skip_all) ]
16741683pub async fn scroll_dataset_chunks (
16751684 data : web:: Json < ScrollChunksReqPayload > ,
16761685 _user : LoggedUser ,
@@ -1764,6 +1773,7 @@ pub async fn scroll_dataset_chunks(
17641773 ( "ApiKey" = [ "readonly" ] ) ,
17651774 )
17661775) ]
1776+ #[ tracing:: instrument( skip_all) ]
17671777pub async fn get_chunk_by_id (
17681778 chunk_id : web:: Path < uuid:: Uuid > ,
17691779 _user : LoggedUser ,
@@ -1862,6 +1872,7 @@ pub struct CountChunkQueryResponseBody {
18621872 ( "ApiKey" = [ "readonly" ] ) ,
18631873 )
18641874) ]
1875+ #[ tracing:: instrument( skip_all) ]
18651876pub async fn count_chunks (
18661877 data : web:: Json < CountChunksReqPayload > ,
18671878 _user : LoggedUser ,
@@ -1960,6 +1971,7 @@ pub async fn count_chunks(
19601971 ( "ApiKey" = [ "readonly" ] ) ,
19611972 )
19621973) ]
1974+ #[ tracing:: instrument( skip_all) ]
19631975pub async fn get_chunk_by_tracking_id (
19641976 tracking_id : web:: Path < String > ,
19651977 _user : LoggedUser ,
@@ -2019,6 +2031,7 @@ pub struct GetChunksData {
20192031 ( "ApiKey" = [ "readonly" ] ) ,
20202032 )
20212033) ]
2034+ #[ tracing:: instrument( skip_all) ]
20222035pub async fn get_chunks_by_ids (
20232036 chunk_payload : web:: Json < GetChunksData > ,
20242037 _user : LoggedUser ,
@@ -2090,6 +2103,7 @@ pub struct GetTrackingChunksData {
20902103 ( "ApiKey" = [ "readonly" ] ) ,
20912104 )
20922105) ]
2106+ #[ tracing:: instrument( skip_all) ]
20932107pub async fn get_chunks_by_tracking_ids (
20942108 chunk_payload : web:: Json < GetTrackingChunksData > ,
20952109 _user : LoggedUser ,
@@ -2202,6 +2216,7 @@ pub enum RecommendResponseTypes {
22022216 ( "ApiKey" = [ "readonly" ] ) ,
22032217 )
22042218) ]
2219+ #[ tracing:: instrument( skip_all) ]
22052220pub async fn get_recommended_chunks (
22062221 data : web:: Json < RecommendChunksRequest > ,
22072222 pool : web:: Data < Pool > ,
@@ -2563,6 +2578,7 @@ pub struct GenerateOffChunksReqPayload {
25632578 ( "ApiKey" = [ "readonly" ] ) ,
25642579 )
25652580) ]
2581+ #[ tracing:: instrument( skip_all) ]
25662582pub async fn generate_off_chunks (
25672583 data : web:: Json < GenerateOffChunksReqPayload > ,
25682584 pool : web:: Data < Pool > ,
@@ -3108,6 +3124,7 @@ pub struct ChunkedContent {
31083124 ) ,
31093125 ) ,
31103126) ]
3127+ #[ tracing:: instrument( skip_all) ]
31113128pub async fn split_html_content (
31123129 body : web:: Json < ChunkHtmlContentReqPayload > ,
31133130) -> Result < HttpResponse , ServiceError > {
0 commit comments