Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
/**
* @description Allows only authorized HTTP requests to pass through. Unauthorized requests get a redirect to the
* authorization server as response.
*
* This interceptor does Session Management and can thereby translate Session IDs to OAuth2/OIDC Access Tokens.
*
* Beyond regular OIDC-compliant authorization servers, this interceptor can also be used with Azure B2C.
* @topic 3. Security and Validation
*/
@MCElement(name = "oauth2Resource2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
import static io.opentelemetry.api.trace.StatusCode.OK;
import static io.opentelemetry.context.Context.current;

/**
* @description Creates an OpenTelemetry span for each HTTP request passing through. Sends the tracing data to the
* speficied OpenTelemetry collector.
*
* See also examples/monitoring-tracing/opentelemetry for a demo, including screenshots.
* @topic 4. Monitoring, Logging and Statistics
*/
@MCElement(name = "openTelemetry")
public class OpenTelemetryInterceptor extends AbstractInterceptor {
private double sampleRate = 1.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
import static com.predic8.membrane.core.openapi.util.Utils.joinByComma;
import static java.util.stream.Collectors.toList;

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

Expand Down