summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | Add triggers feature to APITomasz Maczukin2016-01-042-0/+28
| | |/ / / / / / / | |/| | | | | | |
| * | | | | | | | Removed various default metrics tagsreduce-influxdb-tagsYorick Peterse2015-12-311-5/+2
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While it's useful to keep track of the different versions (Ruby, GitLab, etc) doing so for every point wastes disk space and possibly also RAM (which InfluxDB is all to eager to gobble up). If we want to see the performance differences between different GitLab versions simply looking at the performance since the last release date should suffice.
| * | | | | | | Make sure that is no pending migrations in Gitlab::CurrentSettingsfix-buildDouglas Barbosa Alexandre2015-12-301-1/+3
| | |_|_|_|_|/ | |/| | | | |
| * | | | | | Merge branch 'upvote_count_to_api' into 'master' Valery Sizov2015-12-291-1/+0
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert upvotes and downvotes params back to MR API issue https://gitlab.com/gitlab-org/gitlab-ce/issues/3672 See merge request !2212
| | * | | | | | Revert upvotes and downvotes params to MR APIValery Sizov2015-12-281-1/+0
| | | |_|_|_|/ | | |/| | | |
| * | | | | | Use Gitlab::CurrentSettings for InfluxDBYorick Peterse2015-12-291-25/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures we can still start up even when not connecting to a database.
| * | | | | | Write to InfluxDB directly via UDPYorick Peterse2015-12-296-13/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes the need for Sidekiq and any overhead/problems introduced by TCP. There are a few things to take into account: 1. When writing data to InfluxDB you may still get an error if the server becomes unavailable during the write. Because of this we're catching all exceptions and just ignore them (for now). 2. Writing via UDP apparently requires the timestamp to be in nanoseconds. Without this data either isn't written properly. 3. Due to the restrictions on UDP buffer sizes we're writing metrics one by one, instead of writing all of them at once.
| * | | | | | Strip newlines from obfuscated SQLYorick Peterse2015-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Newlines aren't really needed and they may mess with InfluxDB's line protocol.
| * | | | | | Merge branch 'feature/recaptcha_settings' into 'master' Dmitriy Zaporozhets2015-12-291-0/+14
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes reCAPTCHA configurable through Application Settings screen Following the work made by @stanhu here: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2216, made it configurable without needing to restart Gitlab See merge request !2231
| | * | | | | | reCAPTCHA is configurable through Admin Settings, no reload needed.Gabriel Mazetto2015-12-281-0/+14
| | | | | | | |
* | | | | | | | More refactoring from last code review. #3945Rubén Dávila2016-01-142-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use commit objects instead of IDs when generating diffs * Use proper references when generating MR's source and target * Update broken specs
* | | | | | | | Add inline diff markers in highlighted diffs.Douwe Maan2016-01-143-34/+181
| | | | | | | |
* | | | | | | | Refactor highlighting linesDouwe Maan2016-01-141-25/+4
| | | | | | | |
* | | | | | | | Remove duplication around highlighting.Douwe Maan2016-01-142-12/+24
| | | | | | | |
* | | | | | | | Use #sub instead of #gsub!. #3945Rubén Dávila2016-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This is because is not a good idea to modify the original lines * Also I run into this issue https://gitlab.com/gitlab-org/gitlab_git/issues/14 which is returning Diff Lines with the same @new_pos value.
* | | | | | | | Little refactor for usage of html_safe. #3945Rubén Dávila2016-01-131-2/+2
| | | | | | | |
* | | | | | | | Fix broken specs. #3945Rubén Dávila2016-01-121-1/+1
| | | | | | | |
* | | | | | | | Remove no longer required code. #3945Rubén Dávila2016-01-121-42/+9
| | | | | | | |
* | | | | | | | Small fixes from code review. #3945Rubén Dávila2016-01-121-4/+0
| | | | | | | |
* | | | | | | | Fix broken spec for submodule commit. #3945Rubén Dávila2016-01-091-2/+10
| | | | | | | |
* | | | | | | | Fix broken specs. #3945Rubén Dávila2016-01-081-5/+5
| | | | | | | |
* | | | | | | | Remove custom Lexer. #3945 [ci skip]Rubén Dávila2016-01-082-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inline diff is going to be generated client side now. #3945
* | | | | | | | Change strategy to highlight diffs. #3945Rubén Dávila2016-01-072-20/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now we apply syntax highlighting to the whole old and new files. This basically help us to highlight adequately multiline content.
* | | | | | | | Don't process inline diffs on backend. #3945Rubén Dávila2016-01-072-108/+1
| | | | | | | |
* | | | | | | | Apply syntax highlighting when expanding diff plus some refactor. #3945Rubén Dávila2015-12-311-12/+43
| | | | | | | |
* | | | | | | | Don't modify "match" diff lines. #3945Rubén Dávila2015-12-301-1/+6
| | | | | | | |
* | | | | | | | A bit of refactoring. #3945Rubén Dávila2015-12-303-9/+11
| | | | | | | |
* | | | | | | | Fix broken spec and small refactor. #3945Rubén Dávila2015-12-302-3/+3
| | | | | | | |
* | | | | | | | Fix Rubocop complain. #3945Rubén Dávila2015-12-301-5/+5
| | | | | | | |
* | | | | | | | New implementation for highlighting diff files. #3945Rubén Dávila2015-12-304-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * It is more performant given now we process all the diff file instead of processing line by line. * Multiline comments are highlighted correctly.
* | | | | | | | Set initial state on parent Lexer. #3945Rubén Dávila2015-12-281-0/+4
| | | | | | | |
* | | | | | | | Add syntax highlighting to diff view. #3945Rubén Dávila2015-12-281-0/+20
|/ / / / / / /
* | | | | | | Handle missing settings table for metricsYorick Peterse2015-12-281-6/+10
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | This ensures we can still boot, even when the "application_settings" table doesn't exist.
* | | | | | Move InfluxDB settings to ApplicationSettingrelocate-influxdb-settingsYorick Peterse2015-12-281-8/+24
| |_|/ / / |/| | | |
* | | | | Merge branch 'influxdb' into 'master' Dmitriy Zaporozhets2015-12-2812-0/+702
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Storing of application metrics in InfluxDB This adds support for tracking metrics in InfluxDB, which in turn can be visualized using Grafana. For more information see #2936. See merge request !2042
| * | | | | Added host option for InfluxDBinfluxdbYorick Peterse2015-12-281-1/+2
| | | | | |
| * | | | | Use String#delete for removing double quotesYorick Peterse2015-12-281-1/+1
| | | | | |
| * | | | | Track object counts using the "allocations" GemYorick Peterse2015-12-172-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to track the counts of actual classes instead of "T_XXX" nodes. This is only enabled on CRuby as it uses CRuby specific APIs.
| * | | | | Support for instrumenting class hierarchiesYorick Peterse2015-12-171-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | This will be used to (for example) instrument all ActiveRecord models.
| * | | | | Only track method calls above a certain thresholdYorick Peterse2015-12-172-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures we don't end up wasting resources by tracking method calls that only take a few microseconds. By default the threshold is 10 milliseconds but this can be changed using the gitlab.yml configuration file.
| * | | | | Allow filtering of what methods to instrumentYorick Peterse2015-12-171-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it possible to determine if a method should be instrumented or not using a block.
| * | | | | Track location information as tagsYorick Peterse2015-12-172-12/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows the information to be displayed when using certain functions (e.g. top()) as well as making it easier to aggregate on a per file basis.
| * | | | | Replace double quotes when obfuscating SQLYorick Peterse2015-12-171-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InfluxDB escapes double quotes upon output which makes it a pain to deal with. This ensures that if we're using PostgreSQL we don't store any queries containing double quotes in InfluxDB, solving the escaping problem.
| * | | | | Track object count types as tagsYorick Peterse2015-12-171-1/+3
| | | | | |
| * | | | | Only instrument methods defined directlyYorick Peterse2015-12-171-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using instrument_methods/instrument_instance_methods we only want to instrument methods defined directly in a class, not those included via mixins (e.g. whatever RSpec throws in during development). In case an externally included method _has_ to be instrumented we can still use the regular instrument_method/instrument_instance_method methods.
| * | | | | Added Instrumentation.configureYorick Peterse2015-12-171-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes it easier to instrument multiple modules without having to type the full namespace over and over again.
| * | | | | Methods for instrumenting multiple methodsYorick Peterse2015-12-171-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The methods Instrumentation.instrument_methods and Instrumentation.instrument_instance_methods can be used to instrument all methods of a module at once.
| * | | | | Proper method instrumentation for special symbolsYorick Peterse2015-12-171-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that methods such as "==" can be instrumented without producing syntax errors.
| * | | | | Use custom code for instrumenting method callsYorick Peterse2015-12-172-48/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of ActiveSupport would slow down instrumented method calls by about 180x due to: 1. ActiveSupport itself not being the fastest thing on the planet 2. caller_locations() having quite some overhead The use of caller_locations() has been removed because it's not _that_ useful since we already know the full namespace of receivers and the names of the called methods. The use of ActiveSupport has been replaced with some custom code that's generated using eval() (which can be quite a bit faster than using define_method). This new setup results in instrumented methods only being about 35-40x slower (compared to non instrumented methods).
| * | | | | Use string evaluation for method instrumentationYorick Peterse2015-12-172-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is faster than using define_method since we don't have to keep block bindings around.