You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
@@ -22,7 +22,7 @@ info:
22
22
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
You can setup your SDK to emit debug logs for SDK requests and responses.
1565
1566
1566
1567
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
1568
+
1567
1569
```java
1568
1570
SDK.builder()
1569
1571
.enableHTTPDebugLogging(true)
@@ -1581,10 +1583,11 @@ Response body:
1581
1583
"token": "global"
1582
1584
}
1583
1585
```
1584
-
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
1586
+
__WARNING__: This logging should only be used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
1585
1587
1586
1588
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
1587
1589
1590
+
1588
1591
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
Copy file name to clipboardExpand all lines: spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/GleanApiClientAutoConfig.java
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,6 @@ public RetryConfig retryConfig(GleanApiClientAutoConfigProperties properties) {
72
72
// Default retry config for other strategies
73
73
returnRetryConfig.builder().build();
74
74
}
75
-
76
75
/**
77
76
* Creates a {@code Consumer<String>} bean for HTTP debug logging if none exists.
78
77
* This logger is used by the SpeakeasyHTTPClient for debug output when debug logging is enabled.
@@ -85,7 +84,6 @@ public RetryConfig retryConfig(GleanApiClientAutoConfigProperties properties) {
0 commit comments