You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# [Project Name - use format "newrelic-java-<name>"][build badges go here when available]
21
-
22
-
>[Brief description - what is the project and value does it provide? How often should users expect to get releases? How is versioning set up? Where does this project want to go?]
Instrumentation tracks and records OpenSearch queries as DataStore queries
39
23
40
24
## Installation
41
25
42
-
> [Include a step-by-step procedure on how to get your code installed. Be sure to include any third-party dependencies that need to be installed separately]
26
+
1. Either download the Release instrumentation jars or build them as described in the Building section below.
27
+
2. In the New Relic Java Agent directory, create a directory named extensions if it does not already exist.
28
+
3. Copy the instrumentation jars into the extensions directory.
29
+
4. Restart the application
43
30
44
31
## Getting Started
45
32
46
-
>[Simple steps to start working with the software similar to a "Hello World"]
47
-
48
-
## Usage
49
-
50
-
>[**Optional** - Include more thorough instructions on how to use the software. This section might not be needed if the Getting Started section is enough. Remove this section if it's not needed.]
33
+
You should see OpenSearch queries begin to show up in the New Relic UI under Databases for the application.
51
34
52
35
## Building
53
36
54
-
>[**Optional** - Include this section if users will need to follow specific instructions to build the software from source. Be sure to include any third party build dependencies that need to be installed separately. Remove this section if it's not needed.]
55
-
56
-
## Testing
57
-
58
-
>[**Optional** - Include instructions on how to run tests if we include tests with the codebase. Remove this section if it's not needed.]
37
+
To build the OpenSearch instrumenation jars requires that Gradle is installed.
38
+
39
+
Set the environment variable NEW_RELIC_EXTENSIONS_DIR to a local directory. If building on the same machine as the application use the extensions directory of the New Relic Java Agent.
40
+
To build one of the modules (e.g opensearch-java-client) use the following command.
To build all of the instrumenation jars, use the following command.
44
+
gradle clean install
59
45
60
46
## Support
61
47
62
48
New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR DEDICATED SUPPORT. Issues and contributions should be reported to the project here on GitHub.
63
49
64
-
>[Choose 1 of the 2 options below for Support details, and remove the other one.]
65
-
66
-
>[Option 1 - no specific thread in Community]
67
50
>We encourage you to bring your experiences and questions to the [Explorers Hub](https://discuss.newrelic.com) where our community members collaborate on solutions and new ideas.
68
51
69
-
>[Option 2 - thread in Community]
70
-
>New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub.
71
-
>You can find this project's topic/threads here: [URL for Community thread]
72
-
73
52
## Contributing
74
53
75
54
We encourage your contributions to improve [Project Name]! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.
@@ -82,6 +61,4 @@ If you believe you have found a security vulnerability in this project or any of
82
61
83
62
## License
84
63
85
-
[Project Name] is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.
86
-
87
-
>[If applicable: [Project Name] also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in the third-party notices document.]
64
+
OpenSearch Instrumentation is licensed under the [Apache 2.0](http://apache.org/licenses/LICENSE-2.0.txt) License.
0 commit comments