Skip to content

Add contextual logging to registry app and storage #86

Closed

Description

@stevvooe

After standardizing on logrus, we haven't fully utilized its functionality to provide performance monitoring and debugging. I have a stashed commit that adds request information and performance metrics that can introduce the concept.

This issue will be complete when:

  • UUID generated for each individual request injected into logging context.
  • Logging is contextually integrated with web application and storage backend.
  • Tools and libraries are present to make it easy to add logging to various parts of the application (ie integrate net.Context).
  • Event oriented runtime metrics communicated via log messages

This supersedes docker-archive/docker-registry#635.

Activity

  1. self-assigned this
    on Jan 19, 2015
  2. added this to the milestone on Jan 19, 2015
  3. stevvooe commented on Feb 4, 2015

    @stevvooe
    CollaboratorAuthor

    After some work in implementing this feature, I now have the following logs:

    INFO[0000] endpoint local-8082 disabled, skipping        app.id=d0cf78b4-2d1d-4937-9618-a138b50f411c app.version=v2.0.0-alpha.1+unknown
    INFO[0000] endpoint local-8083 disabled, skipping        app.id=d0cf78b4-2d1d-4937-9618-a138b50f411c app.version=v2.0.0-alpha.1+unknown
    INFO[0000] listening on :5000
    INFO[0000] debug server listening localhost:5001
    INFO[0029] GetImageLayer                                 app.id=d0cf78b4-2d1d-4937-9618-a138b50f411c app.version=v2.0.0-alpha.1+unknown http.request.host=localhost:5000 http.request.id=6f3f31ac-d7a0-47f7-bb1b-0c0b11767799 http.request.method=HEAD http.request.remoteaddr=127.0.0.1:56066 http.request.uri=/v2/library/hello-world/blobs/tarsum.v1+sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 http.request.useragent=Go 1.1 package http vars.digest=tarsum.v1+sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 vars.name=library/hello-world
    INFO[0029] response completed                            app.id=d0cf78b4-2d1d-4937-9618-a138b50f411c app.version=v2.0.0-alpha.1+unknown http.request.host=localhost:5000 http.request.id=6f3f31ac-d7a0-47f7-bb1b-0c0b11767799 http.request.method=HEAD http.request.remoteaddr=127.0.0.1:56066 http.request.uri=/v2/library/hello-world/blobs/tarsum.v1+sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 http.request.useragent=Go 1.1 package http http.response.duration=2.503687ms http.response.status=0 http.response.written=0 vars.digest=tarsum.v1+sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 vars.name=library/hello-world
    127.0.0.1 - - [03/Feb/2015:17:30:52 -0800] "HEAD /v2/library/hello-world/blobs/tarsum.v1+sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 HTTP/1.1" 404 179 "" "Go 1.1 package http"
    

    These represent startup and a single request to check the existence of an image. Please have a look and see if we like the concept.

    cc @dmp42 @jlhawn @dmcgowan

  4. jlhawn commented on Feb 4, 2015

    @jlhawn

    50834065

  5. modified the milestones: , Registry/2.0 on Mar 31, 2015
  6. added a commit that references this issue on Jun 5, 2018
  7. added a commit that references this issue on Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions