Skip to content

Chore: Add logs to track longest backend calls perfomance - #685

Merged
thedecaftony merged 3 commits into
mainfrom
tl-perf-logs
Aug 26, 2026
Merged

Chore: Add logs to track longest backend calls perfomance#685
thedecaftony merged 3 commits into
mainfrom
tl-perf-logs

Conversation

@thedecaftony

@thedecaftony thedecaftony commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Ticket: re-assess backend stability

Testing

  • Ran unit tests

@thedecaftony
thedecaftony marked this pull request as ready for review August 14, 2026 18:30
@thedecaftony
thedecaftony requested a review from a team as a code owner August 14, 2026 18:30
@thedecaftony
thedecaftony requested review from KaylaBrady and removed request for a team August 14, 2026 18:30

@KaylaBrady KaylaBrady left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 a few minor comments!

fetch_schedules_and_combine_data(conn, stop_ids_concat, date_time_string, params)
end)

Logger.info(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

question: Is this redundant to the log below? if not, maybe worth adding something unique to distinguish it from the other "schedules request" log

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I missed that, it actually is, let me remove it

|> Enum.map_join(" ", fn {name, value} -> "#{name}=#{value}" end)

if stage_healthy and consumer_healthy do
Logger.info("#{__MODULE__} #{health_state}")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

suggestion (non-blocking): this is a function that timed out in the past, so we have some signal that there might actually be performance issues here. It could be interesting to add duration to these existing logs & keep it at the info level to motivate whether to prioritize the linked ticket.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense Iw as trying to remove a log that had a log events

@thedecaftony
thedecaftony added this pull request to the merge queue Aug 26, 2026
Merged via the queue into main with commit ddcd8b3 Aug 26, 2026
7 checks passed
@thedecaftony
thedecaftony deleted the tl-perf-logs branch August 26, 2026 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants