Skip to content

Commit 6af31f5

Browse files
Module Execution: Add Property to Require Account Config (#3525)
1 parent 84b3a70 commit 6af31f5

46 files changed

Lines changed: 552 additions & 307 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/metrics.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,15 @@ Following metrics are collected and submitted if account is configured with `det
133133
- `analytics.<reporter-name>.(auction|amp|video|cookie_sync|event|setuid).timeout` - number of event requests, failed with timeout cause
134134
- `analytics.<reporter-name>.(auction|amp|video|cookie_sync|event|setuid).err` - number of event requests, failed with errors
135135
- `analytics.<reporter-name>.(auction|amp|video|cookie_sync|event|setuid).badinput` - number of event requests, rejected with bad input cause
136+
137+
## Modules metrics
138+
- `modules.module.<module>.stage.<stage>.hook.<hook>.call` - number of times the hook is called
139+
- `modules.module.<module>.stage.<stage>.hook.<hook>.duration` - timer tracking the called hook execution time
140+
- `modules.module.<module>.stage.<stage>.hook.<hook>.success.(noop|update|reject|no-invocation)` - number of times the hook is called successfully with the action applied
141+
- `modules.module.<module>.stage.<stage>.hook.<hook>.(failure|timeout|execution-error)` - number of times the hook execution is failed
142+
143+
## Modules per-account metrics
144+
- `account.<account-id>.modules.module.<module>.call` - number of times the module is called
145+
- `account.<account-id>.modules.module.<module>.duration` - timer tracking the called module execution time
146+
- `account.<account-id>.modules.module.<module>.success.(noop|update|reject|no-invocation)` - number of times the module is called successfully with the action applied
147+
- `account.<account-id>.modules.module.<module>.failure` - number of times the module execution is failed

extra/modules/confiant-ad-quality/src/main/java/org/prebid/server/hooks/modules/com/confiant/adquality/v1/ConfiantAdQualityBidResponsesScanHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
import org.prebid.server.hooks.modules.com.confiant.adquality.core.BidsScanResult;
1919
import org.prebid.server.hooks.modules.com.confiant.adquality.core.BidsScanner;
2020
import org.prebid.server.hooks.modules.com.confiant.adquality.model.GroupByIssues;
21-
import org.prebid.server.hooks.modules.com.confiant.adquality.v1.model.InvocationResultImpl;
2221
import org.prebid.server.hooks.v1.InvocationAction;
2322
import org.prebid.server.hooks.v1.InvocationResult;
23+
import org.prebid.server.hooks.v1.InvocationResultImpl;
2424
import org.prebid.server.hooks.v1.InvocationStatus;
2525
import org.prebid.server.hooks.v1.auction.AuctionInvocationContext;
2626
import org.prebid.server.hooks.v1.bidder.AllProcessedBidResponsesHook;

extra/modules/confiant-ad-quality/src/main/java/org/prebid/server/hooks/modules/com/confiant/adquality/v1/model/InvocationResultImpl.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

extra/modules/fiftyone-devicedetection/src/main/java/org/prebid/server/hooks/modules/fiftyone/devicedetection/v1/hooks/FiftyOneDeviceDetectionEntrypointHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import org.prebid.server.hooks.modules.fiftyone.devicedetection.model.boundary.CollectedEvidence;
44
import org.prebid.server.hooks.modules.fiftyone.devicedetection.v1.model.ModuleContext;
5-
import org.prebid.server.hooks.modules.fiftyone.devicedetection.v1.model.InvocationResultImpl;
65
import org.prebid.server.hooks.v1.InvocationAction;
76
import org.prebid.server.hooks.v1.InvocationContext;
87
import org.prebid.server.hooks.v1.InvocationResult;
8+
import org.prebid.server.hooks.v1.InvocationResultImpl;
99
import org.prebid.server.hooks.v1.InvocationStatus;
1010
import org.prebid.server.hooks.v1.entrypoint.EntrypointHook;
1111
import org.prebid.server.hooks.v1.entrypoint.EntrypointPayload;

extra/modules/fiftyone-devicedetection/src/main/java/org/prebid/server/hooks/modules/fiftyone/devicedetection/v1/hooks/FiftyOneDeviceDetectionRawAuctionRequestHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
import org.prebid.server.hooks.modules.fiftyone.devicedetection.v1.core.EnrichmentResult;
1414
import org.prebid.server.hooks.modules.fiftyone.devicedetection.v1.core.SecureHeadersRetriever;
1515
import org.prebid.server.hooks.modules.fiftyone.devicedetection.v1.model.ModuleContext;
16-
import org.prebid.server.hooks.modules.fiftyone.devicedetection.v1.model.InvocationResultImpl;
1716
import org.prebid.server.hooks.v1.InvocationAction;
1817
import org.prebid.server.hooks.v1.InvocationResult;
18+
import org.prebid.server.hooks.v1.InvocationResultImpl;
1919
import org.prebid.server.hooks.v1.InvocationStatus;
2020
import org.prebid.server.hooks.v1.auction.AuctionInvocationContext;
2121
import org.prebid.server.hooks.v1.auction.AuctionRequestPayload;

extra/modules/fiftyone-devicedetection/src/main/java/org/prebid/server/hooks/modules/fiftyone/devicedetection/v1/model/InvocationResultImpl.java

Lines changed: 0 additions & 24 deletions
This file was deleted.

extra/modules/ortb2-blocking/src/main/java/org/prebid/server/hooks/modules/ortb2/blocking/v1/Ortb2BlockingBidderRequestHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import org.prebid.server.hooks.modules.ortb2.blocking.core.model.ExecutionResult;
1212
import org.prebid.server.hooks.modules.ortb2.blocking.model.ModuleContext;
1313
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.BidderRequestPayloadImpl;
14-
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.InvocationResultImpl;
1514
import org.prebid.server.hooks.v1.InvocationAction;
1615
import org.prebid.server.hooks.v1.InvocationResult;
16+
import org.prebid.server.hooks.v1.InvocationResultImpl;
1717
import org.prebid.server.hooks.v1.InvocationStatus;
1818
import org.prebid.server.hooks.v1.bidder.BidderInvocationContext;
1919
import org.prebid.server.hooks.v1.bidder.BidderRequestHook;

extra/modules/ortb2-blocking/src/main/java/org/prebid/server/hooks/modules/ortb2/blocking/v1/Ortb2BlockingRawBidderResponseHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
import org.prebid.server.hooks.modules.ortb2.blocking.core.model.ExecutionResult;
1414
import org.prebid.server.hooks.modules.ortb2.blocking.model.ModuleContext;
1515
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.BidderResponsePayloadImpl;
16-
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.InvocationResultImpl;
1716
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.analytics.ActivityImpl;
1817
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.analytics.AppliedToImpl;
1918
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.analytics.ResultImpl;
2019
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.analytics.TagsImpl;
2120
import org.prebid.server.hooks.v1.InvocationAction;
2221
import org.prebid.server.hooks.v1.InvocationResult;
22+
import org.prebid.server.hooks.v1.InvocationResultImpl;
2323
import org.prebid.server.hooks.v1.InvocationStatus;
2424
import org.prebid.server.hooks.v1.analytics.Result;
2525
import org.prebid.server.hooks.v1.analytics.Tags;

extra/modules/ortb2-blocking/src/main/java/org/prebid/server/hooks/modules/ortb2/blocking/v1/model/InvocationResultImpl.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

extra/modules/ortb2-blocking/src/test/java/org/prebid/server/hooks/modules/ortb2/blocking/v1/Ortb2BlockingBidderRequestHookTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import org.prebid.server.hooks.modules.ortb2.blocking.model.ModuleContext;
2929
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.BidderInvocationContextImpl;
3030
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.BidderRequestPayloadImpl;
31-
import org.prebid.server.hooks.modules.ortb2.blocking.v1.model.InvocationResultImpl;
3231
import org.prebid.server.hooks.v1.InvocationAction;
3332
import org.prebid.server.hooks.v1.InvocationResult;
33+
import org.prebid.server.hooks.v1.InvocationResultImpl;
3434
import org.prebid.server.hooks.v1.InvocationStatus;
3535
import org.prebid.server.hooks.v1.PayloadUpdate;
3636
import org.prebid.server.hooks.v1.bidder.BidderRequestPayload;

0 commit comments

Comments
 (0)