Skip to content

Commit

Permalink
[Backport 2.11] Add tracer to Transport (#3469)
Browse files Browse the repository at this point in the history
Backport bfba97a from #3463.

Signed-off-by: Gagan Juneja <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gagan Juneja <[email protected]>
  • Loading branch information
3 people authored Oct 5, 2023
1 parent fc2b875 commit 8b6f2d7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,8 @@ public Map<String, Supplier<Transport>> getTransports(
PageCacheRecycler pageCacheRecycler,
CircuitBreakerService circuitBreakerService,
NamedWriteableRegistry namedWriteableRegistry,
NetworkService networkService
NetworkService networkService,
Tracer tracer
) {
Map<String, Supplier<Transport>> transports = new HashMap<String, Supplier<Transport>>();

Expand All @@ -819,7 +820,8 @@ public Map<String, Supplier<Transport>> getTransports(
pageCacheRecycler,
circuitBreakerService,
namedWriteableRegistry,
networkService
networkService,
tracer
);
}

Expand All @@ -837,7 +839,8 @@ public Map<String, Supplier<Transport>> getTransports(
sks,
evaluateSslExceptionHandler(),
sharedGroupFactory,
SSLConfig
SSLConfig,
tracer
)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ public Map<String, Supplier<Transport>> getTransports(
PageCacheRecycler pageCacheRecycler,
CircuitBreakerService circuitBreakerService,
NamedWriteableRegistry namedWriteableRegistry,
NetworkService networkService
NetworkService networkService,
Tracer tracer
) {

Map<String, Supplier<Transport>> transports = new HashMap<String, Supplier<Transport>>();
Expand All @@ -333,7 +334,8 @@ public Map<String, Supplier<Transport>> getTransports(
sks,
NOOP_SSL_EXCEPTION_HANDLER,
sharedGroupFactory,
SSLConfig
SSLConfig,
tracer
)
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import org.opensearch.security.ssl.util.SSLConfigConstants;
import org.opensearch.security.ssl.util.SSLConnectionTestResult;
import org.opensearch.security.ssl.util.SSLConnectionTestUtil;
import org.opensearch.telemetry.tracing.Tracer;
import org.opensearch.threadpool.ThreadPool;
import org.opensearch.transport.SharedGroupFactory;
import org.opensearch.transport.TcpChannel;
Expand All @@ -82,7 +83,8 @@ public SecuritySSLNettyTransport(
final SecurityKeyStore ossks,
final SslExceptionHandler errorHandler,
SharedGroupFactory sharedGroupFactory,
final SSLConfig SSLConfig
final SSLConfig SSLConfig,
final Tracer tracer
) {
super(
settings,
Expand All @@ -92,7 +94,8 @@ public SecuritySSLNettyTransport(
pageCacheRecycler,
namedWriteableRegistry,
circuitBreakerService,
sharedGroupFactory
sharedGroupFactory,
tracer
);

this.ossks = ossks;
Expand Down

0 comments on commit 8b6f2d7

Please sign in to comment.