Skip to content

Commit

Permalink
chore: deprecate chisels that use tracers
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Nov 27, 2023
1 parent 1d80af8 commit bca9a6f
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userspace/sysdig/chisels/flame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ end

-- Initialization callback
function on_init()
print("This chisel uses tracers and is deprecated.")
require ("os")
os.exit()

-- Request the fields needed for this chisel
for j = 0, MAX_DEPTH do
local fname = "span.tag[" .. j .. "]"
Expand Down
4 changes: 4 additions & 0 deletions userspace/sysdig/chisels/tracers_2_statsd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ end

-- Initialization callback
function on_init()
print("This chisel uses tracers and is deprecated")
require ("os")
os.exit()

-- Initialize statsd
statsd = lstatsd({host = "127.0.0.1"})

Expand Down
6 changes: 6 additions & 0 deletions userspace/sysdig/chisels/v_spans_list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,9 @@ view_info =
},
}
}

function on_init()
print("This chisel uses tracers and is deprecated.")
require ("os")
os.exit()
end
6 changes: 6 additions & 0 deletions userspace/sysdig/chisels/v_spans_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ view_info =
},
}
}

function on_init()
print("This chisel uses tracers and is deprecated.")
require ("os")
os.exit()
end
6 changes: 6 additions & 0 deletions userspace/sysdig/chisels/v_spectro_traces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ view_info =
}
}
}

function on_init()
print("This chisel uses tracers and is deprecated.")
require ("os")
os.exit()
end
6 changes: 6 additions & 0 deletions userspace/sysdig/chisels/v_traces_list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,9 @@ view_info =
},
}
}

function on_init()
print("This chisel uses tracers and is deprecated.")
require ("os")
os.exit()
end
6 changes: 6 additions & 0 deletions userspace/sysdig/chisels/v_traces_summary.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,9 @@ view_info =
},
}
}

function on_init()
print("This chisel uses tracers and is deprecated.")
require ("os")
os.exit()
end

0 comments on commit bca9a6f

Please sign in to comment.