Skip to content

Commit

Permalink
Rename xray service to Notify (#2274)
Browse files Browse the repository at this point in the history
* Keeping these the same name to see if tracing is reflected

* adding python patching to assist in tracing (hopefully)

* formatting

* Update application.py

removing the patching code

* Update run_celery.py
  • Loading branch information
P0NDER0SA authored Aug 29, 2024
1 parent 49f9a3b commit 2a848de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

app = create_app(application)

xray_recorder.configure(service='api', context=NotifyContext())
xray_recorder.configure(service='Notify', context=NotifyContext())
XRayMiddleware(app, xray_recorder)

apig_wsgi_handler = make_lambda_handler(app, binary_support=True)
Expand Down
2 changes: 1 addition & 1 deletion run_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
application = Flask("celery")
create_app(application)

xray_recorder.configure(service='celery', context=NotifyContext())
xray_recorder.configure(service='Notify', context=NotifyContext())
XRayMiddleware(application, xray_recorder)

application.app_context().push()

0 comments on commit 2a848de

Please sign in to comment.