Skip to content

Commit abab891

Browse files
committed
Fixed otlp for taskiq.
1 parent d7e7f15 commit abab891

File tree

1 file changed

+1
-1
lines changed
  • fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/web

1 file changed

+1
-1
lines changed

fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/web/lifespan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def setup_opentelemetry(app: FastAPI) -> None: # pragma: no cover
228228
)
229229
{%- endif %}
230230
{%- if cookiecutter.enable_taskiq == "True" %}
231-
TaskiqInstrumentor.instrument_broker(
231+
TaskiqInstrumentor().instrument_broker(
232232
broker,
233233
tracer_provider=tracer_provider,
234234
)

0 commit comments

Comments
 (0)