From 59999c79b8be5e52ebae58c8e52118a52db6d7de Mon Sep 17 00:00:00 2001 From: Franklin Hu Date: Thu, 23 Aug 2012 16:39:07 -0700 Subject: [PATCH] Add license headers Author: @franklinhu Fixes #119 URL: https://github.com/twitter/zipkin/pull/119 --- .../common/json/JsonBinaryAnnotation.scala | 15 +++++++++++++++ .../twitter/zipkin/common/json/JsonSpan.scala | 15 +++++++++++++++ .../common/json/JsonTimelineAnnotation.scala | 17 ++++++++++++++++- .../twitter/zipkin/common/json/JsonTrace.scala | 15 +++++++++++++++ .../zipkin/common/json/JsonTraceCombo.scala | 15 +++++++++++++++ .../zipkin/common/json/JsonTraceSummary.scala | 15 +++++++++++++++ .../zipkin/common/json/JsonTraceTimeline.scala | 15 +++++++++++++++ .../twitter/zipkin/config/ZipkinWebConfig.scala | 15 +++++++++++++++ .../scala/com/twitter/zipkin/web/Main.scala | 15 +++++++++++++++ .../com/twitter/zipkin/web/QueryRequest.scala | 15 +++++++++++++++ .../com/twitter/zipkin/web/ZipkinWeb.scala | 15 +++++++++++++++ 11 files changed, 166 insertions(+), 1 deletion(-) diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonBinaryAnnotation.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonBinaryAnnotation.scala index baa20c9279d..6f63f072e4b 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonBinaryAnnotation.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonBinaryAnnotation.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.common.json import com.twitter.zipkin.common.{Endpoint, AnnotationType} diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonSpan.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonSpan.scala index 5faa68b1946..a5f27cf3547 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonSpan.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonSpan.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.common.json import com.twitter.zipkin.common.Annotation diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTimelineAnnotation.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTimelineAnnotation.scala index 66ecd6fa185..f43c9ceb5f1 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTimelineAnnotation.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTimelineAnnotation.scala @@ -1,6 +1,21 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.common.json import com.twitter.zipkin.common.Endpoint case class JsonTimelineAnnotation(timestamp: Long, value: String, host: Endpoint, spanId: String, parentId: Option[String], - serviceName: String, spanName: String) \ No newline at end of file + serviceName: String, spanName: String) diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTrace.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTrace.scala index 897212c66c2..4a393652c54 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTrace.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTrace.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.common.json case class JsonTrace(traceId: String, spans: Seq[JsonSpan], startTimestamp: Long, endTimestamp: Long, duration: Long, serviceCounts: Map[String, Int]) diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceCombo.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceCombo.scala index 5989642c07e..ecbe26c9605 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceCombo.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceCombo.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.common.json case class JsonTraceCombo(trace: JsonTrace, traceSummary: Option[JsonTraceSummary], traceTimeline: Option[JsonTraceTimeline], diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceSummary.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceSummary.scala index dca173ae500..11745cd4c81 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceSummary.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceSummary.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.common.json import com.twitter.zipkin.common.Endpoint diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceTimeline.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceTimeline.scala index 9681e183b70..9d9c148270b 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceTimeline.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/common/json/JsonTraceTimeline.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.common.json case class JsonTraceTimeline(traceId: String, rootSpanId: String, annotations: Seq[JsonTimelineAnnotation], diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/config/ZipkinWebConfig.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/config/ZipkinWebConfig.scala index c0e3ff92d89..7c507b73d93 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/config/ZipkinWebConfig.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/config/ZipkinWebConfig.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.config import com.twitter.common.zookeeper.ZooKeeperClient diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/Main.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/Main.scala index 904740d5e6c..936e5137d09 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/Main.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/Main.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.web import com.twitter.logging.Logger diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/QueryRequest.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/QueryRequest.scala index 1ffec381454..e7d75538f2e 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/QueryRequest.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/QueryRequest.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.web import com.twitter.finatra.Request diff --git a/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/ZipkinWeb.scala b/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/ZipkinWeb.scala index bc45a397fa8..c0265f61b92 100644 --- a/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/ZipkinWeb.scala +++ b/zipkin-finatra/src/main/scala/com/twitter/zipkin/web/ZipkinWeb.scala @@ -1,3 +1,18 @@ +/* + * Copyright 2012 Twitter Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.twitter.zipkin.web import com.twitter.common.zookeeper.ServerSetImpl