File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/OpenTelemetry.AutoInstrumentation/ContinuousProfiler Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,20 @@ internal class SampleExporter : IDisposable
2323
2424 public SampleExporter ( BufferProcessor bufferProcessor , TimeSpan exportInterval , TimeSpan exportTimeout )
2525 {
26+ #if NET
2627 ArgumentOutOfRangeException . ThrowIfLessThanOrEqual ( exportInterval , TimeSpan . Zero ) ;
2728 ArgumentOutOfRangeException . ThrowIfLessThanOrEqual ( exportTimeout , TimeSpan . Zero ) ;
29+ #else
30+ if ( exportInterval < TimeSpan . Zero )
31+ {
32+ throw new ArgumentOutOfRangeException ( nameof ( exportInterval ) ) ;
33+ }
2834
35+ if ( exportTimeout < TimeSpan . Zero )
36+ {
37+ throw new ArgumentOutOfRangeException ( nameof ( exportTimeout ) ) ;
38+ }
39+ #endif
2940 _exportInterval = exportInterval ;
3041 _exportTimeout = exportTimeout ;
3142 _bufferProcessor = bufferProcessor ;
You can’t perform that action at this time.
0 commit comments