Skip to content

Commit 241a849

Browse files
author
Filip Nikolovski
committed
cleanup unused functions
1 parent 174e144 commit 241a849

File tree

1 file changed

+0
-26
lines changed
  • instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon

1 file changed

+0
-26
lines changed

instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ def response_hook(span, req, resp):
199199
_OpenTelemetryStabilitySignalType,
200200
_report_new,
201201
_report_old,
202-
_set_status,
203202
_StabilityMode,
204203
)
205204
from opentelemetry.instrumentation.falcon.package import _instruments
@@ -250,31 +249,6 @@ def response_hook(span, req, resp):
250249
_falcon_version = 1
251250

252251

253-
def set_status_code(
254-
span,
255-
status_code,
256-
metric_attributes=None,
257-
sem_conv_opt_in_mode=_StabilityMode.DEFAULT,
258-
):
259-
"""Adds HTTP response attributes to span using the status_code argument."""
260-
status_code_str = str(status_code)
261-
262-
try:
263-
status_code = int(status_code)
264-
except ValueError:
265-
status_code = -1
266-
if metric_attributes is None:
267-
metric_attributes = {}
268-
_set_status(
269-
span,
270-
metric_attributes,
271-
status_code,
272-
status_code_str,
273-
server_span=True,
274-
sem_conv_opt_in_mode=sem_conv_opt_in_mode,
275-
)
276-
277-
278252
class _InstrumentedFalconAPI(getattr(falcon, _instrument_app)):
279253
_instrumented_falcon_apps = set()
280254

0 commit comments

Comments
 (0)