Skip to content

Commit

Permalink
More activity kind changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Oct 28, 2024
1 parent df961d4 commit f2962b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Foundatio/Jobs/QueueJobBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public async Task<JobResult> ProcessAsync(IQueueEntry<T> queueEntry, Cancellatio

protected virtual Activity StartProcessQueueEntryActivity(IQueueEntry<T> entry)
{
var activity = FoundatioDiagnostics.ActivitySource.StartActivity("ProcessQueueEntry", ActivityKind.Server, entry.CorrelationId);
var activity = FoundatioDiagnostics.ActivitySource.StartActivity("ProcessQueueEntry", ActivityKind.Internal, entry.CorrelationId);
if (activity is null)
return null;

Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio/Jobs/WorkItemJob/WorkItemJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ await Task.WhenAll(

protected virtual Activity StartProcessWorkItemActivity(IQueueEntry<WorkItemData> entry, Type workItemDataType)
{
var activity = FoundatioDiagnostics.ActivitySource.StartActivity("ProcessQueueEntry", ActivityKind.Server, entry.CorrelationId);
var activity = FoundatioDiagnostics.ActivitySource.StartActivity("ProcessQueueEntry", ActivityKind.Internal, entry.CorrelationId);
if (activity is null)
return null;

Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio/Messaging/MessageBusBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ protected async Task SendMessageToSubscribersAsync(IMessage message)

protected virtual Activity StartHandleMessageActivity(IMessage message)
{
var activity = FoundatioDiagnostics.ActivitySource.StartActivity("HandleMessage", ActivityKind.Server, message.CorrelationId);
var activity = FoundatioDiagnostics.ActivitySource.StartActivity("HandleMessage", ActivityKind.Internal, message.CorrelationId);
if (activity is null)
return null;

Expand Down

0 comments on commit f2962b9

Please sign in to comment.