Rename misnamed setSslContext method (#5425)

This commit is contained in:
jack-berg 2023-05-05 09:02:48 -05:00 committed by GitHub
parent 951c46e92f
commit a91995e5af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}