Skip to content

Commit ea1acd9

Browse files
authored
Enhance readiness check with log traces option (#118)
1 parent 03a10d0 commit ea1acd9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

microbootstrap/instruments/opentelemetry_instrument.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ def _load_instrumentors(self) -> None:
116116
raise
117117

118118
def is_ready(self) -> bool:
119-
return bool(self.instrument_config.opentelemetry_endpoint) or self.instrument_config.service_debug
119+
return (
120+
bool(self.instrument_config.opentelemetry_endpoint)
121+
or self.instrument_config.service_debug
122+
or self.instrument_config.opentelemetry_log_traces
123+
)
120124

121125
def teardown(self) -> None:
122126
for instrumentor_with_params in self.instrument_config.opentelemetry_instrumentors:

0 commit comments

Comments
 (0)