Skip to content

Commit

Permalink
feat: advanced access logs (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech authored Oct 3, 2024
1 parent 373b142 commit b4dc9ac
Show file tree
Hide file tree
Showing 27 changed files with 1,751 additions and 454 deletions.
10 changes: 5 additions & 5 deletions router-tests/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,17 +496,17 @@ func TestPrometheus(t *testing.T) {
TraceExporter: exporter,
MetricReader: metricReader,
PrometheusRegistry: promRegistry,
OtelResourceAttributes: []config.OtelResourceAttribute{
OtelResourceAttributes: []config.CustomStaticAttribute{
{
Key: "custom.resource",
Value: "value",
},
},
OtelAttributes: []config.OtelAttribute{
OtelAttributes: []config.CustomAttribute{
{
Key: "custom",
Default: "value_different",
ValueFrom: &config.OtelAttributeFromValue{
ValueFrom: &config.CustomDynamicAttribute{
RequestHeader: "x-custom-header",
},
},
Expand Down Expand Up @@ -1020,13 +1020,13 @@ func TestPrometheus(t *testing.T) {
TraceExporter: exporter,
MetricReader: metricReader,
PrometheusRegistry: promRegistry,
OtelResourceAttributes: []config.OtelResourceAttribute{
OtelResourceAttributes: []config.CustomStaticAttribute{
{
Key: "custom.resource",
Value: "value",
},
},
OtelAttributes: []config.OtelAttribute{
OtelAttributes: []config.CustomAttribute{
{
Key: "custom",
Default: "value",
Expand Down
Loading

0 comments on commit b4dc9ac

Please sign in to comment.