Skip to content

Commit 14994cd

Browse files
committed
initial commit
0 parents  commit 14994cd

26 files changed

+2951
-0
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Output
2+
target/
3+
logs/
4+
pom.xml.versionsBackup
5+
dependency-reduced-pom.xml
6+
7+
# Eclipse
8+
.metadata/
9+
.externalToolBuilders/
10+
maven-eclipse.xml
11+
bin/
12+
eclipse-bin/
13+
**/.classpath
14+
**/RemoteSystemsTempFiles/
15+
16+
# IntelliJ
17+
.idea
18+
.settings/
19+
*.iml
20+
21+
# Mac
22+
.DS_Store

.jdkw

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
JDKW_RELEASE=latest
2+
JDKW_DIST=zulu
3+
JDKW_BUILD=8.38.0.13
4+
JDKW_VERSION=8.0.212
5+
JDKW_VERBOSE=true

Jenkinsfile

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
pipeline {
2+
agent {
3+
kubernetes {
4+
yamlFile 'kubes-pod.yaml'
5+
defaultContainer 'ubuntu'
6+
activeDeadlineSeconds 3600
7+
idleMinutes 15
8+
}
9+
}
10+
stages {
11+
stage('Init') {
12+
steps {
13+
checkout scm
14+
script {
15+
def m = (env.GIT_URL =~ /(\/|:)(([^\/]+)\/)?(([^\/]+?)(\.git)?)$/)
16+
if (m) {
17+
org = m.group(3)
18+
repo = m.group(5)
19+
}
20+
}
21+
}
22+
}
23+
stage('Setup build') {
24+
when { not { buildingTag() } }
25+
steps {
26+
script {
27+
target = "verify"
28+
}
29+
}
30+
}
31+
stage('Setup release') {
32+
when { buildingTag(); not { changeRequest() } }
33+
steps {
34+
script {
35+
target = "deploy -P release -P rpm --settings settings.xml"
36+
}
37+
sh 'gpg --batch --import arpnetworking.key'
38+
}
39+
}
40+
stage('Build') {
41+
steps {
42+
withCredentials([usernamePassword(credentialsId: 'jenkins-dockerhub', usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD'),
43+
usernamePassword(credentialsId: 'jenkins-ossrh', usernameVariable: 'OSSRH_USER', passwordVariable: 'OSSRH_PASS'),
44+
string(credentialsId: 'jenkins-gpg', variable: 'GPG_PASS')]) {
45+
withMaven {
46+
sh "./jdk-wrapper.sh ./mvnw $target -P rpm -U -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Ddocker.verbose=true"
47+
}
48+
}
49+
}
50+
}
51+
stage('GitHub release') {
52+
when { buildingTag(); not { changeRequest() } }
53+
steps {
54+
withCredentials([usernamePassword(credentialsId: 'brandonarp-github-token', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_TOKEN')]) {
55+
sh "github-release release --user ${org} --repo ${repo} --tag ${TAG_NAME}"
56+
sh "github-release upload --user ${org} --repo ${repo} --tag ${TAG_NAME} --name ${TAG_NAME}.tgz --file target/*.tgz"
57+
sh "github-release upload --user ${org} --repo ${repo} --tag ${TAG_NAME} --name ${TAG_NAME}.rpm --file target/rpm/*/RPMS/*/*.rpm"
58+
}
59+
}
60+
}
61+
}
62+
post('Analysis') {
63+
always {
64+
recordIssues(
65+
enabledForFailure: true, aggregatingResults: true,
66+
tools: [java(), checkStyle(reportEncoding: 'UTF-8'), spotBugs()])
67+
}
68+
}
69+
}

LICENSE

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
Apache License
2+
3+
Version 2.0, January 2004
4+
5+
http://www.apache.org/licenses/
6+
7+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8+
9+
1. Definitions.
10+
11+
"License" shall mean the terms and conditions for use, reproduction, and
12+
distribution as defined by Sections 1 through 9 of this document.
13+
14+
"Licensor" shall mean the copyright owner or entity authorized by the copyright
15+
owner that is granting the License.
16+
17+
"Legal Entity" shall mean the union of the acting entity and all other entities
18+
that control, are controlled by, or are under common control with that entity.
19+
For the purposes of this definition, "control" means (i) the power, direct or
20+
indirect, to cause the direction or management of such entity, whether by
21+
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
22+
outstanding shares, or (iii) beneficial ownership of such entity.
23+
24+
"You" (or "Your") shall mean an individual or Legal Entity exercising
25+
permissions granted by this License.
26+
27+
"Source" form shall mean the preferred form for making modifications, including
28+
but not limited to software source code, documentation source, and configuration
29+
files.
30+
31+
"Object" form shall mean any form resulting from mechanical transformation or
32+
translation of a Source form, including but not limited to compiled object code,
33+
generated documentation, and conversions to other media types.
34+
35+
"Work" shall mean the work of authorship, whether in Source or Object form, made
36+
available under the License, as indicated by a copyright notice that is included
37+
in or attached to the work (an example is provided in the Appendix below).
38+
39+
"Derivative Works" shall mean any work, whether in Source or Object form, that
40+
is based on (or derived from) the Work and for which the editorial revisions,
41+
annotations, elaborations, or other modifications represent, as a whole, an
42+
original work of authorship. For the purposes of this License, Derivative Works
43+
shall not include works that remain separable from, or merely link (or bind by
44+
name) to the interfaces of, the Work and Derivative Works thereof.
45+
46+
"Contribution" shall mean any work of authorship, including the original version
47+
of the Work and any modifications or additions to that Work or Derivative Works
48+
thereof, that is intentionally submitted to Licensor for inclusion in the Work
49+
by the copyright owner or by an individual or Legal Entity authorized to submit
50+
on behalf of the copyright owner. For the purposes of this definition,
51+
"submitted" means any form of electronic, verbal, or written communication sent
52+
to the Licensor or its representatives, including but not limited to
53+
communication on electronic mailing lists, source code control systems, and
54+
issue tracking systems that are managed by, or on behalf of, the Licensor for
55+
the purpose of discussing and improving the Work, but excluding communication
56+
that is conspicuously marked or otherwise designated in writing by the copyright
57+
owner as "Not a Contribution."
58+
59+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
60+
of whom a Contribution has been received by Licensor and subsequently
61+
incorporated within the Work.
62+
63+
2. Grant of Copyright License. Subject to the terms and conditions of this
64+
License, each Contributor hereby grants to You a perpetual, worldwide,
65+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
66+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
67+
sublicense, and distribute the Work and such Derivative Works in Source or
68+
Object form.
69+
70+
3. Grant of Patent License. Subject to the terms and conditions of this License,
71+
each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
72+
no-charge, royalty-free, irrevocable (except as stated in this section) patent
73+
license to make, have made, use, offer to sell, sell, import, and otherwise
74+
transfer the Work, where such license applies only to those patent claims
75+
licensable by such Contributor that are necessarily infringed by their
76+
Contribution(s) alone or by combination of their Contribution(s) with the Work
77+
to which such Contribution(s) was submitted. If You institute patent litigation
78+
against any entity (including a cross-claim or counterclaim in a lawsuit)
79+
alleging that the Work or a Contribution incorporated within the Work
80+
constitutes direct or contributory patent infringement, then any patent licenses
81+
granted to You under this License for that Work shall terminate as of the date
82+
such litigation is filed.
83+
84+
4. Redistribution. You may reproduce and distribute copies of the Work or
85+
Derivative Works thereof in any medium, with or without modifications, and in
86+
Source or Object form, provided that You meet the following conditions:
87+
88+
a. You must give any other recipients of the Work or Derivative Works a copy of
89+
this License; and
90+
b. You must cause any modified files to carry prominent notices stating that You
91+
changed the files; and
92+
c. You must retain, in the Source form of any Derivative Works that You
93+
distribute, all copyright, patent, trademark, and attribution notices from the
94+
Source form of the Work, excluding those notices that do not pertain to any part
95+
of the Derivative Works; and
96+
d. If the Work includes a "NOTICE" text file as part of its distribution, then
97+
any Derivative Works that You distribute must include a readable copy of the
98+
attribution notices contained within such NOTICE file, excluding those notices
99+
that do not pertain to any part of the Derivative Works, in at least one of the
100+
following places: within a NOTICE text file distributed as part of the
101+
Derivative Works; within the Source form or documentation, if provided along
102+
with the Derivative Works; or, within a display generated by the Derivative
103+
Works, if and wherever such third-party notices normally appear. The contents of
104+
the NOTICE file are for informational purposes only and do not modify the
105+
License. You may add Your own attribution notices within Derivative Works that
106+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
107+
provided that such additional attribution notices cannot be construed as
108+
modifying the License.
109+
110+
You may add Your own copyright statement to Your modifications and may provide
111+
additional or different license terms and conditions for use, reproduction, or
112+
distribution of Your modifications, or for any such Derivative Works as a whole,
113+
provided Your use, reproduction, and distribution of the Work otherwise complies
114+
with the conditions stated in this License.
115+
116+
5. Submission of Contributions. Unless You explicitly state otherwise, any
117+
Contribution intentionally submitted for inclusion in the Work by You to the
118+
Licensor shall be under the terms and conditions of this License, without any
119+
additional terms or conditions. Notwithstanding the above, nothing herein shall
120+
supersede or modify the terms of any separate license agreement you may have
121+
executed with Licensor regarding such Contributions.
122+
123+
6. Trademarks. This License does not grant permission to use the trade names,
124+
trademarks, service marks, or product names of the Licensor, except as required
125+
for reasonable and customary use in describing the origin of the Work and
126+
reproducing the content of the NOTICE file.
127+
128+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
129+
writing, Licensor provides the Work (and each Contributor provides its
130+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
131+
KIND, either express or implied, including, without limitation, any warranties
132+
or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
133+
PARTICULAR PURPOSE. You are solely responsible for determining the
134+
appropriateness of using or redistributing the Work and assume any risks
135+
associated with Your exercise of permissions under this License.
136+
137+
8. Limitation of Liability. In no event and under no legal theory, whether in
138+
tort (including negligence), contract, or otherwise, unless required by
139+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
140+
writing, shall any Contributor be liable to You for damages, including any
141+
direct, indirect, special, incidental, or consequential damages of any character
142+
arising as a result of this License or out of the use or inability to use the
143+
Work (including but not limited to damages for loss of goodwill, work stoppage,
144+
computer failure or malfunction, or any and all other commercial damages or
145+
losses), even if such Contributor has been advised of the possibility of such
146+
damages.
147+
148+
9. Accepting Warranty or Additional Liability. While redistributing the Work or
149+
Derivative Works thereof, You may choose to offer, and charge a fee for,
150+
acceptance of support, warranty, indemnity, or other liability obligations
151+
and/or rights consistent with this License. However, in accepting such
152+
obligations, You may act only on Your own behalf and on Your sole
153+
responsibility, not on behalf of any other Contributor, and only if You agree
154+
to indemnify, defend, and hold each Contributor harmless for any liability
155+
incurred by, or claims asserted against, such Contributor by reason of your
156+
accepting any such warranty or additional liability.
157+
158+
END OF TERMS AND CONDITIONS

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Open Telemetry Protocol
2+
===========================
3+
4+
<a href="https://raw.githubusercontent.com/ArpNetworking/open-telemetry-protocol/master/LICENSE">
5+
<img src="https://img.shields.io/hexpm/l/plug.svg"
6+
alt="License: Apache 2">
7+
</a>
8+
<a href="https://travis-ci.com/ArpNetworking/open-telemetry-protocol">
9+
<img src="https://travis-ci.com/ArpNetworking/open-telemetry-protocol.svg?branch=master"
10+
alt="Travis Build">
11+
</a>
12+
<a href="http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.arpnetworking.metrics%22%20a%3A%22open-telemetry-protocol%22">
13+
<img src="https://img.shields.io/maven-central/v/com.arpnetworking.metrics/open-telemetry-protocol.svg"
14+
alt="Maven Artifact">
15+
</a>
16+
17+
Building
18+
--------
19+
20+
Prerequisites:
21+
* [JDK8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
22+
23+
Building:
24+
25+
open-telemetry-protocol> ./mvnw verify
26+
27+
To use the local version you must first install it locally:
28+
29+
open-telemetry-protocol> ./mvnw install
30+
31+
You can determine the version of the local build from the pom file. Using the local version is intended only for testing or development.
32+
33+
You may also need to add the local repository to your build in order to pick-up the local version:
34+
35+
* Maven - Included by default.
36+
* Gradle - Add *mavenLocal()* to *build.gradle* in the *repositories* block.
37+
* SBT - Add *resolvers += Resolver.mavenLocal* into *project/plugins.sbt*.
38+
39+
License
40+
-------
41+
42+
Published under Apache Software License 2.0, see LICENSE
43+
44+
&copy; Bruno Green., 2018

arpnetworking.key

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
-----BEGIN PGP PRIVATE KEY BLOCK-----
2+
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