Rename misnamed setSslContext method (#5425)
This commit is contained in:
parent
951c46e92f
commit
a91995e5af
|
|
@ -100,10 +100,10 @@ public final class OtlpHttpLogRecordExporterBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the "bring-your-own" SSLContext. Users should call this _or_ set raw certificate bytes,
|
* Sets the "bring-your-own" SSLContext for use with TLS. Users should call this _or_ set raw
|
||||||
* but not both.
|
* certificate bytes, but not both.
|
||||||
*/
|
*/
|
||||||
public OtlpHttpLogRecordExporterBuilder setSslSocketFactory(
|
public OtlpHttpLogRecordExporterBuilder setSslContext(
|
||||||
SSLContext sslContext, X509TrustManager trustManager) {
|
SSLContext sslContext, X509TrustManager trustManager) {
|
||||||
delegate.setSslContext(sslContext, trustManager);
|
delegate.setSslContext(sslContext, trustManager);
|
||||||
return this;
|
return this;
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ class OtlpHttpLogRecordExporterTest
|
||||||
@Override
|
@Override
|
||||||
public TelemetryExporterBuilder<LogRecordData> setSslContext(
|
public TelemetryExporterBuilder<LogRecordData> setSslContext(
|
||||||
SSLContext ssLContext, X509TrustManager trustManager) {
|
SSLContext ssLContext, X509TrustManager trustManager) {
|
||||||
builder.setSslSocketFactory(ssLContext, trustManager);
|
builder.setSslContext(ssLContext, trustManager);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue