fix: Patch OpenTelemetry to handle None tokens (#18498)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
6b7dfee88b
commit
61e39bccdf
2 changed files with 65 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ def initialize_extensions(app: DifyApp):
|
|||
ext_mail,
|
||||
ext_migrate,
|
||||
ext_otel,
|
||||
ext_otel_patch,
|
||||
ext_proxy_fix,
|
||||
ext_redis,
|
||||
ext_repositories,
|
||||
|
|
@ -84,6 +85,7 @@ 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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue