Skip to content

Instantly share code, notes, and snippets.

@odrianoaliveira
Created May 30, 2018 14:15
Show Gist options
  • Save odrianoaliveira/08fdf582685ec8d909675fd13f19be16 to your computer and use it in GitHub Desktop.
Save odrianoaliveira/08fdf582685ec8d909675fd13f19be16 to your computer and use it in GitHub Desktop.
Spring Boot - Configuring sleuth with others binders
# Spring
spring:
cloud:
stream:
default:
contentType: application/json
bindings:
input:
destination: pollerIn-process
group: group
durableSubscription: true
binder: chat
output:
destination: pollerOut-process
binder: chat
jackson:
default-property-inclusion: non_null
# date-format: com.fasterxml.jackson.databind.util.ISO8601DateFormat
serialization:
WRITE_DATES_AS_TIMESTAMPS: false
WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS: false
WRITE_EMPTY_JSON_ARRAYS: false
rabbitmq:
addresses: ${RABBIT_ADDRESSES:dighx15.interno}
sleuth.sampler.percentage: 0.2
cloud.stream:
bindings:
sleuth:
binder: zipkin
destination: zipkin
binders:
zipkin:
type: rabbit
environment:
spring.rabbitmq.addresses: ${ZIPKIN_RABBIT_ADDRESSES:dighx15.interno}
chat:
type: rabbit
environment:
spring.rabbitmq.addresses: ${CHAT_RABBIT_ADDRESSES:amqp://dighx15.interno/chat}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment