-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #128 from idealista/develop
Develop
- Loading branch information
Showing
14 changed files
with
924 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.yml linguist-detectable=true | ||
*.yaml linguist-detectable=true | ||
*.html linguist-detectable=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
verify_ssl = false | ||
name = "pip_conf_index_global" | ||
|
||
[packages] | ||
ansible = "==2.9.14" | ||
molecule = "==3.0.4" | ||
docker = "==4.2.2" | ||
ansible = "==2.9.27" | ||
molecule = "==3.0.8" | ||
docker = "==7.0.0" | ||
jmespath = "==0.9.4" | ||
lxml = "==4.6.2" | ||
pyyaml = "==5.3.1" | ||
requests = "<2.32.0" | ||
ansible-lint = "==4.2.0" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3" | ||
python_version = "3.9" | ||
python_full_version = "3.9.18" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
molecule/default/templates/tomcat/agents/newrelic/extensions/extension-example.xml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- This is an example of a custom instrumentation extension XML file. --> | ||
|
||
<extension xmlns="https://newrelic.com/docs/java/xsd/v1.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="newrelic-extension extension.xsd " name="extension-example" | ||
version="1.0" enabled="true"> | ||
<instrumentation> | ||
|
||
<!-- This point cut instruments some of the methods in the class com.sample.SampleArrayList. --> | ||
<pointcut transactionStartPoint="true" | ||
excludeFromTransactionTrace="false" ignoreTransaction="false"> | ||
<className>com.sample.SampleArrayList</className> | ||
<!-- Instruments the method clear() --> | ||
<method> | ||
<name>clear</name> | ||
<parameters /> | ||
<!-- The parameters node should be specified if there are no input parameters | ||
and you only want to match clear(). Not specifying the parameters node will | ||
match all methods named clear on the class regardless of the input parameters. | ||
In other words it would match clear(int) clear(long) clear(int, long). --> | ||
</method> | ||
<!-- Instruments the method Object get(int index) --> | ||
<method> | ||
<name>get</name> | ||
<parameters> | ||
<!-- Primitives should written using their name: byte, short, int, long, | ||
float, double, boolean, char --> | ||
<type>int</type> | ||
</parameters> | ||
</method> | ||
<!-- Instruments the method boolean addAll(int index, Collection c) --> | ||
<method> | ||
<name>addAll</name> | ||
<parameters> | ||
<!-- Make sure your parameters are listed in order. --> | ||
<type>int</type> | ||
<type>java.util.Collection</type> | ||
</parameters> | ||
</method> | ||
</pointcut> | ||
|
||
<!-- This point cut instruments some of the methods in the class com.sample.SampleString. --> | ||
<pointcut transactionStartPoint="true"> | ||
<className>com.sample.SampleString</className> | ||
<!-- Instruments the method boolean startsWith(String prefix) --> | ||
<method> | ||
<name>startsWith</name> | ||
<parameters> | ||
<type>java.lang.String</type> | ||
</parameters> | ||
</method> | ||
<!-- Instruments the method String valueOf(char[] data, int offset, int | ||
count) --> | ||
<method> | ||
<name>valueOf</name> | ||
<parameters> | ||
<!-- Be sure to use brackets for arrays. --> | ||
<type>char[]</type> | ||
<type>int</type> | ||
<type>int</type> | ||
</parameters> | ||
</method> | ||
</pointcut> | ||
|
||
|
||
<!-- This point cut instruments all of the methods in the class com.sample.SampleString | ||
that are named startsWith, ignoring the input parameters and return type. --> | ||
<pointcut transactionStartPoint="true"> | ||
<className>com.sample.SampleString</className> | ||
<method> | ||
<name>startsWith</name> | ||
</method> | ||
</pointcut> | ||
|
||
|
||
<!-- This point cut instruments the method startsWith in the class com.sample.SampleString. | ||
By adding the <nameTransaction/> element, the class and method specified | ||
in this pointcut will be used to name transactions which hit this pointcut. | ||
Without this, the default convention is to name transctions with the class | ||
and method from the transaction start point. --> | ||
<pointcut transactionStartPoint="false"> | ||
<nameTransaction /> | ||
<className>com.sample.SampleString</className> | ||
<!-- Instruments the method boolean startsWith(String prefix) --> | ||
<method> | ||
<name>startsWith</name> | ||
<parameters> | ||
<type>java.lang.String</type> | ||
</parameters> | ||
</method> | ||
</pointcut> | ||
|
||
<!-- This point cut instruments the method startsWith(String prefix) for | ||
all implementations of the interface com.sample.SampleStringInterface. --> | ||
<pointcut transactionStartPoint="true"> | ||
<interfaceName>com.sample.SampleStringInterface</interfaceName> | ||
<!-- Instruments the method boolean startsWith(String prefix) --> | ||
<method> | ||
<name>startsWith</name> | ||
<parameters> | ||
<type>java.lang.String</type> | ||
</parameters> | ||
</method> | ||
</pointcut> | ||
|
||
<!-- This point cut instruments some of the methods in the class com.sample.SampleString | ||
based on return type. --> | ||
<pointcut transactionStartPoint="true"> | ||
<className>com.sample.SampleString</className> | ||
<!-- Instruments all methods in the class whose return type is ResultSet --> | ||
<method> | ||
<returnType>com.example.ResultSet</returnType> | ||
</method> | ||
</pointcut> | ||
|
||
<!-- This point cut instruments all of the methods which have the annotation | ||
com.example.myAnnotation. --> | ||
<pointcut transactionStartPoint="true"> | ||
<methodAnnotation>com.example.myAnnotation</methodAnnotation> | ||
</pointcut> | ||
|
||
<pointcut transactionStartPoint="true"> | ||
<className>com.sample.SampleString</className> | ||
<traceLambda>true</traceLambda> | ||
</pointcut> | ||
|
||
<pointcut transactionStartPoint="true"> | ||
<className>com.sample.SampleString</className> | ||
<traceByReturnType>Lcom/sample/SampleString;</traceByReturnType> | ||
</pointcut> | ||
</instrumentation> | ||
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.