Skip to content

Commit f2df86c

Browse files
authored
feat: additional performance tracing (#443)
1 parent fdfbe5b commit f2df86c

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

CHANGELOG.rst

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Please See the `releases tab <https://github.com/openedx/xblock-lti-consumer/rel
1515

1616
Unreleased
1717
~~~~~~~~~~
18+
9.8.3 - 2024-01-23
19+
------------------
20+
* Additional NewRelic traces to functions suspected of causing performance issues.
21+
1822
9.8.2 - 2024-01-19
1923
------------------
2024
* Add NewRelic traces to functions suspected of causing performance issues.

lti_consumer/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
from .apps import LTIConsumerApp
55
from .lti_xblock import LtiConsumerXBlock
66

7-
__version__ = '9.8.2'
7+
__version__ = '9.8.3'

lti_consumer/lti_1p3/consumer.py

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class LtiConsumer1p3:
3434
LTI 1.3 Consumer Implementation
3535
"""
3636

37+
@function_trace('lti_consumer.lti_1p3.consumer.LtiConsumer1p3.__init__')
3738
def __init__(
3839
self,
3940
iss,

lti_consumer/lti_1p3/key_handlers.py

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import logging
1212

1313
from Cryptodome.PublicKey import RSA
14+
from edx_django_utils.monitoring import function_trace
1415
from jwkest import BadSignature, BadSyntax, WrongNumberOfParts, jwk
1516
from jwkest.jwk import RSAKey, load_jwks_from_url
1617
from jwkest.jws import JWS, NoSuitableSigningKeys, UnknownAlgorithm
@@ -32,6 +33,7 @@ class ToolKeyHandler:
3233
in order to validate the JWT Signature of messages
3334
signed with the tools signature.
3435
"""
36+
@function_trace('lti_consumer.key_handlers.ToolKeyHandler.__init__')
3537
def __init__(self, public_key=None, keyset_url=None):
3638
"""
3739
Instance message validator
@@ -162,6 +164,7 @@ class PlatformKeyHandler:
162164
This class loads the platform key and is responsible for
163165
encoding JWT messages and exporting public keys.
164166
"""
167+
@function_trace('lti_consumer.key_handlers.PlatformKeyHandler.__init__')
165168
def __init__(self, key_pem, kid=None):
166169
"""
167170
Import Key when instancing class if a key is present.

0 commit comments

Comments
 (0)