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 pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>25</maven.compiler.release>
<common.version>3.1.0</common.version>
<common.version>3.2.0</common.version>
<testcontainers.version>1.21.4</testcontainers.version>
<spotlessMavenPlugin.version>3.10.3</spotlessMavenPlugin.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public void handleMessage(Message received) {

if (tripUpdateIsValid) {
long eventTimeMs = received.getEventTime();
sendTripUpdate(pair, eventTimeMs);
sendTripUpdate(pair, eventTimeMs, received);
}
} else {
log.warn("Failed to process TripUpdate from source schema {}", schema.schema.toString());
Expand Down Expand Up @@ -146,7 +146,7 @@ public void handleMessage(Message received) {
}

private void sendTripUpdate(final AbstractMessageProcessor.TripUpdateWithId tuIdPair,
final long pulsarEventTimestamp) {
final long pulsarEventTimestamp, final Message received) {
messageStats.incrementMessagesSent();

final String tripId = tuIdPair.getTripId();
Expand All @@ -163,9 +163,7 @@ private void sendTripUpdate(final AbstractMessageProcessor.TripUpdateWithId tuId
tripId, tripUpdate.getStopTimeUpdateCount(),
tripUpdate.getTrip().getScheduleRelationship()));

if (pulsarEventTimestamp > 0) {
PipelineMetrics.observeLatency(PIPELINE, (System.currentTimeMillis() - pulsarEventTimestamp) / 1000.0);
}
PipelineMetrics.observeLatencyFromSource(PIPELINE, received);
});
}
}
Loading