Skip to content

Commit

Permalink
feat: enable response time histograms
Browse files Browse the repository at this point in the history
  • Loading branch information
shipperizer committed Apr 9, 2024
1 parent d109c2d commit 388e1e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def _pebble_layer(self) -> Layer:
env_vars["OPENFGA_PLAYGROUND_ENABLED"] = "false"
env_vars["OPENFGA_DATASTORE_ENGINE"] = "postgres"
env_vars["OPENFGA_DATASTORE_URI"] = self._dsn
env_vars["OPENFGA_METRICS_ENABLE_RPC_HISTOGRAMS"] = "true"

token = self._get_token()
if token:
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def test_on_config_changed(
"OPENFGA_DATASTORE_URI": mocked_dsn.return_value,
"OPENFGA_LOG_LEVEL": "debug",
"OPENFGA_PLAYGROUND_ENABLED": "false",
"OPENFGA_METRICS_ENABLE_RPC_HISTOGRAMS": "true",
},
},
},
Expand Down

0 comments on commit 388e1e9

Please sign in to comment.