-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e9c291
commit 7016470
Showing
7 changed files
with
106 additions
and
43 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
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
33 changes: 33 additions & 0 deletions
33
benchmark-overhead/src/test/java/io/opentelemetry/util/ContainerNamingConvention.java
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.util; | ||
|
||
import io.opentelemetry.agents.Agent; | ||
|
||
public class ContainerNamingConvention implements NamingConvention { | ||
private final String dir; | ||
|
||
public ContainerNamingConvention(String dir) { | ||
this.dir = dir; | ||
} | ||
|
||
public String k6Results(Agent agent) { | ||
|
||
return String.join("/", dir, "k6_out_" + agent.getName() + ".json"); | ||
} | ||
|
||
public String jfrFile(Agent agent) { | ||
return String.join("/", dir, "petclinic-" + agent.getName() + ".jfr"); | ||
} | ||
|
||
public String startupDurationFile(Agent agent) { | ||
return String.join("/", dir, "startup-time-" + agent.getName() + ".txt"); | ||
} | ||
|
||
public String root() { | ||
return dir; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
benchmark-overhead/src/test/java/io/opentelemetry/util/LocalNamingConvention.java
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.util; | ||
|
||
import io.opentelemetry.agents.Agent; | ||
import java.nio.file.Paths; | ||
|
||
public class LocalNamingConvention implements NamingConvention { | ||
private final String dir; | ||
|
||
public LocalNamingConvention(String dir) { | ||
this.dir = dir; | ||
} | ||
|
||
public String k6Results(Agent agent) { | ||
return Paths.get(dir, "k6_out_" + agent.getName() + ".json").toString(); | ||
} | ||
|
||
public String jfrFile(Agent agent) { | ||
return Paths.get(dir, "petclinic-" + agent.getName() + ".jfr").toString(); | ||
} | ||
|
||
public String startupDurationFile(Agent agent) { | ||
return Paths.get(dir, "startup-time-" + agent.getName() + ".txt").toString(); | ||
} | ||
|
||
public String root() { | ||
return dir; | ||
} | ||
} |
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