Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Only index spans if field mapping was created by stagemonitor #347

Closed
trampi opened this issue Nov 9, 2017 · 0 comments
Closed

Only index spans if field mapping was created by stagemonitor #347

trampi opened this issue Nov 9, 2017 · 0 comments

Comments

@trampi
Copy link
Member

trampi commented Nov 9, 2017

If the monitored app is started before elasticsearch is available, the stagemonitor span index pattern is not created, as the index pattern is only created on application startup, see the corresponding code in ElasticsearchTracingPlugin.java

A solution would be to assure the creation of the index pattern before signalising that elasticsearch is available. See ElasticsearchClient.java

If the index pattern is not created correctly, it can lead to errors like this:
stagemonitor/stagemonitor-kibana#4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants