Skip to content

Commit

Permalink
Merge pull request #191 from newrelic/fix_default_metric_url
Browse files Browse the repository at this point in the history
Fix the default metric URL to point at the metric API endpoint
  • Loading branch information
John Watson authored Jun 18, 2020
2 parents 0c9c20a + 9d66d7b commit da9f13e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Coming soon
- Enable adding additional user agent information to the HTTP requests made by the SDK.

## [0.6.1] - 2020-06-18
- Fix the default metric API URL to point at the metric API

## [0.6.0] - 2020-05-28
- Add initial preliminary support for Logs data type
- Simplified creation TelemetryClient and friends
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ Maven dependencies:
<dependency>
<groupId>com.newrelic.telemetry</groupId>
<artifactId>telemetry</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
</dependency>
<dependency>
<groupId>com.newrelic.telemetry</groupId>
<artifactId>telemetry-http-okhttp</artifactId>
<version>0.6.0</version>
<version>0.6.1</version>
</dependency>
```

Gradle dependencies:

```
compile("com.newrelic.telemetry:telemetry:0.6.0")
compile("com.newrelic.telemetry:telemetry-http-okhttp:0.6.0")
compile("com.newrelic.telemetry:telemetry:0.6.1")
compile("com.newrelic.telemetry:telemetry-http-okhttp:0.6.1")
```

Take a look at the example code in the [telemetry_examples](telemetry_examples) module.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

# Here is where we manage the version
releaseVersion=0.7.0-SNAPSHOT
releaseVersion=0.6.1

# Set this to true to enable using a local sonatype (for debugging publishing issues)
# Start a local sonatype in docker with this command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class MetricBatchSender {

private static final String METRICS_PATH = "/metric/v1";
private static final String DEFAULT_URL = "https://trace-api.newrelic.com/";
private static final String DEFAULT_URL = "https://metric-api.newrelic.com/";

private static final Logger logger = LoggerFactory.getLogger(MetricBatchSender.class);

Expand Down

0 comments on commit da9f13e

Please sign in to comment.