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

Improve logging #131

Merged
merged 4 commits into from
Oct 30, 2023
Merged

Improve logging #131

merged 4 commits into from
Oct 30, 2023

Conversation

slinkydeveloper
Copy link
Contributor

No description provided.

@slinkydeveloper
Copy link
Contributor Author

Example output:

2023-10-27 14:46:57 INFO   dev.restate.sdk.http.vertx.RestateHttpEndpointBuilder - Restate HTTP Endpoint server started on port 9080
2023-10-27 14:47:04 INFO   dev.restate.sdk.core.impl.RestateGrpcServer - Replying to service discovery request with services [greeter.Greeter]
2023-10-27 14:47:44 INFO   dev.restate.sdk.core.impl.RestateGrpcServer - Replying to service discovery request with services [greeter.Greeter]
2023-10-27 14:48:15 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.http.vertx.RequestHttpServerHandler - Handling request to greeter.Greeter/Greet
2023-10-27 14:48:15 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.RestateGrpcServer - Start processing call to greeter.Greeter/Greet
2023-10-27 14:48:15 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=WAITING_START, id=x3s6u2-HrNkAYtxLZjucl2xWkGD_v7zHw} to REPLAYING
2023-10-27 14:48:15 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLZjucl2xWkGD_v7zHw] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=REPLAYING, id=x3s6u2-HrNkAYtxLZjucl2xWkGD_v7zHw} to PROCESSING
2023-10-27 14:48:15 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLZjucl2xWkGD_v7zHw] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=PROCESSING, id=x3s6u2-HrNkAYtxLZjucl2xWkGD_v7zHw} to CLOSED
2023-10-27 14:48:15 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLZjucl2xWkGD_v7zHw] dev.restate.sdk.core.impl.InvocationStateMachine - Closing state machine
2023-10-27 14:48:33 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.http.vertx.RequestHttpServerHandler - Handling request to greeter.Greeter/Greet
2023-10-27 14:48:33 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.RestateGrpcServer - Start processing call to greeter.Greeter/Greet
2023-10-27 14:48:33 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=WAITING_START, id=x3s6u2-HrNkAYtxLeA1ekqwA83gI4Ynuw} to REPLAYING
2023-10-27 14:48:33 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLeA1ekqwA83gI4Ynuw] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=REPLAYING, id=x3s6u2-HrNkAYtxLeA1ekqwA83gI4Ynuw} to PROCESSING
2023-10-27 14:48:33 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLeA1ekqwA83gI4Ynuw] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=PROCESSING, id=x3s6u2-HrNkAYtxLeA1ekqwA83gI4Ynuw} to CLOSED
2023-10-27 14:48:33 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLeA1ekqwA83gI4Ynuw] dev.restate.sdk.core.impl.InvocationStateMachine - Closing state machine
2023-10-27 14:48:41 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.http.vertx.RequestHttpServerHandler - Handling request to greeter.Greeter/Greet
2023-10-27 14:48:41 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.RestateGrpcServer - Start processing call to greeter.Greeter/Greet
2023-10-27 14:48:41 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=WAITING_START, id=x3s6u2-HrNkAYtxLf88eE60knADhEu4_w} to REPLAYING
2023-10-27 14:48:41 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLf88eE60knADhEu4_w] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=REPLAYING, id=x3s6u2-HrNkAYtxLf88eE60knADhEu4_w} to PROCESSING
2023-10-27 14:48:41 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLf88eE60knADhEu4_w] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=PROCESSING, id=x3s6u2-HrNkAYtxLf88eE60knADhEu4_w} to CLOSED
2023-10-27 14:48:41 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLf88eE60knADhEu4_w] dev.restate.sdk.core.impl.InvocationStateMachine - Closing state machine
2023-10-27 14:48:43 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.http.vertx.RequestHttpServerHandler - Handling request to greeter.Greeter/Greet
2023-10-27 14:48:43 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.RestateGrpcServer - Start processing call to greeter.Greeter/Greet
2023-10-27 14:48:43 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=WAITING_START, id=x3s6u2-HrNkAYtxLgVvd_uPcBq4xvWB-g} to REPLAYING
2023-10-27 14:48:43 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgVvd_uPcBq4xvWB-g] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=REPLAYING, id=x3s6u2-HrNkAYtxLgVvd_uPcBq4xvWB-g} to PROCESSING
2023-10-27 14:48:43 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgVvd_uPcBq4xvWB-g] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=PROCESSING, id=x3s6u2-HrNkAYtxLgVvd_uPcBq4xvWB-g} to CLOSED
2023-10-27 14:48:43 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgVvd_uPcBq4xvWB-g] dev.restate.sdk.core.impl.InvocationStateMachine - Closing state machine
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.http.vertx.RequestHttpServerHandler - Handling request to greeter.Greeter/Greet
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.RestateGrpcServer - Start processing call to greeter.Greeter/Greet
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=WAITING_START, id=x3s6u2-HrNkAYtxLgivfhGKR26hDnvFaQ} to REPLAYING
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgivfhGKR26hDnvFaQ] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=REPLAYING, id=x3s6u2-HrNkAYtxLgivfhGKR26hDnvFaQ} to PROCESSING
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgivfhGKR26hDnvFaQ] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=PROCESSING, id=x3s6u2-HrNkAYtxLgivfhGKR26hDnvFaQ} to CLOSED
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgivfhGKR26hDnvFaQ] dev.restate.sdk.core.impl.InvocationStateMachine - Closing state machine
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.http.vertx.RequestHttpServerHandler - Handling request to greeter.Greeter/Greet
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.RestateGrpcServer - Start processing call to greeter.Greeter/Greet
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=WAITING_START, id=x3s6u2-HrNkAYtxLgupf-S_MLGFH7ERuQ} to REPLAYING
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgupf-S_MLGFH7ERuQ] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=REPLAYING, id=x3s6u2-HrNkAYtxLgupf-S_MLGFH7ERuQ} to PROCESSING
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgupf-S_MLGFH7ERuQ] dev.restate.sdk.core.impl.InvocationStateMachine - Transitioning InvocationStateMachine{serviceName='greeter.Greeter', state=PROCESSING, id=x3s6u2-HrNkAYtxLgupf-S_MLGFH7ERuQ} to CLOSED
2023-10-27 14:48:44 DEBUG [greeter.Greeter/Greet][x3s6u2-HrNkAYtxLgupf-S_MLGFH7ERuQ] dev.restate.sdk.core.impl.InvocationStateMachine - Closing state machine

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2023

Unit Test Results

426 tests  ±0   416 ✔️ ±0   18s ⏱️ -1s
    7 suites ±0     10 💤 ±0 
    7 files   ±0       0 ±0 

Results for commit 2df218e. ± Comparison against base commit 26105f1.

♻️ This comment has been updated with latest results.

…t restateServiceMethod and restateInvocationId in log4j2 context. These two variables can then be used in the log pattern, in the json appender, etc.
@slinkydeveloper slinkydeveloper merged commit 04b9093 into main Oct 30, 2023
3 checks passed
@slinkydeveloper slinkydeveloper deleted the improve-logging branch October 30, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant