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

feat(instrumentation): add instrumentation around echo event handling #1824

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

kirangodishala
Copy link
Contributor

@kirangodishala kirangodishala commented Aug 30, 2024

Add logging and metrics around sending events sent to Echo when a pipeline is triggered manually. Specifically:

  • echo.events.count
  • echo.events.duration
  • echo.events.error

As well, this changes the POST /pipelines/v2/{application}/{pipelineNameOrId} endpoint (the one deck uses to trigger manual execution) to generate an event id before calling echo. Eventually, we may move the event id generation to the UI to reduce the chance of duplicate triggers in some scenarios.

Set the Gate generated event id as the top level event id in the event being sent to Echo.
This conforms to Event.java as used by Echo to deserialize the event upon receipt.
This also prevents Echo from generating yet another UUID.
Wire up metrics around before and after manual pipeline execution events sent to Echo.
Enable debug logging of specific event ids sent to Echo.
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Aug 30, 2024
@mergify mergify bot added the auto merged label Aug 30, 2024
@mergify mergify bot merged commit f745fcc into spinnaker:master Aug 30, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants