MediaSource类下新增Metadata字段,用来附带缓存状态为ready时视频的元数据

This commit is contained in:
shuohigh@gmail.com
2025-05-26 10:19:16 +08:00
parent 008626e0df
commit ec455ed3e9
4 changed files with 45 additions and 11 deletions

View File

@@ -28,7 +28,9 @@ class SentryUtils:
logger.info(f"sentry-trace={sentry_trace_id}, baggage={sentry_baggage}")
if sentry_trace_id and sentry_baggage:
transaction = sentry_sdk.continue_trace(environ_or_headers={"sentry-trace": sentry_trace_id,
"baggage": sentry_baggage, })
"baggage": sentry_baggage, },
op=op,
name=name)
else:
transaction = sentry_sdk.start_transaction(op='modal.function', name='Modal Function直接调用')
with transaction: