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: Convert ActivityPub subsystem to use structured logs #1498

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

bstasyszyn
Copy link
Contributor

@bstasyszyn bstasyszyn commented Sep 26, 2022

The ActivityPub subsystem now uses key-value pairs for additional data (as opposed to embedding values into the log message).

Signed-off-by: Bob Stasyszyn Bob.Stasyszyn@securekey.com

@cla-bot cla-bot bot added the cla-signed label Sep 26, 2022
@codecov
Copy link

codecov bot commented Sep 26, 2022

Codecov Report

Base: 88.01% // Head: 87.94% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (8bf6fd9) compared to base (96c750f).
Patch coverage: 85.40% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1498      +/-   ##
==========================================
- Coverage   88.01%   87.94%   -0.07%     
==========================================
  Files         214      216       +2     
  Lines       20112    20286     +174     
==========================================
+ Hits        17701    17841     +140     
- Misses       1539     1571      +32     
- Partials      872      874       +2     
Impacted Files Coverage Δ
internal/pkg/log/common.go 0.00% <0.00%> (ø)
pkg/activitypub/vocab/objecttype.go 79.05% <0.00%> (-6.98%) ⬇️
pkg/activitypub/client/transport/transport.go 87.87% <50.00%> (ø)
pkg/activitypub/service/acceptlist/acceptlist.go 88.69% <66.66%> (+0.09%) ⬆️
internal/pkg/log/fields.go 78.37% <78.37%> (ø)
pkg/activitypub/resthandler/referencehandler.go 91.83% <80.00%> (ø)
pkg/activitypub/resthandler/authhandler.go 89.04% <81.81%> (+0.30%) ⬆️
pkg/activitypub/resthandler/serviceshandler.go 74.71% <83.33%> (ø)
...ctivitypub/service/activityhandler/inboxhandler.go 83.38% <85.71%> (+0.13%) ⬆️
pkg/activitypub/client/client.go 85.28% <86.66%> (+0.04%) ⬆️
... and 23 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

The ActivityPub subsystem now uses key-value pairs for additional data (as opposed to embedding values into the log message).

Signed-off-by: Bob Stasyszyn <Bob.Stasyszyn@securekey.com>
@bstasyszyn bstasyszyn changed the title wip: Structured logging feat: Convert ActivityPub subsystem to use structured logs Sep 27, 2022
log("Error closing iterator", WithError(err))
}

// CloseResponseBody outputs an 'close respojnse body' error log to the given logger.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo in respojnse

@bstasyszyn bstasyszyn merged commit b6ffa13 into trustbloc:main Sep 27, 2022
@bstasyszyn bstasyszyn deleted the structuredlog branch September 27, 2022 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants