Repository navigation
context, storagedriver: trace function calls to Base storage driver - #343
Merged
Merged
Conversation
This moves the instance id out of the app so that it is associated with an instantiation of the runtime. The instance id is stored on the background context. This allows allow contexts using the main background context to include an instance id for log messages. It also simplifies the application slightly. Signed-off-by: Stephen J Day <[email protected]>
stevvooe
force-pushed
the
tracing-driver
branch
from
April 10, 2015 19:30
bfdcbe4 to
a1c1a59
Compare
Contributor
|
ping @aluzzardi @icecrime @jfrazelle @mavenugo Should we share that kind of stuff? |
stevvooe
force-pushed
the
tracing-driver
branch
from
April 10, 2015 19:50
a1c1a59 to
4ff4059
Compare
Collaborator
Author
There was a problem hiding this comment.
I just think you don't know what a "funciton" is.
Collaborator
|
Given there is nothing in between info and debug, I would say Info is appropriate for such "chatty" logs. LGTM |
Collaborator
Author
|
lgtm |
This adds WithTrace function to the context package that allows users to trace a time span between a trace allocation and returned function call. The resulting context includes ids that will allow for future dapper-like analysis. Please see the godoc addition for details. Signed-off-by: Stephen J Day <[email protected]>
Signed-off-by: Stephen J Day <[email protected]>
stevvooe
force-pushed
the
tracing-driver
branch
from
April 10, 2015 23:42
4ff4059 to
730ce83
Compare
RichardScothern
pushed a commit
that referenced
this pull request
Apr 10, 2015
context, storagedriver: trace function calls to Base storage driver
thaJeztah
pushed a commit
to thaJeztah/distribution
that referenced
this pull request
Apr 22, 2021
context, storagedriver: trace function calls to Base storage driver
thaJeztah
pushed a commit
to thaJeztah/distribution
that referenced
this pull request
Jan 19, 2022
context, storagedriver: trace function calls to Base storage driver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds
WithTracefunction to the context package that allows users to trace a time span between a trace allocation and returned function call. The resulting context includes ids that will allow for future dapper-like analysis. Please see the godoc addition for details.This supports tracing calls to backend storage drivers.
This also moves the instance id out of the app so that it is associated with an instantiation of the runtime. The instance id is stored on the background context. This allows allow contexts using the main background context to include an instance id for log messages. It also simplifies the application slightly