-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support of cloudwatch metrics - Removed the need of Service Context c…
…lass - Addressing reviewing comments
- Loading branch information
Showing
3 changed files
with
11 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from locust import events | ||
from locust_plugins.listeners.cloudwatch import CloudwatchAdapter, ServiceContext | ||
from locust_plugins.listeners.cloudwatch import CloudwatchAdapter | ||
|
||
|
||
@events.init.add_listener | ||
def on_locust_init(environment, **_kwargs): | ||
CloudwatchAdapter(environment, ServiceContext("MyExampleService", "perf")) | ||
CloudwatchAdapter(environment, "MyExampleService", "perf") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters