Skip to content

Commit df56605

Browse files
VillePihlavaoptionsome
authored andcommitted
Add @timingData to planConnection.
1 parent 35d17c8 commit df56605

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • application/src/main/resources/org/opentripplanner/apis/gtfs

application/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ directive @specifiedBy(
3939
url: String!
4040
) on SCALAR
4141

42+
"Add timing data to prometheus, if Actuator API is enabled"
43+
directive @timingData on FIELD_DEFINITION
44+
4245
"A fare product (a ticket) to be bought by a passenger"
4346
interface FareProduct {
4447
"Identifier for the fare product."
@@ -1735,7 +1738,7 @@ type QueryType {
17351738
searchWindow: Duration,
17361739
"The list of points the itinerary is required to pass through."
17371740
via: [PlanViaLocationInput!]
1738-
): PlanConnection @async
1741+
): PlanConnection @async @timingData
17391742
"Get a single rental vehicle based on its ID, i.e. value of field `vehicleId`"
17401743
rentalVehicle(id: String!): RentalVehicle
17411744
"Get all rental vehicles"

0 commit comments

Comments
 (0)