Skip to content

Commit bb1c6b5

Browse files
authored
Merge branch 'main' into add-mcp-instrumentation
2 parents b1180b8 + 846ddbf commit bb1c6b5

File tree

131 files changed

+922
-986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+922
-986
lines changed

.github/workflows/build-ci-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
password: ${{ secrets.GITHUB_TOKEN }}
6060

6161
- name: Build and Publish Image
62-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # 6.16.0
62+
uses: docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # 6.17.0
6363
with:
6464
push: ${{ github.event_name != 'pull_request' }}
6565
context: .github/containers

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
coverage xml
9797
9898
- name: Upload Coverage to Codecov
99-
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # 5.4.2
99+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # 5.4.3
100100
with:
101101
files: coverage.xml
102102
fail_ci_if_error: true

.github/workflows/trivy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ jobs:
5656

5757
- name: Upload Trivy scan results to GitHub Security tab
5858
if: ${{ github.event_name == 'schedule' }}
59-
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # 3.28.17
59+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # 3.28.18
6060
with:
6161
sarif_file: "trivy-results.sarif"

newrelic/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
THIS_DIR = os.path.dirname(__file__)
1818

1919
try:
20-
with open(os.path.join(THIS_DIR, "version.txt"), "r") as f:
20+
with open(os.path.join(THIS_DIR, "version.txt")) as f:
2121
version = f.read()
2222
except:
2323
version = "0.0.0"

newrelic/admin/generate_config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def generate_config(args):
3232

3333
config_file = os.path.join(package_root, "newrelic.ini")
3434

35-
content = open(config_file, "r").read()
35+
with open(config_file) as f:
36+
content = f.read()
3637

3738
if len(args) >= 1:
3839
content = content.replace("*** REPLACE ME ***", args[0])

newrelic/api/asgi_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def __init__(self, application, scope, receive, send, source=None):
209209
request_path = scope["path"]
210210
query_string = scope["query_string"]
211211
headers = scope["headers"] = tuple(scope["headers"])
212-
super(ASGIWebTransaction, self).__init__(
212+
super().__init__(
213213
application=application,
214214
name=None,
215215
scheme=scheme,

newrelic/api/background_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BackgroundTask(Transaction):
2525
def __init__(self, application, name, group=None, source=None):
2626
# Initialise the common transaction base class.
2727

28-
super(BackgroundTask, self).__init__(application, source=source)
28+
super().__init__(application, source=source)
2929

3030
# Mark this as a background task even if disabled.
3131

newrelic/api/cat_header_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CatHeaderMixin:
3434
settings = None
3535

3636
def __enter__(self):
37-
result = super(CatHeaderMixin, self).__enter__()
37+
result = super().__enter__()
3838
if result is self and self.transaction:
3939
self.settings = self.transaction.settings or None
4040
return result

newrelic/api/database_trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(
6969
if kwargs:
7070
raise TypeError("Invalid keyword arguments:", kwargs)
7171

72-
super(DatabaseTrace, self).__init__(parent=parent, source=source)
72+
super().__init__(parent=parent, source=source)
7373

7474
self.sql = sql
7575

@@ -84,7 +84,7 @@ def __init__(
8484
self.database_name = database_name
8585

8686
def __enter__(self):
87-
result = super(DatabaseTrace, self).__enter__()
87+
result = super().__enter__()
8888
if result and self.transaction:
8989
self.sql = self.transaction._intern_string(self.sql)
9090
return result

newrelic/api/datastore_trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def __init__(self, product, target, operation, host=None, port_path_or_id=None,
6161
if kwargs:
6262
raise TypeError("Invalid keyword arguments:", kwargs)
6363

64-
super(DatastoreTrace, self).__init__(parent=parent, source=source)
64+
super().__init__(parent=parent, source=source)
6565

6666
self.instance_reporting_enabled = False
6767
self.database_name_enabled = False
@@ -75,7 +75,7 @@ def __init__(self, product, target, operation, host=None, port_path_or_id=None,
7575
self.database_name = database_name
7676

7777
def __enter__(self):
78-
result = super(DatastoreTrace, self).__enter__()
78+
result = super().__enter__()
7979
if result and self.transaction:
8080
transaction = self.transaction
8181

0 commit comments

Comments
 (0)