Skip to content

Commit 92aee2c

Browse files
committed
Allow passing extra sentry information into the func
1 parent fe2fa84 commit 92aee2c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 4.0.0rc2
2+
current_version = 4.0.0rc3
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<build>\d+))?

orchestrator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
"""This is the orchestrator workflow engine."""
1515

16-
__version__ = "4.0.0rc2"
16+
__version__ = "4.0.0rc3"
1717

1818
from orchestrator.app import OrchestratorCore
1919
from orchestrator.settings import app_settings

orchestrator/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def __init__(
145145

146146
@self.router.get("/", response_model=str, response_class=JSONResponse, include_in_schema=False)
147147
def _index() -> str:
148-
return "Orchestrator orchestrator"
148+
return "Orchestrator Core"
149149

150150
def add_sentry(
151151
self,
@@ -154,6 +154,7 @@ def add_sentry(
154154
server_name: str,
155155
environment: str,
156156
release: str | None = GIT_COMMIT_HASH,
157+
**sentry_kwargs: Any,
157158
) -> None:
158159
logger.info("Adding Sentry middleware to app", app=self.title)
159160
if self.base_settings.EXECUTOR == ExecutorType.WORKER:
@@ -173,6 +174,7 @@ def add_sentry(
173174
integrations=sentry_integrations,
174175
propagate_traces=True,
175176
profiles_sample_rate=trace_sample_rate,
177+
**sentry_kwargs,
176178
)
177179

178180
@staticmethod

0 commit comments

Comments
 (0)