File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
opentelemetry-instrumentation/src/opentelemetry/instrumentation Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -357,14 +357,14 @@ def _set_status(
357357 if status_code < 0 :
358358 metrics_attributes [ERROR_TYPE ] = status_code_str
359359 if span .is_recording ():
360- if _report_new (sem_conv_opt_in_mode ):
361- span .set_attribute (ERROR_TYPE , status_code_str )
362- span .set_status (
363- Status (
364- StatusCode .ERROR ,
365- "Non-integer HTTP status: " + status_code_str ,
360+ if _report_new (sem_conv_opt_in_mode ):
361+ span .set_attribute (ERROR_TYPE , status_code_str )
362+ span .set_status (
363+ Status (
364+ StatusCode .ERROR ,
365+ "Non-integer HTTP status: " + status_code_str ,
366+ )
366367 )
367- )
368368 else :
369369 status = http_status_to_status_code (status_code , server_span = True )
370370
You can’t perform that action at this time.
0 commit comments