Skip to content

Make actor start / stop telemetry descriptors overrideable#7434

Merged
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Aaronontheweb:make-metrics-emission-overrideable
Dec 23, 2024
Merged

Make actor start / stop telemetry descriptors overrideable#7434
Aaronontheweb merged 1 commit into
akkadotnet:devfrom
Aaronontheweb:make-metrics-emission-overrideable

Conversation

@Aaronontheweb
Copy link
Copy Markdown
Member

@Aaronontheweb Aaronontheweb commented Dec 23, 2024

Changes

Designed to support petabridge/phobos-issues#82

Checklist

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

Copy link
Copy Markdown
Member Author

@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.

Detailed my changes

/// <summary>
/// Overrideable in order to support issues such as https://github.com/petabridge/phobos-issues/issues/82
/// </summary>
protected virtual ActorStarted CreateActorStartedEvent()
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Going to customize these events mostly to support F# users, since Akkling actors all use the same base type, this should make them easier to distinguish in Phobos traces and metrics in the future.

public void CheckReceiveTimeout(bool reschedule = True) { }
protected void ClearActor(Akka.Actor.ActorBase actor) { }
protected void ClearActorCell() { }
protected virtual Akka.Actor.ActorStarted CreateActorStartedEvent() { }
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Part of the public API but only gets access by components that use custom ActorCells, which are rare

Copy link
Copy Markdown
Contributor

@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.

LGTM

@Arkatufus Arkatufus enabled auto-merge (squash) December 23, 2024 16:03
@Aaronontheweb Aaronontheweb merged commit 0a01453 into akkadotnet:dev Dec 23, 2024
@Aaronontheweb Aaronontheweb deleted the make-metrics-emission-overrideable branch December 23, 2024 17:22
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