This Tracing SQL Store Component contains a Trace DAO implementation that can be used by the trace engine to store trace messages in a database.
The configuration options are found below in this document.
Requirements
This component persists data in a database, that must be provided. See platform support for the supported databases.
Installation
In order to use this component, the trace-sql-store profile must be active. More information on how to configure the application using Spring Profiles can be found here : Component configuration with Spring Profiles.
In order to use this component, make sure to have the BlueriqComponentTracing.dll in the /bin directory of your .NET webapp installation
Configuration
Database
Scripts to create the required database content are provided for the following databases:
The Trace SQL Store component is using the trace datasource to store data.The trace datasource can be configured using JDBC or JNDI.
Using JDBC datasource: This can be configured in the application-externaldatasources.properties file. When configuring external datasources, the externaldatasourcesprofile should be enabled.
Using JNDI datasource : this can be configured in the application-jndidatasources.properties file When configuring JNDI datasources the jndidatasourcesprofile should be enabled.
An additional properties file named tracedao.hibernate.properties can be used to set the Hibernate properties.
Error rendering macro 'excerpt-include'
No link could be created for '_HibernateProperties'.
Configuring the database connection for the Tracing SQL store component in .Net is done by adding a connection configuration to the Web.config file.
The Tracing SQL store component looks for a database connection named "TraceDao" so make sure that this name is used in order to configure the Trace DAO properly.
All necessary DLL files on which the Tracing SQL store component depends can be found in the Plugins/TraceDao/Lib directory of the webapp ZIP file.
Performance
The performance impact of the trace DAO is minimal when used normally: to write trace messages to the database.
It is also possible to use the TraceDao to query the trace engine database, like the timeline container does. The TraceDao offers good performance as long as the resultset is limited. For large scale analysis, when summaries or aggregates are desired, the TraceDao is not recommended because it is primarily designed to return a list of trace entries. For these scenarios it is recommended to use SQL (or HQL) to query the database.