<commit_before>
# Spectator

Simple library for instrumenting code to record dimensional time series.

## Requirements

* Java 7 or higher.

## Documentation

* [Wiki](https://github.com/Netflix/spectator/wiki)
* [Javadoc](http://netflix.github.io/spectator/javadoc/HEAD/spectator-api/)
* [![Build Status](https://travis-ci.org/Netflix/spectator.svg)](https://travis-ci.org/Netflix/spectator/builds)

## Dependencies

To instrument your code you need to depend on the api library. This provides the minimal interfaces
for you to code against and build test cases. The only dependency is slf4j.

```
com.netflix.spectator:spectator-api:0.16
```

If running at Netflix with the standard platform, see the
[Netflix Integration](https://github.com/Netflix/spectator/wiki/Netflix-Integration) page on the
wiki.

## Instrumenting Code

Suppose we have a server and we want to keep track of:

* Number of requests received with dimensions for breaking down by status code, country, and<commit_msg>update version recommended in readme<commit_after>
# Spectator

Simple library for instrumenting code to record dimensional time series.

## Requirements

* Java 7 or higher.

## Documentation

* [Wiki](https://github.com/Netflix/spectator/wiki)
* [Javadoc](http://netflix.github.io/spectator/javadoc/HEAD/spectator-api/)
* [![Build Status](https://travis-ci.org/Netflix/spectator.svg)](https://travis-ci.org/Netflix/spectator/builds)

## Dependencies

To instrument your code you need to depend on the api library. This provides the minimal interfaces
for you to code against and build test cases. The only dependency is slf4j.

```
com.netflix.spectator:spectator-api:0.20.0
```

If running at Netflix with the standard platform, see the
[Netflix Integration](https://github.com/Netflix/spectator/wiki/Netflix-Integration) page on the
wiki.

## Instrumenting Code

Suppose we have a server and we want to keep track of:

* Number of requests received with dimensions for breaking down by status code, country, and
{'fraction_non_alphanumeric': 0.10324189526184539, 'fraction_numerical': 0.005486284289276808, 'mean_word_length': 4.797687861271676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3646059', 'n_tokens_mistral': 610, 'n_tokens_neox': 587, 'n_words': 201}