OneAgentSDK
instance, that has to be used to create
- transactions. It is safe to use returned OneAgentSDK
instance in
- multiple threads. Every application should only create one single SDK
+ transactions. It is safe to use returned OneAgentSDK
instance in
+ multiple threads. Every application should only create one single SDK
instance during its lifetime.
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface CustomServiceTracer
+Interface for tracing custom services. + https://github.com/Dynatrace/OneAgent-SDK#customservice +
+ +
+
+Method Summary | +
---|
Methods inherited from interface com.dynatrace.oneagent.sdk.api.Tracer | +
---|
end, error, error, start |
+
+ +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface DatabaseRequestTracer
+Interface for outgoing database tracer. + https://github.com/Dynatrace/OneAgent-SDK#database +
+ +
+
+Method Summary | +|
---|---|
+ void |
+setReturnedRowCount(int returnedRowCount)
+
++ Adds optional information about retrieved rows of the traced database request. |
+
+ void |
+setRoundTripCount(int roundTripCount)
+
++ Adds optional information about round-trip count to database server. |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.Tracer | +
---|
end, error, error, start |
+
+Method Detail | +
---|
+void setReturnedRowCount(int returnedRowCount)+
+
returnedRowCount
- number of rows returned by this traced database request. Only positive values are allowed.+void setRoundTripCount(int roundTripCount)+
+
roundTripCount
- count of round-trips that took place. Only positive values are allowed.
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IncomingMessageProcessTracer
+Interface for processing message tracer. + https://github.com/Dynatrace/OneAgent-SDK#messaging +
+ +
+
+Method Summary | +|
---|---|
+ void |
+setCorrelationId(java.lang.String correlationId)
+
++ Adds optional information about a traced message: correlation id used by messaging system. |
+
+ void |
+setVendorMessageId(java.lang.String vendorMessageId)
+
++ Adds optional information about a traced message: message id provided by messaging system. |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.IncomingTaggable | +
---|
setDynatraceByteTag, setDynatraceStringTag |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.Tracer | +
---|
end, error, error, start |
+
+Method Detail | +
---|
+void setVendorMessageId(java.lang.String vendorMessageId)+
+
vendorMessageId
- the messageId+void setCorrelationId(java.lang.String correlationId)+
+
correlationId
- correlationId
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IncomingMessageReceiveTracer
+Interface for receiving message tracer. + https://github.com/Dynatrace/OneAgent-SDK#messaging +
+ +
+
+Method Summary | +
---|
Methods inherited from interface com.dynatrace.oneagent.sdk.api.Tracer | +
---|
end, error, error, start |
+
+ +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
-Represents the server side of a remote call.
- This Interface extends Tracer
- it is important to respect the
- mentioned requirements when working with IncomingRemoteCallTracer
.
+Represents the server side of a remote call. This Interface extends
+ Tracer
- it is important to respect the mentioned requirements when
+ working with IncomingRemoteCallTracer
.
@@ -203,7 +203,7 @@
void setDynatraceStringTag(java.lang.String tag)
OutgoingTaggable
to determine how to create a tag.
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface IncomingWebRequestTracer
+Interface for incoming webrequest tracer. https://github.com/Dynatrace/OneAgent-SDK#webrequests +
+ +
+
+Method Summary | +|
---|---|
+ void |
+addParameter(java.lang.String name,
+ java.lang.String value)
+
++ All HTTP parameters should be provided to this method. |
+
+ void |
+addRequestHeader(java.lang.String name,
+ java.lang.String value)
+
++ All HTTP request headers should be provided to this method. |
+
+ void |
+addResponseHeader(java.lang.String name,
+ java.lang.String value)
+
++ All HTTP response headers should be provided to this method. |
+
+ void |
+setRemoteAddress(java.lang.String remoteAddress)
+
++ Validates and sets the remote IP address of the incoming web request. |
+
+ void |
+setStatusCode(int statusCode)
+
++ Sets the HTTP response status code. |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.Tracer | +
---|
end, error, error, start |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.IncomingTaggable | +
---|
setDynatraceByteTag, setDynatraceStringTag |
+
+Method Detail | +
---|
+void setRemoteAddress(java.lang.String remoteAddress)+
+
remoteAddress
- remote IP address+void addRequestHeader(java.lang.String name, + java.lang.String value)+
+
name
- HTTP request header field namevalue
- HTTP request header field value+void addParameter(java.lang.String name, + java.lang.String value)+
+
name
- HTTP parameter namevalue
- HTTP parameter value+void addResponseHeader(java.lang.String name, + java.lang.String value)+
+
name
- HTTP response header field namevalue
- HTTP response header field value+void setStatusCode(int statusCode)+
+
statusCode
- HTTP status code returned to client
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
-LoggingCallback gets called only inside a OneAgentSDK API call when
- an error/warning has occurred.
+LoggingCallback gets called only inside a OneAgentSDK API call when an
+ error/warning has occurred.
Never call any SDK API inside one of these callback methods.
@@ -164,8 +164,8 @@
void error(java.lang.String message)
message
- message text. never null.
+Field Summary | +|
---|---|
+static java.lang.String |
+DYNATRACE_HTTP_HEADERNAME
+
++ Using this headername to transport Dynatrace tag inside an outgoing http + request ensures compatibility to Dynatrace built-in sensors. |
+
+static java.lang.String |
+DYNATRACE_MESSAGE_PROPERTYNAME
+
++ Using this propertyname to transport Dynatrace tag along with the message, ensures compatibility to Dynatrace built-in sensors. |
+
void
addCustomRequestAttribute(java.lang.String key,
+ double value)
+
+addCustomRequestAttribute(String, String)
,
+ but request-attribute type double. void
addCustomRequestAttribute(java.lang.String key,
+ long value)
+
+addCustomRequestAttribute(String, String)
,
+ but request-attribute type long. void
addCustomRequestAttribute(java.lang.String key,
+ java.lang.String value)
+
+ DatabaseInfo
createDatabaseInfo(java.lang.String name,
+ java.lang.String vendor,
+ ChannelType channelType,
+ java.lang.String channelEndpoint)
+
+ InProcessLink
createInProcessLink()
@@ -128,6 +196,29 @@ MessagingSystemInfo
createMessagingSystemInfo(java.lang.String vendorName,
+ java.lang.String destinationName,
+ MessageDestinationType destinationType,
+ ChannelType channelType,
+ java.lang.String channelEndpoint)
+
+ WebApplicationInfo
createWebApplicationInfo(java.lang.String webServerName,
+ java.lang.String applicationID,
+ java.lang.String contextRoot)
+
+ SDKState
getCurrentState()
@@ -136,6 +227,15 @@ TraceContextInfo
getTraceContextInfo()
+
+ void
setLoggingCallback(LoggingCallback loggingCallback)
@@ -144,6 +244,31 @@ CustomServiceTracer
traceCustomService(java.lang.String serviceMethod,
+ java.lang.String serviceName)
+
+ IncomingMessageProcessTracer
traceIncomingMessageProcess(MessagingSystemInfo messagingSystem)
+
+ IncomingMessageReceiveTracer
traceIncomingMessageReceive(MessagingSystemInfo messagingSystem)
+
+ IncomingRemoteCallTracer
traceIncomingRemoteCall(java.lang.String serviceMethod,
java.lang.String serviceName,
@@ -154,6 +279,16 @@
IncomingWebRequestTracer
traceIncomingWebRequest(WebApplicationInfo webApplicationInfo,
+ java.lang.String url,
+ java.lang.String method)
+
+ InProcessLinkTracer
traceInProcessLink(InProcessLink inProcessLink)
@@ -162,6 +297,14 @@ OutgoingMessageTracer
traceOutgoingMessage(MessagingSystemInfo messagingSystem)
+
+ OutgoingRemoteCallTracer
traceOutgoingRemoteCall(java.lang.String serviceMethod,
java.lang.String serviceName,
@@ -172,10 +315,62 @@
Traces an outgoing remote call.
OutgoingWebRequestTracer
traceOutgoingWebRequest(java.lang.String url,
+ java.lang.String method)
+
+ DatabaseRequestTracer
traceSqlDatabaseRequest(DatabaseInfo databaseInfo,
+ java.lang.String statement)
+
++Field Detail | +
---|
+static final java.lang.String DYNATRACE_HTTP_HEADERNAME+
+
+static final java.lang.String DYNATRACE_MESSAGE_PROPERTYNAME+
+
+DatabaseInfo createDatabaseInfo(java.lang.String name, + java.lang.String vendor, + ChannelType channelType, + java.lang.String channelEndpoint)+
+
name
- name of the databasevendor
- database vendor name (e.g. Oracle, MySQL, ...), can be a user defined name
+ If possible use a constant defined in DatabaseVendor
channelType
- communication protocol used to communicate with the database.channelEndpoint
- this represents the communication endpoint for the database. This information allows Dynatrace to tie the database requests to a specific process or cloud service. It is optional.
+ * for TCP/IP: host name/IP of the server-side (can include port in the form of "host:port")
+ * for UNIX domain sockets: name of domain socket file
+ * for named pipes: name of pipe
+DatabaseInfo
instance to work with+DatabaseRequestTracer traceSqlDatabaseRequest(DatabaseInfo databaseInfo, + java.lang.String statement)+
+
databaseInfo
- information about databasestatement
- database SQL statement
+DatabaseRequestTracer
to work with+WebApplicationInfo createWebApplicationInfo(java.lang.String webServerName, + java.lang.String applicationID, + java.lang.String contextRoot)+
+
webServerName
- logical name of the web server. In case of a cluster every node in
+ the cluster must report the same name here. Attention: Make sure
+ not to use the host header for this parameter. Host headers are
+ often spoofed and contain things like google or baidoo which do
+ not reflect your setup.applicationID
- application ID of the web applicationcontextRoot
- context root of the application. All URLs traced with the returned
+ WebApplicationInfo, should start with provided context root.
+WebApplicationInfo
instance to work with+IncomingWebRequestTracer traceIncomingWebRequest(WebApplicationInfo webApplicationInfo, + java.lang.String url, + java.lang.String method)+
+
webApplicationInfo
- information about web applicationurl
- (parts of a) URL, which will be parsed into: scheme,
+ hostname/port, path & query Note: the hostname will be resolved by
+ the Agent at start() callmethod
- HTTP request method
+IncomingWebRequestTracer
to work with+OutgoingWebRequestTracer traceOutgoingWebRequest(java.lang.String url, + java.lang.String method)+
+
url
- URL, which will be parsed into: scheme, hostname/port, path &
+ query Note: the hostname will be resolved by the Agent at start()
+ callmethod
- HTTP request method
+OutgoingWebRequestTracer
to work with@@ -216,12 +517,12 @@+ +
- Traces an outgoing remote call.
-
- Parameters:
serviceMethod
- name of the called remote method. (required)serviceName
- name of the remote service. (required)serviceEndpoint
- endpoint on the server side. (required)channelType
- communication protocol used by remote call. SeeChannelType
for - available types. (required)channelEndpoint
- optional and depending on channelType: +- Parameters:
serviceMethod
- name of the called remote method. (required)serviceName
- name of the remote service. (required)serviceEndpoint
- endpoint on the server side. (required)channelType
- communication protocol used by remote call. See +ChannelType
for available types. (required)channelEndpoint
- optional and depending on channelType:-
- for TCP/IP: host name/IP of the server-side (can include port) -
- for UNIX domain sockets: path of domain socket file -
- for named pipes: name of pipe +
- for TCP/IP: host name/IP of the server-side (can include port) +
- for UNIX domain sockets: path of domain socket file +
- for named pipes: name of pipe
- Returns:
OutgoingRemoteCallTracer
instance to work with- Since:
- 1.0
@@ -239,7 +540,8 @@
- @@ -262,14 +564,138 @@
-
- Returns:
InProcessLink
instance to work with. Use it withtraceInProcessLink(InProcessLink)
- Since:
+- Returns:
InProcessLink
instance to work with. Use it with +traceInProcessLink(InProcessLink)
- Since:
- 1.1
++addCustomRequestAttribute
++void addCustomRequestAttribute(java.lang.String key, + java.lang.String value)++
+- Adds a custom request attribute to currently traced service call. Might be + called multiple times, to add more than one attribute. Check via +
setLoggingCallback(LoggingCallback)
if error happened. If two + attributes with same key are set, both attribute-values are captured. ++
- +
+
+- Parameters:
key
- key of the attribute. required parameter.value
- value of the attribute. required parameter.- Since:
+- 1.2
+
+ ++addCustomRequestAttribute
++void addCustomRequestAttribute(java.lang.String key, + long value)++
+- Does exactly the same as
addCustomRequestAttribute(String, String)
, + but request-attribute type long. ++
- +
+
+- Since:
+- 1.2
+
+ ++addCustomRequestAttribute
++void addCustomRequestAttribute(java.lang.String key, + double value)++
+- Does exactly the same as
addCustomRequestAttribute(String, String)
, + but request-attribute type double. ++
- +
+
+- Since:
+- 1.2
+
+ ++createMessagingSystemInfo
++MessagingSystemInfo createMessagingSystemInfo(java.lang.String vendorName, + java.lang.String destinationName, + MessageDestinationType destinationType, + ChannelType channelType, + java.lang.String channelEndpoint)++
+- Initializes a MessagingSystemInfo instance that is required for tracing messages. +
+
- +
+
+- Parameters:
vendorName
- one ofMessageSystemVendor
if well known vendor. Custom provided in any other case.destinationName
- destination name (e.g. queue name, topic name)destinationType
- destination type - seeMessageDestinationType
.channelType
- communication protocol usedchannelEndpoint
- optional and depending on protocol: + * for TCP/IP: host name/IP of the server-side (can include port) + * for UNIX domain sockets: name of domain socket file + * for named pipes: name of pipe +- Returns:
MessagingSystemInfo
instance to work with- Since:
+- 1.5
+
+ ++traceOutgoingMessage
++OutgoingMessageTracer traceOutgoingMessage(MessagingSystemInfo messagingSystem)++
+- Creates a tracer for an outgoing asynchronous message (send). +
+
- +
+
+- Parameters:
messagingSystem
- information about the messaging system (see createMessagingSystemInfo methods). +- Returns:
OutgoingMessageTracer
to work with- Since:
+- 1.5
+
+ ++traceIncomingMessageReceive
++IncomingMessageReceiveTracer traceIncomingMessageReceive(MessagingSystemInfo messagingSystem)++
+- Creates a tracer for an incoming asynchronous message (blocking receive). +
+
- +
+
+- Parameters:
messagingSystem
- information about the messaging system (see createMessagingSystemInfo methods). +- Returns:
IncomingMessageReceiveTracer
to work with- Since:
+- 1.5
+
+ ++traceIncomingMessageProcess
++IncomingMessageProcessTracer traceIncomingMessageProcess(MessagingSystemInfo messagingSystem)++
+- Creates a tracer for processing (consuming) a received message (onMessage). +
+
- +
+
+- Parameters:
messagingSystem
- information about the messaging system (see createMessagingSystemInfo methods). +- Returns:
IncomingMessageProcessTracer
to work with- Since:
+- 1.5
+
+setLoggingCallback
void setLoggingCallback(LoggingCallback loggingCallback)-
+- Installs a callback that gets informed, if any SDK action has failed. - For details see
LoggingCallback
interface. The provided callback must - be thread-safe, when using thisOneAgentSDK
instance in multi-threaded +- Installs a callback that gets informed, if any SDK action has failed. For + details see
LoggingCallback
interface. The provided callback must be + thread-safe, when using thisOneAgentSDK
instance in multi-threaded environments.
@@ -295,6 +721,42 @@
+ ++traceCustomService
++CustomServiceTracer traceCustomService(java.lang.String serviceMethod, + java.lang.String serviceName)++
+- Creates a tracer for a custom transaction (Dynatrace calls them Custom service). Used whenever a transaction + should be traced, that does not match any of the specialised transaction types (e. g. DB-request, webrequest, ...). +
+
- +
+
+- Parameters:
serviceMethod
- service method being used for service creation.serviceName
- service name being used for service creation. +- Returns:
CustomServiceTracer
to work with- Since:
+- 1.8
+
+ ++getTraceContextInfo
++TraceContextInfo getTraceContextInfo()++
- Returns the current W3C trace context for log enrichment + (not meant for tagging and context-propagation but for log-enrichment). + See
TraceContextInfo
for details. ++
- +
+ +
+- Returns:
- current trace context at the time of the call - never null (but may contain all-zero ID).
- Since:
+- 1.9
+
@@ -326,7 +788,7 @@
PREV CLASS - NEXT CLASS + NEXT CLASSFRAMES NO FRAMES @@ -346,9 +808,9 @@
diff --git a/docs/com/dynatrace/oneagent/sdk/api/OutgoingMessageTracer.html b/docs/com/dynatrace/oneagent/sdk/api/OutgoingMessageTracer.html new file mode 100755 index 0000000..fe2b2ac --- /dev/null +++ b/docs/com/dynatrace/oneagent/sdk/api/OutgoingMessageTracer.html @@ -0,0 +1,263 @@ + + + + + + - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD-DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD+OutgoingMessageTracer (sdk 1.9.0 API) + + + + + + + + + + + + +
+ + + + + ++
+ + + ++ + ++ + ++
++ +Overview +Package +Class +Tree +Deprecated +Index +Help ++ + ++ ++ PREV CLASS + NEXT CLASS ++ FRAMES + NO FRAMES + + + + + ++ ++ SUMMARY: NESTED | FIELD | CONSTR | METHOD ++DETAIL: FIELD | CONSTR | METHOD +
+ ++ +com.dynatrace.oneagent.sdk.api +
+
+Interface OutgoingMessageTracer+
+- All Superinterfaces:
- OutgoingTaggable, Tracer
+
++
+ public interface OutgoingMessageTracer- extends Tracer, OutgoingTaggable
+Interface for outgoing message tracer. + https://github.com/Dynatrace/OneAgent-SDK#messaging +
+ +
+
+Method Summary | +|
---|---|
+ void |
+setCorrelationId(java.lang.String correlationId)
+
++ Adds optional information about a traced message: correlation id used by messaging system. |
+
+ void |
+setVendorMessageId(java.lang.String vendorMessageId)
+
++ Adds optional information about a traced message: message id provided by messaging system. |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.Tracer | +
---|
end, error, error, start |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.OutgoingTaggable | +
---|
getDynatraceByteTag, getDynatraceStringTag |
+
+Method Detail | +
---|
+void setVendorMessageId(java.lang.String vendorMessageId)+
+
vendorMessageId
- the messageId+void setCorrelationId(java.lang.String correlationId)+
+
correlationId
- correlationId
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
-Represents the client side of a remote call.
+Represents the client side of a remote call.
This Interface extends Tracer
- it is important to respect the
mentioned requirements when working with OutgoingRemoteCallTracer
.
@@ -205,7 +205,7 @@
getDynatraceByteTag()
getDynatraceStringTag()
, but returning the tag as
- binary representation.getDynatraceStringTag()
, but returning the tag as binary
+ representation.java.lang.String getDynatraceStringTag()
IncomingTaggable
how to continue a path with provided tag on the server side.
+IncomingTaggable
how to continue a path with provided tag on the
+ server side.
byte[] getDynatraceByteTag()
getDynatraceStringTag()
, but returning the tag as
- binary representation.
+getDynatraceStringTag()
, but returning the tag as binary
+ representation.
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface OutgoingWebRequestTracer
+Represents client side of an outgoing webrequest. +
+ +
+
+Method Summary | +|
---|---|
+ void |
+addRequestHeader(java.lang.String name,
+ java.lang.String value)
+
++ All HTTP request headers should be provided to this method. |
+
+ void |
+addResponseHeader(java.lang.String name,
+ java.lang.String value)
+
++ All HTTP response headers returned by the server should be provided to this + method. |
+
+ void |
+setStatusCode(int statusCode)
+
++ Sets the HTTP response status code. |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.Tracer | +
---|
end, error, error, start |
+
Methods inherited from interface com.dynatrace.oneagent.sdk.api.OutgoingTaggable | +
---|
getDynatraceByteTag, getDynatraceStringTag |
+
+Method Detail | +
---|
+void addRequestHeader(java.lang.String name, + java.lang.String value)+
+
name
- HTTP request header field namevalue
- HTTP request header field value+void addResponseHeader(java.lang.String name, + java.lang.String value)+
+
name
- HTTP response header field namevalue
- HTTP response header field value+void setStatusCode(int statusCode)+
+
statusCode
- HTTP status code retrieved from server
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
error(java.lang.Throwable throwable)
void start()
end()
method. Consider using the following pattern:
+end()
method. Consider using the following pattern:
tracer.start();
@@ -184,8 +184,8 @@
start()
, end()
, error(String)
,
- error(Throwable)
are not thread-safe. They must be called from
- the same thread where start()
has been invoked.
+ error(Throwable)
are not thread-safe. They must be called from the
+ same thread where start()
has been invoked.
start()
, end()
, error(String)
,
- error(Throwable)
are not thread-safe. They must be called from
- the same thread where start()
has been invoked.
+ error(Throwable)
are not thread-safe. They must be called from the
+ same thread where start()
has been invoked.
void error(java.lang.String message)
start()
, end()
, error(String)
,
- error(Throwable)
are not thread-safe. They must be called from
- the same thread where start()
has been invoked.
+ error(Throwable)
are not thread-safe. They must be called from the
+ same thread where start()
has been invoked.
message
- error message with details about occurred error (eg. return
- code). must not be null.message
- error message with details about occurred error (eg. return code).
+ must not be null.void error(java.lang.Throwable throwable)
start()
, end()
, error(String)
,
- error(Throwable)
are not thread-safe. They must be called from
- the same thread where start()
has been invoked.
+ error(Throwable)
are not thread-safe. They must be called from the
+ same thread where start()
has been invoked.
throwable
- exception, that occurred. must not null.
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+java.lang.Object ++java.lang.Enum<DatabaseVendor> +
com.dynatrace.oneagent.sdk.api.enums.DatabaseVendor +
public enum DatabaseVendor
+Enumerates all well-known database vendors. See OneAgentSDK.createDatabaseInfo(String, String, ChannelType, String)
.
+ Using these constants ensures that services captured by OneAgentSDK are handled the same way as traced via built-in sensors.
+
+ +
+
+Enum Constant Summary | +|
---|---|
ADABAS
+
++ |
+|
APACHE_HIVE
+
++ |
+|
CACHE
+
++ |
+|
CASSANDRA
+
++ |
+|
CLOUDSCAPE
+
++ |
+|
COLDFUSION_IMQ
+
++ |
+|
COUCHBASE
+
++ |
+|
DB2
+
++ |
+|
DERBY_CLIENT
+
++ |
+|
DERBY_EMBEDDED
+
++ |
+|
ENTERPRISE_DB
+
++ |
+|
FILEMAKER
+
++ |
+|
FIREBIRD
+
++ |
+|
FIRST_SQL
+
++ |
+|
H2
+
++ |
+|
HANADB
+
++ |
+|
HSQLDB
+
++ |
+|
INFORMIX
+
++ |
+|
INGRES
+
++ |
+|
INSTANT_DB
+
++ |
+|
INTERBASE
+
++ |
+|
MARIADB
+
++ |
+|
MAXDB
+
++ |
+|
MYSQL
+
++ |
+|
NETEZZA
+
++ |
+|
ORACLE
+
++ |
+|
PERVASIVE
+
++ |
+|
POINTBASE
+
++ |
+|
POSTGRESQL
+
++ |
+|
PROGRESS
+
++ |
+|
REDSHIFT
+
++ |
+|
SQLITE
+
++ |
+|
SQLSERVER
+
++ |
+|
SYBASE
+
++ |
+|
TERADATA
+
++ |
+|
VERTICA
+
++ |
+
+Method Summary | +|
---|---|
+ java.lang.String |
+getVendorName()
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
+static DatabaseVendor |
+valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static DatabaseVendor[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
Methods inherited from class java.lang.Enum | +
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
+
Methods inherited from class java.lang.Object | +
---|
getClass, notify, notifyAll, wait, wait, wait |
+
+Enum Constant Detail | +
---|
+public static final DatabaseVendor APACHE_HIVE+
+public static final DatabaseVendor CLOUDSCAPE+
+public static final DatabaseVendor HSQLDB+
+public static final DatabaseVendor PROGRESS+
+public static final DatabaseVendor MAXDB+
+public static final DatabaseVendor HANADB+
+public static final DatabaseVendor INGRES+
+public static final DatabaseVendor FIRST_SQL+
+public static final DatabaseVendor ENTERPRISE_DB+
+public static final DatabaseVendor CACHE+
+public static final DatabaseVendor ADABAS+
+public static final DatabaseVendor FIREBIRD+
+public static final DatabaseVendor DB2+
+public static final DatabaseVendor DERBY_CLIENT+
+public static final DatabaseVendor DERBY_EMBEDDED+
+public static final DatabaseVendor FILEMAKER+
+public static final DatabaseVendor INFORMIX+
+public static final DatabaseVendor INSTANT_DB+
+public static final DatabaseVendor INTERBASE+
+public static final DatabaseVendor MYSQL+
+public static final DatabaseVendor MARIADB+
+public static final DatabaseVendor NETEZZA+
+public static final DatabaseVendor ORACLE+
+public static final DatabaseVendor PERVASIVE+
+public static final DatabaseVendor POINTBASE+
+public static final DatabaseVendor POSTGRESQL+
+public static final DatabaseVendor SQLSERVER+
+public static final DatabaseVendor SQLITE+
+public static final DatabaseVendor SYBASE+
+public static final DatabaseVendor TERADATA+
+public static final DatabaseVendor VERTICA+
+public static final DatabaseVendor CASSANDRA+
+public static final DatabaseVendor H2+
+public static final DatabaseVendor COLDFUSION_IMQ+
+public static final DatabaseVendor REDSHIFT+
+public static final DatabaseVendor COUCHBASE+
+Method Detail | +
---|
+public static DatabaseVendor[] values()+
+for (DatabaseVendor c : DatabaseVendor.values()) + System.out.println(c); ++
+
+public static DatabaseVendor valueOf(java.lang.String name)+
+
name
- the name of the enum constant to be returned.
+java.lang.IllegalArgumentException
- if this enum type has no constant
+with the specified name
+java.lang.NullPointerException
- if the argument is null+public java.lang.String getVendorName()+
+public java.lang.String toString()+
toString
in class java.lang.Enum<DatabaseVendor>
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+java.lang.Object ++java.lang.Enum<MessageDestinationType> +
com.dynatrace.oneagent.sdk.api.enums.MessageDestinationType +
public enum MessageDestinationType
+Enumerates all well-known messaging destination types. See
+ OneAgentSDK.createMessagingSystemInfo(String, String, MessageDestinationType, ChannelType, String)
+
+ +
+
+Enum Constant Summary | +|
---|---|
QUEUE
+
++ |
+|
TOPIC
+
++ |
+
+Method Summary | +|
---|---|
+ java.lang.String |
+getName()
+
++ |
+
+static MessageDestinationType |
+valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static MessageDestinationType[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
Methods inherited from class java.lang.Enum | +
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
+
Methods inherited from class java.lang.Object | +
---|
getClass, notify, notifyAll, wait, wait, wait |
+
+Enum Constant Detail | +
---|
+public static final MessageDestinationType QUEUE+
+public static final MessageDestinationType TOPIC+
+Method Detail | +
---|
+public static MessageDestinationType[] values()+
+for (MessageDestinationType c : MessageDestinationType.values()) + System.out.println(c); ++
+
+public static MessageDestinationType valueOf(java.lang.String name)+
+
name
- the name of the enum constant to be returned.
+java.lang.IllegalArgumentException
- if this enum type has no constant
+with the specified name
+java.lang.NullPointerException
- if the argument is null+public java.lang.String getName()+
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
+java.lang.Object ++java.lang.Enum<MessageSystemVendor> +
com.dynatrace.oneagent.sdk.api.enums.MessageSystemVendor +
public enum MessageSystemVendor
+Enumerates all well-known messaging systems. See OneAgentSDK.createMessagingSystemInfo(String, String, MessageDestinationType, ChannelType, String)
.
+ Using these constants ensures that services captured by OneAgentSDK are handled the same way as traced via built-in sensors.
+
+ +
+
+Enum Constant Summary | +|
---|---|
ACTIVE_MQ
+
++ |
+|
ARTEMIS
+
++ |
+|
HORNETQ
+
++ |
+|
MQSERIES
+
++ |
+|
MQSERIES_JMS
+
++ |
+|
RABBIT_MQ
+
++ |
+|
TIBCO
+
++ |
+|
WEBSPHERE
+
++ |
+
+Method Summary | +|
---|---|
+ java.lang.String |
+getVendorName()
+
++ |
+
+ java.lang.String |
+toString()
+
++ |
+
+static MessageSystemVendor |
+valueOf(java.lang.String name)
+
++ Returns the enum constant of this type with the specified name. |
+
+static MessageSystemVendor[] |
+values()
+
++ Returns an array containing the constants of this enum type, in +the order they are declared. |
+
Methods inherited from class java.lang.Enum | +
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
+
Methods inherited from class java.lang.Object | +
---|
getClass, notify, notifyAll, wait, wait, wait |
+
+Enum Constant Detail | +
---|
+public static final MessageSystemVendor HORNETQ+
+public static final MessageSystemVendor ACTIVE_MQ+
+public static final MessageSystemVendor RABBIT_MQ+
+public static final MessageSystemVendor ARTEMIS+
+public static final MessageSystemVendor WEBSPHERE+
+public static final MessageSystemVendor MQSERIES_JMS+
+public static final MessageSystemVendor MQSERIES+
+public static final MessageSystemVendor TIBCO+
+Method Detail | +
---|
+public static MessageSystemVendor[] values()+
+for (MessageSystemVendor c : MessageSystemVendor.values()) + System.out.println(c); ++
+
+public static MessageSystemVendor valueOf(java.lang.String name)+
+
name
- the name of the enum constant to be returned.
+java.lang.IllegalArgumentException
- if this enum type has no constant
+with the specified name
+java.lang.NullPointerException
- if the argument is null+public java.lang.String getVendorName()+
+public java.lang.String toString()+
toString
in class java.lang.Enum<MessageSystemVendor>
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | ++DETAIL: ENUM CONSTANTS | FIELD | METHOD | +
TEMPORARILY_INACTIVE
public static final SDKState TEMPORARILY_INACTIVE
public static final SDKState PERMANENTLY_INACTIVE
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface DatabaseInfo
+Type returned by OneAgentSDK.createDatabaseInfo(String, String, com.dynatrace.oneagent.sdk.api.enums.ChannelType, String)
+
+ +
+
+ +
+ +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface MessagingSystemInfo
+Type returned by OneAgentSDK.createMessagingSystemInfo(String, String, com.dynatrace.oneagent.sdk.api.enums.MessageDestinationType, com.dynatrace.oneagent.sdk.api.enums.ChannelType, String)
+
+ +
+
+ +
+ +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface TraceContextInfo
+Provides information about a PurePath node using the TraceContext (Trace-Id, Span-Id) model as defined in + +
+Field Summary | +|
---|---|
+static java.lang.String |
+INVALID_SPAN_ID
+
++ All-zero (invalid) W3C span ID. |
+
+static java.lang.String |
+INVALID_TRACE_ID
+
++ All-zero (invalid) W3C trace ID. |
+
+Method Summary | +|
---|---|
+ java.lang.String |
+getSpanId()
+
++ The W3C span ID hex string (never empty or null, but might be all-zero if isValid() ) is false) |
+
+ java.lang.String |
+getTraceId()
+
++ The W3C trace ID hex string (never empty or null, but might be all-zero if isValid() ) is false) |
+
+ boolean |
+isValid()
+
++ If true, the trace & span ID are both valid (i.e., non-zero). |
+
+Field Detail | +
---|
+static final java.lang.String INVALID_TRACE_ID+
+
+static final java.lang.String INVALID_SPAN_ID+
+
+Method Detail | +
---|
+boolean isValid()+
These are a few common reasons for why you may be unable to get a valid trace context:
OneAgentSDK.getCurrentState()
)OneAgentSDK.setLoggingCallback(com.dynatrace.oneagent.sdk.api.LoggingCallback)
+
+java.lang.String getTraceId()+
isValid()
) is false)
++
+java.lang.String getSpanId()+
isValid()
) is false)
++
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public interface WebApplicationInfo
+Type returned by
+ OneAgentSDK.createWebApplicationInfo(String, String, String)
+
+ +
+
+ +
+ +
+
+
|
++ + | +||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+Interfaces
+
+ +DatabaseInfo + +MessagingSystemInfo + +TraceContextInfo + +WebApplicationInfo |
+
+
+
|
++ + | +||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|||
---|---|---|---|
DatabaseInfo | +Type returned by OneAgentSDK.createDatabaseInfo(String, String, com.dynatrace.oneagent.sdk.api.enums.ChannelType, String) |
+||
MessagingSystemInfo | +Type returned by OneAgentSDK.createMessagingSystemInfo(String, String, com.dynatrace.oneagent.sdk.api.enums.MessageDestinationType, com.dynatrace.oneagent.sdk.api.enums.ChannelType, String) |
+||
TraceContextInfo | +Provides information about a PurePath node using the TraceContext (Trace-Id, Span-Id) model as defined in + + | WebApplicationInfo | +Type returned by
+ OneAgentSDK.createWebApplicationInfo(String, String, String) |
+
+
+
+
|
++ + | +||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+com.dynatrace.* | +
---|
+ +
com.dynatrace.oneagent.sdk.api.OneAgentSDK | +||
---|---|---|
+public static final java.lang.String |
+DYNATRACE_HTTP_HEADERNAME |
+"X-dynaTrace" |
+
+public static final java.lang.String |
+DYNATRACE_MESSAGE_PROPERTYNAME |
+"dtdTraceTagInfo" |
+
+ +
+ +
com.dynatrace.oneagent.sdk.api.infos.TraceContextInfo | +||
---|---|---|
+public static final java.lang.String |
+INVALID_SPAN_ID |
+"0000000000000000" |
+
+public static final java.lang.String |
+INVALID_TRACE_ID |
+"00000000000000000000000000000000" |
+
+ +
OneAgentSDK.addCustomRequestAttribute(String, String)
,
+ but request-attribute type long.
+OneAgentSDK.addCustomRequestAttribute(String, String)
,
+ but request-attribute type double.
+OneAgentSDK
instance, that has to be used to create
transactions.
+OneAgentSDK.createDatabaseInfo(String, String, com.dynatrace.oneagent.sdk.api.enums.ChannelType, String)
OutgoingTaggable.getDynatraceStringTag()
, but returning the tag as
- binary representation.
+OutgoingTaggable.getDynatraceStringTag()
, but returning the tag as binary
+ representation.
TraceContextInfo.isValid()
) is false)
+TraceContextInfo.isValid()
) is false)
+OneAgentSDK.createMessagingSystemInfo(String, String, com.dynatrace.oneagent.sdk.api.enums.MessageDestinationType, com.dynatrace.oneagent.sdk.api.enums.ChannelType, String)
IncomingTaggable.setDynatraceStringTag(String)
but consumes binary
representation of tag.
@@ -164,6 +257,27 @@
OneAgentSDK.createWebApplicationInfo(String, String, String)
diff --git a/docs/overview-tree.html b/docs/overview-tree.html old mode 100644 new mode 100755 index a766ddc..ede1da8 --- a/docs/overview-tree.html +++ b/docs/overview-tree.html @@ -2,12 +2,12 @@
- ++ * {@code + * tracer.start(); + * try { + * // do your work + * } catch (Exception e) { + * tracer.error(e); + * } finally { + * tracer.end(); + * } + * } + *+ * + * {@link #start()}, {@link #end()}, {@link #error(String)}, + * {@link #error(Throwable)} are not thread-safe. They must be called from the + * same thread where {@link #start()} has been invoked. + * + * @since 1.0 + */ + void start(); + + /** + * Ends timing of a node. Typically this method is called via finally block. + *