Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #17 from osrs-tracker/bugfix/better-url-normalizing
Browse files Browse the repository at this point in the history
Better url normalizing for Prometheus
  • Loading branch information
FreekMencke authored Jun 8, 2019
2 parents adc0fe8 + 8f9f2a5 commit c96bad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "osrs-tracker-api",
"version": "0.3.1",
"version": "0.3.2",
"private": true,
"author": "Freek Mencke",
"homepage": "https://twitter.com/FreekMencke",
Expand Down
5 changes: 5 additions & 0 deletions src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export class App {
customLabels: { app: 'osrs-tracker-api' },
includeMethod: true,
includePath: true,
normalizePath: [
['^/player/.*', '/player/#username'],
['^/xp/.*/.*', '/xp/#username/#period'],
['^/xp/[^/]*', '/xp/#username'],
],
})
);
}
Expand Down

0 comments on commit c96bad7

Please sign in to comment.