Skip to content

Commit 9120f89

Browse files
authored
feat: add cluster log metadata (#1609)
1 parent 2dee051 commit 9120f89

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

config/prod.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ config :logger, :warning,
2222
:project,
2323
:external_id,
2424
:application_name,
25+
:cluster,
2526
:region,
2627
:request_id,
2728
:sub,

lib/realtime/application.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule Realtime.Application do
2222
:ok =
2323
:logger.set_primary_config(
2424
:metadata,
25-
Enum.into([region: System.get_env("REGION")], primary_config.metadata)
25+
Enum.into([region: System.get_env("REGION"), cluster: System.get_env("CLUSTER")], primary_config.metadata)
2626
)
2727

2828
topologies = Application.get_env(:libcluster, :topologies) || []

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
44
def project do
55
[
66
app: :realtime,
7-
version: "2.61.1",
7+
version: "2.62.0",
88
elixir: "~> 1.18",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
start_permanent: Mix.env() == :prod,

0 commit comments

Comments
 (0)