Rename TracerPlugin to TelemetryPlugin (#99735)

with the support of metrics the TracerPlugin name is no longer adequate. Renaming this to TelemetryPlugin.
Also introducing TelemetryProvider interface. While it is only used in Node.java at the moment to fetch Tracer instance, it is intended to be used in Plugin::createComponents (to be done in separate commit due to
the broad scope of this method)
This will allow for plugins to get access to both Tracer and Metric interfaces
without the need to add yet another argument to createComponents

Also adding internal subpackage in module/apm so that it is more obvious
which packages are not exported
This commit is contained in:
Przemyslaw Gomulka 2023-09-22 13:35:36 +02:00 committed by GitHub
parent 343cc8047c
commit 0efa67821d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 94 additions and 35 deletions

View file

@ -383,6 +383,7 @@ module org.elasticsearch.server {
org.elasticsearch.serverless.constants,
org.elasticsearch.serverless.apifiltering;
exports org.elasticsearch.telemetry.tracing;
exports org.elasticsearch.telemetry;
provides java.util.spi.CalendarDataProvider with org.elasticsearch.common.time.IsoCalendarDataProvider;
provides org.elasticsearch.xcontent.ErrorOnUnknown with org.elasticsearch.common.xcontent.SuggestingErrorOnUnknown;