from tilebox.workflows import Client
from tilebox.workflows.observability.logging import configure_otel_logging
from tilebox.workflows.observability.tracing import configure_otel_tracing
from my_workflow import ProcessScene
configure_otel_tracing(
service="sentinel-2-runner",
endpoint="http://localhost:4318/v1/traces",
headers={"Authorization": "Bearer <token>"},
)
configure_otel_logging(
service="sentinel-2-runner",
endpoint="http://localhost:4318/v1/logs",
headers={"Authorization": "Bearer <token>"},
)
client = Client(name="sentinel-2-runner")
runner = client.runner(tasks=[ProcessScene])
runner.run_forever()