Skip to content

Commit

Permalink
chore: add yggdrasil version to metrics (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
sighphyre authored Nov 6, 2024
1 parent 3a5013e commit fbf0aa4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Unleash/Metrics/ClientMetrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public string YggdrasilVersion
{
get
{
return null;
return "0.14.0";
}
}
public string SpecVersion
Expand Down
2 changes: 1 addition & 1 deletion src/Unleash/Metrics/ClientRegistration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public string YggdrasilVersion
{
get
{
return null;
return "0.14.0";
}
}
public string SpecVersion
Expand Down
2 changes: 1 addition & 1 deletion src/Unleash/Scheduling/ClientRegistrationBackgroundTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public async Task ExecuteAsync(CancellationToken cancellationToken)
public TimeSpan Interval { get; set; }
public bool ExecuteDuringStartup { get; set; }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task RegisterClient_Success()
.WithPartialContent("specVersion")
.WithPartialContent("platformName")
.WithPartialContent("platformVersion")
.WithPartialContent("\"yggdrasilVersion\":null")
.WithPartialContent("\"yggdrasilVersion\":\"0.14.0\"")
.Respond("application/json", "{ 'status': 'ok' }");

var clientRegistration = new ClientRegistration()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async Task SendMetrics_Success()
.WithPartialContent("specVersion")
.WithPartialContent("platformName")
.WithPartialContent("platformVersion")
.WithPartialContent("\"yggdrasilVersion\":null")
.WithPartialContent("\"yggdrasilVersion\":\"0.14.0\"")
.Respond("application/json", "{ 'status': 'ok' }");

var engine = new YggdrasilEngine();
Expand Down

0 comments on commit fbf0aa4

Please sign in to comment.