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

Add srv=, subsrv=, from= fields in traces #1593

Closed
fgalan opened this issue Dec 3, 2015 · 6 comments
Closed

Add srv=, subsrv=, from= fields in traces #1593

fgalan opened this issue Dec 3, 2015 · 6 comments
Assignees
Labels
Milestone

Comments

@fgalan
Copy link
Member

fgalan commented Dec 3, 2015

Include the following fields in log traces, as per request from Operations.

  • srv=
  • subsrv=
  • from=
@fgalan fgalan added the backlog label Dec 3, 2015
@fgalan fgalan self-assigned this Dec 3, 2015
@fgalan fgalan added this to the 0.27.0 milestone Dec 3, 2015
@fgalan
Copy link
Member Author

fgalan commented Dec 3, 2015

This is the format that will be implementeed (ok with Operations):


time=2015-12-03T12:30:15.363CET | lvl=INFO | trans=1449141927-158-00000000003 | srv=pending | subsrv=pending | from=pending | function=LM_TRANSACTION_START | comp=Orion | msg=logMsg.h[1798]: Starting transaction from 192.168.206.1:58275/v1/contextEntities
time=2015-12-03T12:30:15.370CET | lvl=INFO | trans=1449141927-158-00000000003 | srv=valencia | subsrv=/Basuras | from=192.168.206.1 | function=collectionRangedQuery | comp=Orion | msg=connectionOperations.cpp[151]: Database Operation Successful (query: { query: { $or: [ { _id.id: /.*/ } ], _id.servicePath: { $in: [ /^/Basuras$/ ] } }, orderby: { creDate: 1 } })
time=2015-12-03T12:30:15.370CET | lvl=INFO | trans=1449141927-158-00000000003 | srv=valencia | subsrv=/Basuras | from=192.168.206.1 | function=collectionRangedQuery | comp=Orion | msg=connectionOperations.cpp[151]: Database Operation Successful (query: { query: { $or: [ { contextRegistration.entities.id: /.*/ }, { contextRegistration.entities: { $in: [] } }, { contextRegistration.entities.id: { $in: [] } } ], expiration: { $gt: 1449142215 }, servicePath: { $in: [ /^/Basuras$/ ] } }, orderby: { _id: 1 } })
time=2015-12-03T12:30:15.371CET | lvl=INFO | trans=1449141927-158-00000000003 | srv=valencia | subsrv=/Basuras | from=192.168.206.1 | function=collectionRangedQuery | comp=Orion | msg=connectionOperations.cpp[151]: Database Operation Successful (query: { query: { $or: [ { contextRegistration.entities.id: /.*/ }, { contextRegistration.entities: { $in: [] } }, { contextRegistration.entities.id: { $in: [] } } ], expiration: { $gt: 1449142215 }, servicePath: { $in: [ /^/Basuras$/ ] } }, orderby: { _id: 1 } })
time=2015-12-03T12:30:15.371CET | lvl=INFO | trans=1449141927-158-00000000003 | srv=valencia | subsrv=/Basuras | from=192.168.206.1 | function=LM_TRANSACTION_END | comp=Orion | msg=logMsg.h[1885]: Transaction ended


time=2015-12-03T12:31:48.728CET | lvl=INFO | trans=1449141927-158-00000000004 | srv=pending | subsrv=pending | from=pending | function=LM_TRANSACTION_START | comp=Orion | msg=logMsg.h[1798]: Starting transaction from 192.168.206.1:58275/v1/contextEntities
time=2015-12-03T12:31:48.729CET | lvl=INFO | trans=1449141927-158-00000000004 | srv=valencia | subsrv=/Basuras | from=8.80.8.80 | function=collectionRangedQuery | comp=Orion | msg=connectionOperations.cpp[151]: Database Operation Successful (query: { query: { $or: [ { _id.id: /.*/ } ], _id.servicePath: { $in: [ /^/Basuras$/ ] } }, orderby: { creDate: 1 } })
time=2015-12-03T12:31:48.730CET | lvl=INFO | trans=1449141927-158-00000000004 | srv=valencia | subsrv=/Basuras | from=8.80.8.80 | function=collectionRangedQuery | comp=Orion | msg=connectionOperations.cpp[151]: Database Operation Successful (query: { query: { $or: [ { contextRegistration.entities.id: /.*/ }, { contextRegistration.entities: { $in: [] } }, { contextRegistration.entities.id: { $in: [] } } ], expiration: { $gt: 1449142308 }, servicePath: { $in: [ /^/Basuras$/ ] } }, orderby: { _id: 1 } })
time=2015-12-03T12:31:48.731CET | lvl=INFO | trans=1449141927-158-00000000004 | srv=valencia | subsrv=/Basuras | from=8.80.8.80 | function=collectionRangedQuery | comp=Orion | msg=connectionOperations.cpp[151]: Database Operation Successful (query: { query: { $or: [ { contextRegistration.entities.id: /.*/ }, { contextRegistration.entities: { $in: [] } }, { contextRegistration.entities.id: { $in: [] } } ], expiration: { $gt: 1449142308 }, servicePath: { $in: [ /^/Basuras$/ ] } }, orderby: { _id: 1 } })
time=2015-12-03T12:31:48.732CET | lvl=INFO | trans=1449141927-158-00000000004 | srv=valencia | subsrv=/Basuras | from=8.80.8.80 | function=LM_TRANSACTION_END | comp=Orion | msg=logMsg.h[1885]: Transaction ended

@fgalan
Copy link
Member Author

fgalan commented Dec 3, 2015

Implemented in PR #1596

@fgalan fgalan closed this as completed Dec 3, 2015
@fgalan fgalan modified the milestones: QATestPending, 0.27.0 Mar 10, 2016
@fgalan fgalan assigned iariasleon and unassigned fgalan Mar 10, 2016
@fgalan
Copy link
Member Author

fgalan commented Mar 10, 2016

QA Acceptance Test pending. Reopened and asigned to QATestPending milestone.

@fgalan fgalan reopened this Mar 10, 2016
@iariasleon
Copy link
Contributor

pending tests in alarm folder

@iariasleon
Copy link
Contributor

Pull Request with acceptance tests: #1927

@iariasleon
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants