Commit 4afa55e
authored
Assert extra spans for MySQlConnectorJ-8.4. (#888)
*Description of changes:*
Assert extra spans for MySQlConnectorJ-8.4.
When making a database query, Pulse agent leverage OTEL agent to
intercept the database queries and send them to Cloud-watch agent. Then
CloudWatch agent send all telemetry into Cloud-watch
We noticed that there will be two separate EMF log entries, one without
remote identifier and one with remote identifier, this extra EMF comes
in due to extra telemetry traces that come with mysqlConnector version
8.4
> The feature is supported by
[component_telemetry](https://dev.mysql.com/doc/refman/8.4/en/telemetry-trace-install.html).
MySQL Connector/J 8.4.0 introduces the client-side counterpart feature,
with the capability of propagating the context to the MySQL Server it
connects to and allowing a more complete observability for an
application stack.
([Ref](https://dev.mysql.com/doc/connector-j/en/connector-j-opentelemetry.html))
The following commit adds the extra assertion of asserting the extra
SELECT span.
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.1 parent b366543 commit 4afa55e
File tree
3 files changed
+32
-0
lines changed- appsignals-tests
- contract-tests/src/test/java/software/amazon/opentelemetry/appsignals/test/jdbc
- images/jdbc
3 files changed
+32
-0
lines changedLines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
125 | 133 | | |
126 | 134 | | |
127 | 135 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
| 76 | + | |
73 | 77 | | |
74 | 78 | | |
75 | 79 | | |
| |||
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
111 | 134 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments