-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding decorators updating the proto span extractor * adding init commit for haystack collector multi ten * added tenant configuration * adding default tenant-id tag as shared in case no defaults found in additional tags configuration * creating kafka config * adding plugin configuration * passing plugin configuration * loading multiple external decorators * plugin config is now a list within plugin * making the single sink dispatch to multiple kafka clusters * updating kafka record sink for multiple kafka * fixed tests * modifying according to new config contract and creating tests * resolving minor bugs * adding pluginsloader tests * removing need to add -Djava.ext.dirs * tests failing intermittently plausible fix * trying to fix kafka issues * adding sample span decorator for user ref and integration testing * fixing bug closing the kafka producer * updating version for collector etc * reverting version bump because of scalactic tripleequals issue * refactoring and renaming * updating tests * deleting submodule haystack-idl
- Loading branch information
1 parent
8ba7b56
commit 38d99df
Showing
43 changed files
with
1,223 additions
and
96 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 |
---|---|---|
@@ -1,10 +1,48 @@ | ||
### Maven ### | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
|
||
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored) | ||
!/.mvn/wrapper/maven-wrapper.jar | ||
|
||
### Java ### | ||
|
||
# Compiled class file | ||
*.class | ||
*.iml | ||
|
||
# Log file | ||
*.log | ||
.classpath | ||
.project | ||
logs/ | ||
target/ | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
|
||
# IDE | ||
.idea/ | ||
kinesis/build/integration-tests/scripts/node_modules/ | ||
package-lock.json | ||
*.iml | ||
*.ipr | ||
*.iws | ||
*.classpath | ||
*.project | ||
*.settings | ||
*.DS_Store |
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,4 +0,0 @@ | ||
[submodule "haystack-idl"] | ||
path = haystack-idl | ||
url = https://github.com/ExpediaDotCom/haystack-idl.git | ||
branch = master | ||
Binary file not shown.
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 @@ | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip |
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
25 changes: 25 additions & 0 deletions
25
commons/src/main/scala/com/expedia/www/haystack/collector/commons/SpanDecoratorFactory.scala
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,25 @@ | ||
package com.expedia.www.haystack.collector.commons | ||
|
||
import com.expedia.www.haystack.span.decorators.plugin.config.Plugin | ||
import com.expedia.www.haystack.span.decorators.plugin.loader.SpanDecoratorPluginLoader | ||
import com.expedia.www.haystack.span.decorators.{AdditionalTagsSpanDecorator, SpanDecorator} | ||
import com.typesafe.config.ConfigFactory | ||
import org.slf4j.Logger | ||
|
||
import scala.collection.JavaConverters._ | ||
|
||
object SpanDecoratorFactory { | ||
def get(pluginConfig: Plugin, additionalTagsConfig: Map[String, String], LOGGER: Logger): List[SpanDecorator] = { | ||
var tempList = List[SpanDecorator]() | ||
if (pluginConfig != null) { | ||
val externalSpanDecorators: List[SpanDecorator] = SpanDecoratorPluginLoader.getInstance(LOGGER, pluginConfig).getSpanDecorators().asScala.toList | ||
if (externalSpanDecorators != null) { | ||
tempList = tempList ++: externalSpanDecorators | ||
} | ||
} | ||
|
||
val additionalTagsSpanDecorator = new AdditionalTagsSpanDecorator() | ||
additionalTagsSpanDecorator.init(ConfigFactory.parseMap(additionalTagsConfig.asJava)) | ||
tempList.::(additionalTagsSpanDecorator) | ||
} | ||
} |
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
Oops, something went wrong.