11 new issues (0 max.) of at least minor severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 11
Complexity increasing per file
==============================
- src/KafkaFlow.OpenTelemetry/ExtensionMethods.cs 1
- src/KafkaFlow.OpenTelemetry/Trace/TracerConsumerMiddleware.cs 6
- src/KafkaFlow.OpenTelemetry/Trace/TracerProducerMiddleware.cs 8
- src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs 3
- src/KafkaFlow/Configuration/ClusterConfigurationBuilder.cs 1
See the complete overview on Codacy
Annotations
Check warning on line 13 in src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs#L13
Move this field's initializer into a static constructor.
Check warning on line 15 in src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs#L15
Move this field's initializer into a static constructor.
Check notice on line 21 in src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs#L21
Replace this 'static readonly' declaration with 'const'.
Check notice on line 22 in src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/KafkaFlowActivitySourceHelper.cs#L22
Replace this 'static readonly' declaration with 'const'.
Check notice on line 14 in src/KafkaFlow.OpenTelemetry/Trace/TracerConsumerMiddleware.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/TracerConsumerMiddleware.cs#L14
Replace this 'static readonly' declaration with 'const'.
Check warning on line 18 in src/KafkaFlow.OpenTelemetry/Trace/TracerConsumerMiddleware.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/TracerConsumerMiddleware.cs#L18
'context' is null on at least one execution path.
Check notice on line 14 in src/KafkaFlow.OpenTelemetry/Trace/TracerProducerMiddleware.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/TracerProducerMiddleware.cs#L14
Replace this 'static readonly' declaration with 'const'.
Check warning on line 18 in src/KafkaFlow.OpenTelemetry/Trace/TracerProducerMiddleware.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/TracerProducerMiddleware.cs#L18
'context' is null on at least one execution path.
Check warning on line 82 in src/KafkaFlow.OpenTelemetry/Trace/TracerProducerMiddleware.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow.OpenTelemetry/Trace/TracerProducerMiddleware.cs#L82
'context' is null on at least one execution path.
Check warning on line 19 in src/KafkaFlow/Configuration/ClusterConfigurationBuilder.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow/Configuration/ClusterConfigurationBuilder.cs#L19
Make 'instrumentationProducerMiddleware' 'readonly'.
Check warning on line 109 in src/KafkaFlow/Configuration/ClusterConfigurationBuilder.cs
codacy-production / Codacy Static Code Analysis
src/KafkaFlow/Configuration/ClusterConfigurationBuilder.cs#L109
'TProducerInstrumentationMiddleware' is not used in the method.