Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions mise.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ dependencies = [
"fastapi>=0.110,<1",
"httpx2>=2.2.0,<3",
"loguru>=0.7,<1",
"opentelemetry-sdk>=1.27,<2",
"opentelemetry-exporter-otlp-proto-grpc>=1.27,<2",
"opentelemetry-instrumentation-fastapi>=0.48b0,<1",
"PyJWT>=2.10,<3",
"platformdirs>=4,<5",
"psutil>=6",
Expand Down
7 changes: 5 additions & 2 deletions src/aignostics_foundry_core/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from aignostics_foundry_core.foundry import get_context
from aignostics_foundry_core.log import logging_initialize
from aignostics_foundry_core.otel import otel_initialize
from aignostics_foundry_core.process import get_process_info
from aignostics_foundry_core.sentry import sentry_initialize

Expand Down Expand Up @@ -61,8 +62,9 @@ def boot(
2. Initialise loguru logging via :func:`~aignostics_foundry_core.log.logging_initialize`.
3. Amend the SSL trust chain with *truststore* and *certifi*.
4. Initialise Sentry via :func:`~aignostics_foundry_core.sentry.sentry_initialize`.
5. Log a boot message with version, PID, and process information.
6. Register an atexit shutdown message.
5. Initialise OpenTelemetry via :func:`~aignostics_foundry_core.otel.otel_initialize`.
6. Log a boot message with version, PID, and process information.
7. Register an atexit shutdown message.

Args:
context: :class:`~aignostics_foundry_core.foundry.FoundryContext` providing
Expand Down Expand Up @@ -90,6 +92,7 @@ def boot(
integrations=sentry_integrations,
context=ctx,
)
otel_initialize(context=ctx)
_log_boot_message(context=ctx, show_cmdline=show_cmdline)
_register_shutdown_message(project_name=ctx.name, version=ctx.version)
logger.trace("Boot sequence completed successfully.")
Expand Down
Loading
Loading