Skip to content

Commit

Permalink
Tagging activities in internal node agent work with "wolverine_node_a…
Browse files Browse the repository at this point in the history
…ssignments"
  • Loading branch information
jeremydmiller committed Aug 19, 2024
1 parent 85122c2 commit 16d6e62
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public partial class NodeAgentController
// Tested w/ integration tests all the way
public async Task<AgentCommands> EvaluateAssignmentsAsync(IReadOnlyList<WolverineNode> nodes)
{
using var activity = WolverineTracing.ActivitySource.StartActivity("wolverine_node_assignments");

This comment has been minimized.

Copy link
@GeeSuth

GeeSuth Aug 21, 2024

Contributor

I don't understand exactly the reason for this line. exactly with define variable not used.


var grid = new AssignmentGrid();

var capabilities = nodes.SelectMany(x => x.Capabilities).Distinct().ToArray();
Expand Down
2 changes: 2 additions & 0 deletions src/Wolverine/Runtime/Agents/NodeAgentController.HeartBeat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public async Task<AgentCommands> DoHealthChecksAsync()
{
return AgentCommands.Empty;
}

using var activity = WolverineTracing.ActivitySource.StartActivity("wolverine_node_assignments");

// write health check regardless
await _persistence.MarkHealthCheckAsync(_runtime.Options.UniqueNodeId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ public partial class NodeAgentController

public async Task StartSoloModeAsync()
{
using var activity = WolverineTracing.ActivitySource.StartActivity("wolverine_node_assignments");

await _runtime.Storage.Nodes.ClearAllAsync(_cancellation.Token);
await _runtime.Storage.Admin.ReleaseAllOwnershipAsync();

Expand Down

0 comments on commit 16d6e62

Please sign in to comment.