added decorators default config files

This commit is contained in:
renaudboutet 2017-05-24 13:45:54 +02:00
parent 3f7d852a65
commit 8e165f37f0
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Decorators are used to add extra information to span
# Could be DBServiceDecorator, MapperDecorator or HTTPServiceDecorator
decorators:
- type: HTTP
componentName: java-web-servlet
- type: HTTP
componentName: java-okhttp
desiredServiceName: http-client
- type: DB
componentName: java-mongo
desiredServiceName: mongo
- type: DB
componentName: java-jdbc
desiredServiceName: jdbc
- type: HTTP
componentName: java-aws-sdk
desiredServiceName: aws-client

View File

@ -0,0 +1,11 @@
# Decorators are used to add extra information to span
# Could be DBServiceDecorator, MapperDecorator or HTTPServiceDecorator
decorators:
# This span decorator leverages HTTP tags such as the URL requested
- type: HTTP
componentName: http
desiredServiceName: unnamed-java-http
# This span decorator leverages DB tags such as the statement requested
- type: DB
componentName: db
desiredServiceName: unnamed-java-db

View File

@ -0,0 +1,4 @@
decorators:
- type: HTTP
componentName: hello
desiredServiceName: world