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(fe2): improved and more thorough logging to help with observability #1948

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

fabis94
Copy link
Contributor

@fabis94 fabis94 commented Jan 9, 2024

Description & motivation

Changes:

To-do before merge:

Screenshots:

Validation of changes:

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

References

@@ -89,7 +89,7 @@
"pg": "^8.7.3",
"pg-query-stream": "^4.2.3",
"pino": "^8.7.0",
"pino-http": "^8.2.1",
"pino-http": "^8.6.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

9.0.0 is available if we're bumping this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i only updated it to fix TS type mismatches, I'd prefer not to go into the rabbit hole of doing a major upgrade in this PR, especially considering that the version has to be compatible across multiple packages (e.g. also @speckle/shared)

@fabis94 fabis94 changed the title WIP FE2 Beefier logging feat(fe2): improved and more thorough logging to help with observability Jan 10, 2024
@fabis94 fabis94 marked this pull request as ready for review January 10, 2024 09:44
const endTime = Date.now() - state.start
logger.info(
{
responseTime: endTime,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we include the units in the name?: responseTimeMs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm following the convention we have in other log messages. If we change it here, it's just going to be different from everything else, so I'd rather not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • The message makes it clear that it's ms

@fabis94 fabis94 merged commit 4144ce0 into main Jan 11, 2024
19 of 21 checks passed
@fabis94 fabis94 deleted the fabians/fe2-beefier-logging branch January 11, 2024 10:15
gjedlicska pushed a commit that referenced this pull request Jan 11, 2024
…ity (#1948)

* better req log text

* minor improvements to server logging

* WIP FE2 req logging

* FE2 apollo operation logging

* undid apolloPlugin changes due to Gergos PR

* seq message templates introduced
@gjedlicska gjedlicska mentioned this pull request Jan 11, 2024
6 tasks
gjedlicska added a commit that referenced this pull request Jan 17, 2024
* gergo/apolloQueryDuration (#1949)

* add apollo query duration

* feat: add more details to apollo query logging

* fix: pr review

* feat: format log messages as clef (#1950)

* fix(logging): pinoClef log levels must be a string

* chore(fe2): reducing log level for some spammy req logs

* minor adjustment

* more robust path resolution

* better req log text

* feat(fe2): improved and more thorough logging to help with observability (#1948)

* better req log text

* minor improvements to server logging

* WIP FE2 req logging

* FE2 apollo operation logging

* undid apolloPlugin changes due to Gergos PR

* seq message templates introduced

* fix: request logs (#1964)

* fix: request logs

* chore: remove comments

* feat: add graphql subscription metrics (#1970)

* optimized preview msg resultListener

* fix(server): locking to avoid postgres notification listeners processing the same message multiple times (#1972)

* fix(server): locking to avoid postgres notification listeners processing the same message multiple times

* optimized locking

* minor cleanup

* msg update

* log level adjustments

* reduce failsafe expiry

---------

Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems>
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.

None yet

2 participants