Skip to content

Commit

Permalink
editoast: endpoints to retrieve stdcm payloads
Browse files Browse the repository at this point in the history
Signed-off-by: hamz2a <atrari.hamza@gmail.com>
  • Loading branch information
hamz2a committed Jan 13, 2025
1 parent c806a2f commit 120b7d9
Show file tree
Hide file tree
Showing 19 changed files with 1,125 additions and 370 deletions.
3 changes: 2 additions & 1 deletion editoast/editoast_common/src/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ pub struct TracingConfig {

pub fn create_tracing_subscriber<T: SpanExporter + 'static>(
tracing_config: TracingConfig,
log_level: tracing_subscriber::filter::LevelFilter,
exporter: T,
) -> impl tracing::Subscriber {
let env_filter_layer = tracing_subscriber::EnvFilter::builder()
// Set the default log level to 'info'
.with_default_directive(tracing_subscriber::filter::LevelFilter::INFO.into())
.with_default_directive(log_level.into())
.from_env_lossy();
let fmt_layer = tracing_subscriber::fmt::layer()
.pretty()
Expand Down
2 changes: 1 addition & 1 deletion editoast/editoast_schemas/src/train_schedule/margins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl<'de> Deserialize<'de> for Margins {
}
}

#[derive(Debug, Copy, Clone, PartialEq, Derivative)]
#[derive(Debug, Copy, Clone, PartialEq, Derivative, ToSchema)]
#[derivative(Hash, Default)]
pub enum MarginValue {
#[derivative(Default)]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP INDEX IF EXISTS stdcm_logs_trace_id;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX IF NOT EXISTS stdcm_logs_trace_id ON stdcm_logs (trace_id);
Loading

0 comments on commit 120b7d9

Please sign in to comment.