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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/3_release_tracker.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ assignees: tomkerkhove,jorturfer

This issue template is used to track the rollout of a new KEDA HTTP add-on version.

For the full release process, we recommend reading [this document]([https://github.com/kedacore/keda/blob/main/RELEASE-PROCESS.md](https://github.com/kedacore/http-add-on/blob/main/RELEASE-PROCESS.md)).
For the full release process, we recommend reading [this document](https://github.com/kedacore/http-add-on/blob/main/RELEASE-PROCESS.md).

## Required items

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _Provide a description of what has been changed_
- [ ] Changelog has been updated and is aligned with our [changelog requirements](https://github.com/kedacore/keda/blob/main/CONTRIBUTING.md#Changelog)
- [ ] Any necessary documentation is added, such as:
- [`README.md`](../README.md)
- [The `docs/` directory](./docs)
- [The `docs/` directory](../docs)
- [The docs repo](https://github.com/kedacore/keda-docs)

Fixes #
2 changes: 1 addition & 1 deletion .github/workflows/linkinator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: lycheeverse/lychee-action@v2
with:
args: >
--base-url "."
--root-dir "${{ github.workspace }}"
--cache --max-cache-age 1d
--max-concurrency 6
--max-retries 6
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This changelog keeps track of work items that have been completed and are ready

### Improvements

- **General**: TODO ([#TODO](https://github.com/kedacore/http-add-on/issues/TODO))
- **General**: Make interceptor request logging optional ([#1375](https://github.com/kedacore/http-add-on/pull/1375))

### Fixes

Expand Down
4 changes: 4 additions & 0 deletions docs/operate.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@ Optional variables
`OTEL_EXPORTER_OTLP_TRACES_INSECURE` - To send traces to the tracing via HTTP rather than HTTPS (`false` by default)
`OTEL_EXPORTER_OTLP_TRACES_TIMEOUT` - The batcher timeout in seconds to send batch of data points (`5` by default)

### Configuring interceptor proxy request logging

The interceptor proxy can log incoming requests for debugging and monitoring purposes. Request logging can be enabled by setting the `KEDA_HTTP_LOG_REQUESTS` environment variable to `true` on the interceptor deployment (`false` by default).

### Configuring Service Failover
2 changes: 2 additions & 0 deletions interceptor/config/serving.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ type Serving struct {
ProfilingAddr string `envconfig:"PROFILING_BIND_ADDRESS" default:""`
// EnableColdStartHeader enables/disables the X-KEDA-HTTP-Cold-Start response header
EnableColdStartHeader bool `envconfig:"KEDA_HTTP_ENABLE_COLD_START_HEADER" default:"true"`
// LogRequests enables/disables logging of incoming requests
LogRequests bool `envconfig:"KEDA_HTTP_LOG_REQUESTS" default:"false"`
}

// Parse parses standard configs using envconfig and returns a pointer to the
Expand Down
7 changes: 3 additions & 4 deletions interceptor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,9 @@ func runProxyServer(
rootHandler = otelhttp.NewHandler(rootHandler, "keda-http-interceptor")
}

rootHandler = middleware.NewLogging(
logger,
rootHandler,
)
if serving.LogRequests {
rootHandler = middleware.NewLogging(logger, rootHandler)
}

rootHandler = middleware.NewMetrics(
rootHandler,
Expand Down
Loading