Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

postgres-channel-observation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Tracing Over PostgreSQL Message Channel

This sample demonstrates a PostgresSubscribableChannel and how an Observation is propagated from producer to consumer.

To propagate an observation over this channel, there is enough to have it enabled on this channel and on its subscriber:

spring.integration.management.observation-patterns=postgresChannel,postgresHandler

It uses Spring Boot Service Connections in the test to start Testcontainers for PostgreSQL DB. The TestSpanHandler from the io.micrometer:micrometer-tracing-integration-test is used to verify the tracing in the application. And also the test checks for the common traceId in the CapturedOutput, which is logged by the postgresHandler @ServiceActivator.

See Spring Integration JDBC module for more information.