Skip to content

Commit f193b6b

Browse files
authored
improved javadoc (#2239)
1 parent e7ea3c8 commit f193b6b

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

core/src/main/java/com/predic8/membrane/core/interceptor/oauth2client/OAuth2Resource2Interceptor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
/**
4545
* @description Allows only authorized HTTP requests to pass through. Unauthorized requests get a redirect to the
4646
* authorization server as response.
47+
*
48+
* This interceptor does Session Management and can thereby translate Session IDs to OAuth2/OIDC Access Tokens.
49+
*
50+
* Beyond regular OIDC-compliant authorization servers, this interceptor can also be used with Azure B2C.
4751
* @topic 3. Security and Validation
4852
*/
4953
@MCElement(name = "oauth2Resource2")

core/src/main/java/com/predic8/membrane/core/interceptor/opentelemetry/OpenTelemetryInterceptor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
import static io.opentelemetry.api.trace.StatusCode.OK;
5252
import static io.opentelemetry.context.Context.current;
5353

54+
/**
55+
* @description Creates an OpenTelemetry span for each HTTP request passing through. Sends the tracing data to the
56+
* speficied OpenTelemetry collector.
57+
*
58+
* See also examples/monitoring-tracing/opentelemetry for a demo, including screenshots.
59+
* @topic 4. Monitoring, Logging and Statistics
60+
*/
5461
@MCElement(name = "openTelemetry")
5562
public class OpenTelemetryInterceptor extends AbstractInterceptor {
5663
private double sampleRate = 1.0;

core/src/main/java/com/predic8/membrane/core/interceptor/prometheus/PrometheusInterceptor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
import static com.predic8.membrane.core.openapi.util.Utils.joinByComma;
4141
import static java.util.stream.Collectors.toList;
4242

43+
/**
44+
* @description Exposes some of Membrane's internal metrics in the Prometheus format.
45+
*
46+
* See also examples/monitoring-tracing/prometheus for a demo, including a screenshot.
47+
* @topic 4. Monitoring, Logging and Statistics
48+
*/
4349
@MCElement(name = "prometheus")
4450
public class PrometheusInterceptor extends AbstractInterceptor {
4551

0 commit comments

Comments
 (0)