[Observability][Bugfix] Fix expected an instance of Token, got None error in OpenTelemetry (#18934)

This commit is contained in:
AichiB7A 2025-04-28 10:31:13 +08:00 • committed by GitHub
commit 8299614e60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 166 additions and 226 deletions

View file

@ -52,7 +52,6 @@ def initialize_extensions(app: DifyApp):
ext_mail,
ext_migrate,
ext_otel,
ext_otel_patch,
ext_proxy_fix,
ext_redis,
ext_repositories,
@ -85,7 +84,6 @@ def initialize_extensions(app: DifyApp):
ext_proxy_fix,
ext_blueprints,
ext_commands,
ext_otel_patch, # Apply patch before initializing OpenTelemetry
ext_otel,
]
for ext in extensions: