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
1 change: 1 addition & 0 deletions .github/workflows/push_rockspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
-e "s/branch = '.\+'/tag = '${GIT_TAG}'/g" \
-e "s/version = '.\+'/version = '${GIT_TAG}-1'/g" \
${{ env.ROCK_NAME }}-scm-1.rockspec > ${{ env.ROCK_NAME }}-${GIT_TAG}-1.rockspec
sed -i "s/local VERSION = 'scm-1'/local VERSION = '"${GIT_TAG}"-1'/g" metrics/init.lua

- uses: tarantool/rocks.tarantool.org/github-action@master
with:
Expand Down
3 changes: 3 additions & 0 deletions metrics/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ local Gauge = require('metrics.collectors.gauge')
local Histogram = require('metrics.collectors.histogram')
local Summary = require('metrics.collectors.summary')

local VERSION = 'scm-1'

local registry = rawget(_G, '__metrics_registry')
if not registry then
registry = Registry.new()
Expand Down Expand Up @@ -137,4 +139,5 @@ return {
end,
http_middleware = require('metrics.http_middleware'),
collect = collect,
VERSION = VERSION,
}