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

Co-relating logs #226

Open
arnulfojr opened this issue Jan 15, 2020 · 0 comments
Open

Co-relating logs #226

arnulfojr opened this issue Jan 15, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed investigating

Comments

@arnulfojr
Copy link

arnulfojr commented Jan 15, 2020

Hi!

At the moment there's no way of co-relating log entries outputted from the handler.
An invocation (without customer log calls would look like:


2020-01-14T19:14:17.627+01:00 | Record Handler Progress with Request Id <RequestId> and Request: {RecordHandlerProgressRequest(BearerToken=<token> OperationStatus=IN_PROGRESS, CurrentOperationStatus=PENDING, ClientRequestToken=<token>)}
2020-01-14T19:14:18.283+01:00 | [CREATE] invoking handler...
2020-01-14T19:14:20.304+01:00 | [CREATE] handler invoked
2020-01-14T19:14:20.338+01:00 | Handler returned IN_PROGRESS
2020-01-14T19:14:20.474+01:00 | Record Handler Progress with Request Id <RequestId2> and Request: {RecordHandlerProgressRequest(BearerToken=<token>, OperationStatus=IN_PROGRESS, CurrentOperationStatus=IN_PROGRESS, ResourceModel={"attr": 123}, ClientRequestToken=<token>)}
2020-01-14T19:14:20.504+01:00 | Scheduling re-invoke locally after 1 seconds, with Context {RequestContext(invocation=1, callbackContext=CallbackContext(var1=123, var2=321), cloudWatchEventsRuleName=null, cloudWatchEventsTargetId=null)}
2020-01-14T19:14:21.541+01:00 | [CREATE] invoking handler...
2020-01-14T19:14:21.641+01:00 | [CREATE] handler invoked
2020-01-14T19:14:21.667+01:00 | Handler returned SUCCESS

The problem at the moment is that we do not have the possibility to co-relate those log entries easily through search.
Is it possible to maybe have the requestId as a prefix to all log entries? or some sort of correlational token like a transactionID?

Thanks!

@ammokhov ammokhov added enhancement New feature or request help wanted Extra attention is needed investigating labels Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed investigating
Projects
None yet
Development

No branches or pull requests

2 participants