Skip to content

Conversation

@mmcfarland
Copy link
Member

@mmcfarland mmcfarland commented Jan 4, 2022

Description

Improve trace request logging for STAC and Tiler services, including:

  • Parse collection and item ids from multiple sources: path, querystring, cql-json, cql2-json, and item-search json
  • Consolidate tracing between services
  • Create dedicated health endpoint for Tiler service
  • Ignore health check pings in request traces
  • Improvements to dev deploys by specifying image locations

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Extensive dev deploy and local testing; new unit tests.

Checklist:

Please delete options that are not relevant.

  • I have performed a self-review
  • Unit tests pass locally (./scripts/test)
  • Code is linted and styled (./scripts/format)

Also sets the liveness probe to use this new endpoint. Uses the same URL
path as pcstac, this will help isolate requests in the logs.
The directory is copied in the Dockerfile, so it was loading on the
container, however this typo prevented reloading of pccommon when
changes were made without rebuilding the image.
Rather than maintaining parity between two request tracing
implementations, create a common trace that can be used by both
projects.
Defaults to publish images for staging deploys
@mmcfarland mmcfarland requested a review from lossyrob January 4, 2022 15:03
Traditional middleware will corrupt usage of starlette request objects
by downstream route functions. Use a middleware class crafted for
accessing the request body without interfering with further processing.
Auto-formatter
@mmcfarland mmcfarland merged commit 3f767d6 into main Jan 10, 2022
@mmcfarland mmcfarland deleted the feature/mjm/logging-improvements branch January 10, 2022 21:20
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.

3 participants