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,
|
||||
* but not both.
|
||||
* Sets the "bring-your-own" SSLContext for use with TLS. Users should call this _or_ set raw
|
||||
* certificate bytes, but not both.
|
||||
*/
|
||||
public OtlpHttpLogRecordExporterBuilder setSslSocketFactory(
|
||||
public OtlpHttpLogRecordExporterBuilder setSslContext(
|
||||
SSLContext sslContext, X509TrustManager trustManager) {
|
||||
delegate.setSslContext(sslContext, trustManager);
|
||||
return this;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class OtlpHttpLogRecordExporterTest
|
|||
@Override
|
||||
public TelemetryExporterBuilder<LogRecordData> setSslContext(
|
||||
SSLContext ssLContext, X509TrustManager trustManager) {
|
||||
builder.setSslSocketFactory(ssLContext, trustManager);
|
||||
builder.setSslContext(ssLContext, trustManager);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue