Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

docs: add an example for trace #86

Merged
merged 2 commits into from
Jul 19, 2023
Merged

docs: add an example for trace #86

merged 2 commits into from
Jul 19, 2023

Conversation

wangxiaoxuan273
Copy link
Collaborator

Resolves #85

@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2023

Codecov Report

Merging #86 (f210ca8) into main (2afb422) will decrease coverage by 6.38%.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
- Coverage   82.46%   76.08%   -6.38%     
==========================================
  Files           6        7       +1     
  Lines         382      414      +32     
==========================================
  Hits          315      315              
- Misses         45       77      +32     
  Partials       22       22              

see 1 file with indirect coverage changes

example_test.go Outdated Show resolved Hide resolved
example_test.go Outdated Show resolved Hide resolved
example_test.go Outdated Show resolved Hide resolved
Signed-off-by: Xiaoxuan Wang <[email protected]>
panic(err)
}

// define traceHooks and add it to the context. The 'action' argument refers
Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change
// define traceHooks and add it to the context. The 'action' argument refers
// Define ExecutableTrace and add it to the context. The 'action' argument refers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed accordingly.

trace/example_test.go Outdated Show resolved Hide resolved
Signed-off-by: Xiaoxuan Wang <[email protected]>
Copy link
Member

@Wwwsylvia Wwwsylvia left a comment

Choose a reason for hiding this comment

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

LGTM

@Wwwsylvia Wwwsylvia merged commit 5e38e75 into oras-project:main Jul 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add examples for package trace
3 participants