Skip to content

Commit

Permalink
Set Operation name to test name (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmo authored Jul 21, 2020
1 parent d7070e2 commit 1d41f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.github.adrianmo</groupId>
<artifactId>jmeter.backendlistener.azure</artifactId>
<version>0.2.2</version>
<version>0.2.3</version>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>A JMeter plug-in that enables you to send test results to Azure Monitor.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ private void trackRequest(String name, SampleResult sr) {
Date timestamp = new Date(sr.getTimeStamp());
Duration duration = new Duration(sr.getTime());
RequestTelemetry req = new RequestTelemetry(name, timestamp, duration, sr.getResponseCode(), sr.getErrorCount() == 0);
req.getContext().getOperation().setName(name);

if (sr.getURL() != null) {
req.setUrl(sr.getURL());
Expand Down

0 comments on commit 1d41f74

Please sign in to comment.