Skip to content

Commit c34f216

Browse files
committed
Fix new issues
1 parent db64efb commit c34f216

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

newrelic/common/utilization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ class AzureUtilization(CommonUtilization):
212212
class AzureFunctionUtilization(CommonUtilization):
213213
METADATA_HOST = "169.254.169.254"
214214
METADATA_PATH = "/metadata/instance/compute"
215-
METADATA_QUERY = {"api-version": "2017-03-01"}
215+
METADATA_QUERY = {"api-version": "2017-03-01"} # noqa: RUF012
216216
EXPECTED_KEYS = ("faas.app_name", "cloud.region")
217-
HEADERS = {"Metadata": "true"}
217+
HEADERS = {"Metadata": "true"} # noqa: RUF012
218218
VENDOR_NAME = "azurefunction"
219219

220220
@staticmethod

newrelic/core/infinite_tracing_pb2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121

2222
# Import appropriate generated pb2 file for protobuf version
2323
if PROTOBUF_VERSION >= (6,):
24-
from newrelic.core.infinite_tracing_v6_pb2 import AttributeValue, RecordStatus, Span, SpanBatch # noqa: F401
24+
from newrelic.core.infinite_tracing_v6_pb2 import AttributeValue, RecordStatus, Span, SpanBatch
2525
elif PROTOBUF_VERSION >= (5,):
26-
from newrelic.core.infinite_tracing_v5_pb2 import AttributeValue, RecordStatus, Span, SpanBatch # noqa: F401
26+
from newrelic.core.infinite_tracing_v5_pb2 import AttributeValue, RecordStatus, Span, SpanBatch
2727
elif PROTOBUF_VERSION >= (4,):
28-
from newrelic.core.infinite_tracing_v4_pb2 import AttributeValue, RecordStatus, Span, SpanBatch # noqa: F401
28+
from newrelic.core.infinite_tracing_v4_pb2 import AttributeValue, RecordStatus, Span, SpanBatch
2929
else:
3030
from newrelic.core.infinite_tracing_v3_pb2 import AttributeValue, RecordStatus, Span, SpanBatch # noqa: F401
3131

0 commit comments

Comments
 (0)