Skip to content

Commit 27d726e

Browse files
committed
wip
1 parent 3e2ef68 commit 27d726e

File tree

5 files changed

+6
-16
lines changed

5 files changed

+6
-16
lines changed

core/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
build
22
Dockerfile
3+
.gradle
4+
.idea

core/src/main/java/fr/sncf/osrd/cli/WorkerCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class WorkerCommand : CliCommand {
158158
}
159159

160160
override fun get(carrier: Map<String, Any>?, key: String): String? {
161-
return carrier?.get(key) as String?
161+
return (carrier?.get(key) as ByteArray?)?.decodeToString()
162162
}
163163
}
164164

docker-compose.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,14 @@ services:
5454

5555
core:
5656
image: ghcr.io/openrailassociation/osrd-edge/osrd-core:${TAG-dev}
57-
# container_name: osrd-core
57+
container_name: osrd-core-dummy
5858
build:
5959
context: core
6060
dockerfile: Dockerfile
6161
additional_contexts:
6262
test_data: tests/data
6363
restart: no
64-
ports: ["8080:8080"]
6564
command: "true"
66-
environment:
67-
CORE_EDITOAST_URL: "http://osrd-editoast"
68-
JAVA_TOOL_OPTIONS: "-javaagent:/app/opentelemetry-javaagent.jar"
69-
CORE_MONITOR_TYPE: "opentelemetry"
70-
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: "grpc"
71-
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: "http://jaeger:4317"
72-
OTEL_METRICS_EXPORTER: "none"
73-
OTEL_LOGS_EXPORTER: "none"
74-
# healthcheck:
75-
# test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
76-
# start_period: 4s
77-
# interval: 5s
78-
7965

8066
osrdyne:
8167
image: ghcr.io/openrailassociation/osrd-edge/osrd-osrdyne:${TAG-dev}

editoast/src/core/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ impl CoreClient {
114114
CoreError::UnparsableErrorOutput.into()
115115
}
116116

117+
#[tracing::instrument(name = "core::fetch", skip_all, err, fields(path))]
117118
async fn fetch<B: Serialize, R: CoreResponse>(
118119
&self,
119120
method: reqwest::Method,

editoast/src/core/mq_client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ fn attach_tracing_info(headers: &mut FieldTable) {
228228
struct HeaderInjector<'a>(&'a mut FieldTable);
229229
impl opentelemetry::propagation::Injector for HeaderInjector<'_> {
230230
/// Set a key and value pair on the headers
231+
#[tracing::instrument(name = "headerinjector::set", skip(self))]
231232
fn set(&mut self, key: &str, value: String) {
232233
let value: ByteArray = value.bytes().collect_vec().into();
233234
self.0.insert(key.into(), value.into());

0 commit comments

Comments
 (0)