Skip to content

Commit

Permalink
hotfix: agent constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
EddeCCC committed Nov 8, 2024
1 parent e749399 commit edb8353
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private Agent createAgent(IdentityInfo identityInfo) {
Map<String, String> attributes = PropertiesResolver.getAttributes();

return new Agent(
serviceName, gepardVersion, otelVersion, javaVersion, startTime, vmId, attributes);
serviceName, vmId, gepardVersion, otelVersion, startTime, javaVersion, attributes);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
/* (C) 2024 */
package rocks.inspectit.gepard.agent.internal.identity.model;

/** Information about the identity of this agent. */
public final class IdentityInfo {

private final String vmId;

private final String agentId;

public IdentityInfo(String vmId, String agentId) {
this.vmId = vmId;
this.agentId = agentId;
}

/**
* @return the VM id, created by the JVM
*/
public String vmId() {
return vmId;
}

/**
* @return the agent id, created by us
*/
public String agentId() {
return agentId;
}
Expand Down

0 comments on commit edb8353

Please sign in to comment.