feat: 集成OpenTelemetry埋点与日志输出

This commit is contained in:
2025-12-02 13:27:43 +08:00
parent fcce44b767
commit 753c10c492
12 changed files with 343 additions and 27 deletions

View File

@@ -55,7 +55,9 @@
"Tenancy": {
"TenantIdHeaderName": "X-Tenant-Id",
"TenantCodeHeaderName": "X-Tenant-Code",
"IgnoredPaths": [ "/health" ],
"IgnoredPaths": [
"/health"
],
"RootDomain": ""
},
"Storage": {
@@ -90,11 +92,27 @@
},
"Security": {
"MaxFileSizeBytes": 10485760,
"AllowedImageExtensions": [ ".jpg", ".jpeg", ".png", ".webp", ".gif" ],
"AllowedFileExtensions": [ ".jpg", ".jpeg", ".png", ".webp", ".gif", ".pdf" ],
"AllowedImageExtensions": [
".jpg",
".jpeg",
".png",
".webp",
".gif"
],
"AllowedFileExtensions": [
".jpg",
".jpeg",
".png",
".webp",
".gif",
".pdf"
],
"DefaultUrlExpirationMinutes": 30,
"EnableRefererValidation": true,
"AllowedReferers": [ "https://admin.example.com", "https://miniapp.example.com" ],
"AllowedReferers": [
"https://admin.example.com",
"https://miniapp.example.com"
],
"AntiLeechTokenSecret": "ReplaceWithARandomToken"
}
},
@@ -138,5 +156,10 @@
"Exchange": "takeout.events",
"ExchangeType": "topic",
"PrefetchCount": 20
},
"Otel": {
"Endpoint": "",
"Sampling": "ParentBasedAlwaysOn",
"UseConsoleExporter": true
}
}
}