mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
Use TelemetryProvider in Plugin::createComponents (#99737)
in order to avoid adding yet anther parameter to createComponents a Tracer interface is replaced with TelemetryProvider. this allows to get both Tracer and Metric (in the future) interfaces
This commit is contained in:
parent
05879651ff
commit
eca41871aa
61 changed files with 159 additions and 128 deletions
|
@ -22,7 +22,7 @@ import org.elasticsearch.indices.IndicesService;
|
|||
import org.elasticsearch.plugins.Plugin;
|
||||
import org.elasticsearch.repositories.RepositoriesService;
|
||||
import org.elasticsearch.script.ScriptService;
|
||||
import org.elasticsearch.telemetry.tracing.Tracer;
|
||||
import org.elasticsearch.telemetry.TelemetryProvider;
|
||||
import org.elasticsearch.threadpool.ThreadPool;
|
||||
import org.elasticsearch.watcher.ResourceWatcherService;
|
||||
import org.elasticsearch.xcontent.NamedXContentRegistry;
|
||||
|
@ -76,7 +76,7 @@ public final class RuntimeFieldsCommonPlugin extends Plugin {
|
|||
NamedWriteableRegistry namedWriteableRegistry,
|
||||
IndexNameExpressionResolver indexNameExpressionResolver,
|
||||
Supplier<RepositoriesService> repositoriesServiceSupplier,
|
||||
Tracer tracer,
|
||||
TelemetryProvider telemetryProvider,
|
||||
AllocationService allocationService,
|
||||
IndicesService indicesService
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue