After adding the dependency, you must set the following configuration:
Yaml
ostara:
client:
agent-url: # The URL of the Agent installed in your environment
api-key: # The API key defined in the Agent, required if using SSL
application-name: # The name of the Application to be displayed in Ostara, if not set, defaults to spring.application.name
Properties
ostara.client.agent-url= // The URL of the Agent installed in your environment
ostara.client.api-key= // The API key defined in the Agent, required if using SSL
ostara.client.application-name= // The name of the Application to be displayed in Ostara, if not set, defaults to spring.application.name
Finally, add the @EnableOstaraClient annotation to any configuration bean:
@EnableOstaraClient
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}