Skip to content

Instantly share code, notes, and snippets.

[Topic("pubsub", "dapreventhub")]
[HttpPost("/receiver")]
public async Task<IActionResult> Subscriber(WeatherChange weatherChange)
{
_logger.LogInformation("Received Weather: {@WeatherChange}", weatherChange);
return Ok();
}
@kshitijcode
kshitijcode / daprlogsSubscriberPostServiceApp
Created July 7, 2021 12:35
Dapr logs after the Subscriber service comes up
✅ You're up and running! Dapr logs will appear here.
INFO[1851] application discovered on port 5200 app_id=subscriber-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[1851] application configuration loaded app_id=subscriber-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[1851] actor runtime started. actor idle timeout: 1h0m0s. actor scan interval: 30s app_id=subscriber-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime.actor type=log ver=1.2.2
INFO[1851] app is subscribed to the following topics: [dapreventhub] through pubsub=pubsub app_id=subscriber-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[1851] placement tables updated, version: 0 app_id=subscriber-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime.actor.internal.placement type=log ver=1.2.2
INFO[1856] dapr initialized. Status: Running. Init Elapsed 1.856553631e+06ms app_id=su
@kshitijcode
kshitijcode / pulisherServiceReceiveEvent
Created July 8, 2021 03:09
Dapr Subscriber Service Receives Event
DaprAdventures.SubscriberService.Controllers.WeatherForecastController: Information: Received Weather: DaprAdventures.SubscriberService.Models.WeatherChange
info: DaprAdventures.SubscriberService.Controllers.WeatherForecastController[0]
Received Weather: DaprAdventures.SubscriberService.Models.WeatherChange
DaprAdventures.SubscriberService.Controllers.WeatherForecastController: Information: Received Weather: DaprAdventures.SubscriberService.Models.WeatherChange
info: DaprAdventures.SubscriberService.Controllers.WeatherForecastController[0]
Received Weather: DaprAdventures.SubscriberService.Models.WeatherChange
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: mongo
spec:
type: state.mongodb
version: v1
metadata:
- name: host
secretKeyRef:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: mongo
spec:
type: state.mongodb
version: v1
metadata:
- name: host
secretKeyRef:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: envvar-secret-store
namespace: default
spec:
type: secretstores.local.env
version: v1
ℹ️ Starting Dapr with id savestate-service. HTTP Port: 5480. gRPC Port: 5401
INFO[0000] starting Dapr Runtime -- version 1.2.2 -- commit 8aabc2c app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[0000] log level set to: debug app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[0000] metrics server started on :54815/ app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.metrics type=log ver=1.2.2
INFO[0000] standalone mode configured app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[0000] app id: savestate-service app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[0000] mTLS is disabled. Skipping certificate request and tls validation app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runt
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: mongo
spec:
type: state.mongodb
version: v1
metadata:
- name: host
secretKeyRef:
DEBU[0000] found component. name: mongo, type: state.mongodb/v1 app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
DEBU[0000] loading component. name: envvar-secret-store, type: secretstores.local.env/v1 app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[0000] component loaded. name: envvar-secret-store, type: secretstores.local.env/v1 app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
DEBU[0000] loading component. name: mongo, type: state.mongodb/v1 app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[0000] waiting for all outstanding components to be processed app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=log ver=1.2.2
INFO[0000] component loaded. name: mongo, type: state.mongodb/v1 app_id=savestate-service instance=Kshitijs-MacBook-Pro.local scope=dapr.runtime type=