Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/disney/trace-metrics-intellij-plugin
Trace Metrics IntelliJ Plugin
https://github.com/disney/trace-metrics-intellij-plugin
Last synced: about 2 months ago
JSON representation
Trace Metrics IntelliJ Plugin
- Host: GitHub
- URL: https://github.com/disney/trace-metrics-intellij-plugin
- Owner: disney
- License: other
- Created: 2018-12-14T21:06:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T17:08:45.000Z (over 1 year ago)
- Last Synced: 2024-04-13T19:21:01.914Z (9 months ago)
- Language: Java
- Homepage:
- Size: 668 KB
- Stars: 6
- Watchers: 9
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Trace Metrics
Trace Metrics is an IntelliJ plugin which makes use of New Relic trace annotations to make navigable connections
between source code and live production metrics. While in the source, a developer can make informed decisions about
code paths which may have high usage or no usage at all.## Build & Installation
To build the project from source...
1. Install Gradle
1. Run `gradle build`
1. Find the `trace-metrics-x.x.x.zip` artifact under `./build/distributions`To install the plugin in IntellJ...
1. Navigate to `Preferences > Plugins > Install plugin from disk`
1. Find and select the plugin jar file
1. Restart your IDE## Usage
##### Navigate
To open the tool window, right click on a `@Trace` annotated line and select Trace Metrics from the context menu, or
navigate to `View > Tool Windows > Trace Metrics`. Double click on a row in the tool window to navigate back to source.##### Configure
Configure your New Relic connection settings. Click on the configuration button in the tool window or navigate to
`Preferences > Trace Metrics`.##### Reload
To run the query at any time, click the refresh button in the tool window. The numbers will update if there is any
change. Note, there is a search result limit of 1000. The query will run as a background task and can be cancelled via
the IntelliJ progress bar. The number of days to query is configurable and can be set to 0 to disable the request.
By default the end date of the query is today at the time of the query, so "1 day ago" would equate to the last 24 hours.
You can choose to set a different end date, in which case the time will based on the end of that date in UTC.##### Open Insights
To load a query in New Relic Insights, right click on a row in the tool window and select `Open in Browser`.
## Compatibility
Compatible with IntelliJ CE and IntelliJ Ultimate versions 2020.2 and later.
## Support
Email the developers at [[email protected]](mailto:[email protected])
## License
Copyright 2018 Disney Worldwide Services, Inc.Licensed under the Apache License, Version 2.0 (the "Apache License") with modifications. See LICENSE.txt for details
## Developer Notes
##### Troubleshooting
During development, pay attention for runtime exceptions. IntelliJ shows an alert dialog on the lower right hand corner
of the screen which can be expanded for more details.##### Testing
Run `gradle test`. See also [TESTING.md](TESTING.md) for common manual tests.## Release Notes
### 1.4.0
* Converted to use New Relic NerdGraph API for NRQL queries.
* Updating IDE compatibility to 2020.2.
* Updating various dependency versions.
* Renamed logo files to avoid possible conflicts with other plugins.
* Corrected PluginPreferences constructor.
* Various other refactorings.### 1.3.0
* Fixed issues running against IntelliJ 2020.1
* Added ability to configure query by date, and to combine multiple queries for date ranges.
* Now showing File Name to differentiate when the same Trace Name is used multiple times in code.
* Updating progress indicator as multiple calls to New Relic are made.
* Updating counts as multiple calls to New Relic are made.
* Adjustments to plugin configuration UI.
* Fixing issue saving Days to Query configuration.
* No longer auto-running New Relic query on load. Must click refresh to run whatever has been saved in the configuration.### 1.2.0
* Build with stable intellij project.
### 1.1.0
* Fix query retry logic.
* Updated Jackson.### 1.0.0
* Initial release.