Skip to content

Commit 114df37

Browse files
committed
Add looking_glass
1 parent 023eec0 commit 114df37

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

MODULE.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ bazel_dep(
3434
version = "3.10.5",
3535
)
3636

37+
bazel_dep(
38+
name = "com_github_rabbitmq_looking_glass",
39+
version = "2.1.0",
40+
repo_name = "looking_glass",
41+
dev_dependency = True,
42+
)
43+
44+
git_override(
45+
module_name = "com_github_rabbitmq_looking_glass",
46+
commit = "162266c60c02f55dfb5bb9c1b432d3bc621294cb",
47+
remote = "https://github.com/rabbitmq/looking_glass.git",
48+
)
49+
3750
erlang_config = use_extension(
3851
"@rules_erlang//bzlmod:extensions.bzl",
3952
"erlang_config",

deps/rabbit/BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,16 +236,19 @@ plt(
236236
name = "deps_plt",
237237
apps = [
238238
"mnesia", # keep
239+
"runtime_tools", # keep
239240
],
240241
for_target = ":erlang_app",
241242
ignore_warnings = True,
242243
plt = "//:base_plt",
244+
deps = [
245+
"@looking_glass//:erlang_app", # keep
246+
],
243247
)
244248

245249
dialyze(
246250
name = "dialyze",
247-
# A few `lg` functions are unknown
248-
dialyzer_opts = without("-Wunknown", RABBITMQ_DIALYZER_OPTS),
251+
dialyzer_opts = RABBITMQ_DIALYZER_OPTS,
249252
plt = ":deps_plt",
250253
target = ":erlang_app",
251254
)

deps/rabbit/src/rabbit_looking_glass.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ trace_qq() ->
7878
]
7979
)),
8080
timer:sleep(10000),
81-
lg:stop(),
81+
_ = lg:stop(),
8282
profile().
8383

8484
profile() ->

0 commit comments

Comments
 (0)