Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve actor telemetry types #7439

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

Arkatufus
Copy link
Contributor

@Arkatufus Arkatufus commented Dec 27, 2024

Changes

  • Improve actor telemetry, add type name override property
  • Make actor telemetry message constructors public

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Copy link
Contributor Author

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review

/// <summary>
/// Overrideable in order to support issues such as https://github.com/petabridge/phobos-issues/issues/82
/// </summary>
protected virtual ActorRestarted CreateActorRestartedEvent(Exception cause)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add override for ActorRestarted

/// <summary>
/// A type name override for the actor
/// </summary>
public string ActorTypeOverride { get; }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add new actor type name override property

}

// Create ActorTelemetryEvent messages for the following events: starting an actor, stopping an actor, restarting an actor
public sealed class ActorStarted : IActorTelemetryEvent
{
internal ActorStarted(IActorRef subject, Type actorType)
public ActorStarted(IActorRef subject, Type actorType, string? actorTypeOverride = null)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make actor telemetry message constructors public

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb merged commit 90e60c6 into akkadotnet:dev Dec 30, 2024
9 of 12 checks passed
@Aaronontheweb Aaronontheweb added this to the 1.5.34 milestone Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants