File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
charts/processed_data/charts/processed_data Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ type: application
55
66version : 0.1.0
77
8- appVersion : 0.2.0-rc2
8+ appVersion : 0.2.1-rc1
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ impl AutoProcessing {
411411
412412#[ ComplexObject ]
413413impl AutoProcFileAttachment {
414- /// Gives downloadable link for the processed image in the s3 bucket
414+ /// Generate downloadable link for files in s3 bucket
415415 async fn file_url ( & self , ctx : & Context < ' _ > ) -> async_graphql:: Result < String > {
416416 let s3_client = ctx. data :: < aws_sdk_s3:: Client > ( ) ?;
417417 let bucket = ctx. data :: < S3Bucket > ( ) ?;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ use std::{
2929} ;
3030use tokio:: net:: TcpListener ;
3131use tracing:: { info, instrument} ;
32- use tracing_subscriber:: { layer:: SubscriberExt , util:: SubscriberInitExt } ;
32+ use tracing_subscriber:: { filter :: FilterFn , layer:: SubscriberExt , util:: SubscriberInitExt } ;
3333use url:: Url ;
3434
3535use crate :: route_handlers:: GraphQLHandler ;
@@ -174,6 +174,10 @@ fn setup_telemetry(
174174 log_level : tracing:: Level ,
175175 otel_collector_url : Option < Url > ,
176176) -> Result < ( ) , anyhow:: Error > {
177+ let custom_filter = FilterFn :: new ( |metadata| {
178+ !metadata. target ( ) . contains ( "aws_smithy_runtime" )
179+ && !metadata. target ( ) . contains ( "aws_credential_types" )
180+ } ) ;
177181 let level_filter = tracing_subscriber:: filter:: LevelFilter :: from_level ( log_level) ;
178182 let log_layer = tracing_subscriber:: fmt:: layer ( ) ;
179183 let service_name_resource = opentelemetry_sdk:: Resource :: new ( vec ! [
@@ -224,6 +228,7 @@ fn setup_telemetry(
224228 } ;
225229
226230 tracing_subscriber:: Registry :: default ( )
231+ . with ( custom_filter)
227232 . with ( level_filter)
228233 . with ( log_layer)
229234 . with ( metrics_layer)
You can’t perform that action at this time.
0 commit comments