You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cherry-Pick File Sink & Bug Fixes for 1.6 Release (#2852)
## Why make this change?
- The 1.6 release is missing the implementation for the File Sink
feature, as well as the bug fixes to fix the session context and fix
implementation of row-level security when users use a JWT token.
## What is this change?
Cherry-picked PRs:
- File Sink:
- #2752
- #2825
- #2818
- Bug Fix:
- #2344
## How was this tested?
- [ ] Integration Tests
- [X] Unit Tests
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: M4Al <[email protected]>
Co-authored-by: KobeLenjou <[email protected]>
Co-authored-by: Aniruddh Munde <[email protected]>
"description": "Maximum number of retained log files.",
509
+
"default": 1,
510
+
"minimum": 1
511
+
},
512
+
"file-size-limit-bytes": {
513
+
"type": "integer",
514
+
"description": "Maximum file size in bytes before rolling.",
515
+
"default": 1048576,
516
+
"minimum": 1
517
+
}
518
+
},
519
+
"if": {
520
+
"properties": {
521
+
"enabled": {
522
+
"const": true
523
+
}
524
+
}
525
+
},
526
+
"then": {
527
+
"required": [ "path" ]
528
+
}
529
+
},
486
530
"log-level": {
487
531
"type": "object",
488
532
"description": "Global configuration of log level, defines logging severity levels for specific classes, when 'null' it will set logging level based on 'host: mode' property",
[Option("runtime.telemetry.azure-log-analytics.auth.dce-endpoint",Required=false,HelpText="Configure DCE Endpoint for Azure Log Analytics to find table to send telemetry data")]
runtimeConfig=runtimeConfig!with{Runtime=runtimeConfig.Runtime!with{Telemetry=runtimeConfig.Runtime!.Telemetryis not null?runtimeConfig.Runtime!.Telemetrywith{File=updatedFileSinkOptions}:newTelemetryOptions(File:updatedFileSinkOptions)}};
_logger.LogInformation($"Updated configuration with runtime.telemetry.file.rolling-interval as '{options.FileSinkRollingInterval}'");
1253
+
}
1254
+
1255
+
// Runtime.Telemetry.File.RetainedFileCountLimit
1256
+
if(options.FileSinkRetainedFileCountLimitis not null)
1257
+
{
1258
+
if(options.FileSinkRetainedFileCountLimit<=0)
1259
+
{
1260
+
_logger.LogError("Failed to update configuration with runtime.telemetry.file.retained-file-count-limit. Value must be a positive integer greater than 0.");
_logger.LogInformation($"Updated configuration with runtime.telemetry.file.retained-file-count-limit as '{options.FileSinkRetainedFileCountLimit}'");
1266
+
}
1267
+
1268
+
// Runtime.Telemetry.File.FileSizeLimitBytes
1269
+
if(options.FileSinkFileSizeLimitBytesis not null)
1270
+
{
1271
+
if(options.FileSinkFileSizeLimitBytes<=0)
1272
+
{
1273
+
_logger.LogError("Failed to update configuration with runtime.telemetry.file.file-size-limit-bytes. Value must be a positive integer greater than 0.");
0 commit comments