Commit b60bd35f authored by Robert Speicher's avatar Robert Speicher

Wrap EE-only instrumentation in Gitlab.ee block

parent 5462265c
...@@ -87,6 +87,7 @@ def instrument_classes(instrumentation) ...@@ -87,6 +87,7 @@ def instrument_classes(instrumentation)
instrumentation.instrument_methods(Gitlab::Highlight) instrumentation.instrument_methods(Gitlab::Highlight)
instrumentation.instrument_instance_methods(Gitlab::Highlight) instrumentation.instrument_instance_methods(Gitlab::Highlight)
Gitlab.ee do
instrumentation.instrument_methods(Elasticsearch::Git::Repository) instrumentation.instrument_methods(Elasticsearch::Git::Repository)
instrumentation.instrument_instance_methods(Elasticsearch::Git::Repository) instrumentation.instrument_instance_methods(Elasticsearch::Git::Repository)
...@@ -113,6 +114,7 @@ def instrument_classes(instrumentation) ...@@ -113,6 +114,7 @@ def instrument_classes(instrumentation)
instrumentation.instrument_instance_methods(Bitbucket::Connection) instrumentation.instrument_instance_methods(Bitbucket::Connection)
instrumentation.instrument_instance_methods(Geo::RepositorySyncWorker) instrumentation.instrument_instance_methods(Geo::RepositorySyncWorker)
end
# This is a Rails scope so we have to instrument it manually. # This is a Rails scope so we have to instrument it manually.
instrumentation.instrument_method(Project, :visible_to_user) instrumentation.instrument_method(Project, :visible_to_user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment