Skip to content

Commit

Permalink
[pinpoint-apm#125] mysql module support
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed Jan 31, 2023
1 parent d2b7e15 commit 9d302e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/fixtures/db/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ CREATE TABLE member
joined date null
);

-- INSERT INTO member(id, 'name', joined)
-- VALUES ('a', 'name1', '2023-01-18'),
-- ('b', 'name2', '2022-07-27');
INSERT INTO member(id, name, joined)
VALUES ('a', 'name1', '2023-01-18'),
('b', 'name2', '2022-07-27');
9 changes: 6 additions & 3 deletions test/instrumentation/module/mysql.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ const mysql = require('mysql')
const path = require('path')

const fixtures = path.resolve(__dirname, '..', '..', 'fixtures', 'db')
test.skip(`SELECT query hooking`, async (t) => {
test(`SELECT query hooking`, async (t) => {
const source = path.resolve(fixtures, 'mysql.sql')
const container = await new MySqlContainer()
.withCommand(['--default-authentication-plugin=mysql_native_password'])
.withEnvironment({
'MYSQL_DATABASE': 'test'
'MYSQL_DATABASE': 'test',
'TZ': 'Asia/Seoul'
})
.withCopyFilesToContainer([{
source: source,
Expand All @@ -39,7 +40,9 @@ test.skip(`SELECT query hooking`, async (t) => {

connection.query(`SELECT * FROM member`, async function (error, results) {
if (error) throw error
// t.equal(results[0], 'member', 'SELECT member')
t.equal(results[0].id, 'a', 'SELECT member id')
t.equal(results[0].name, 'name1', 'SELECT member name')
t.equal(results[0].joined.getDate(), new Date('2023-01-18T00:00:00+09:00').getDate(), 'SELECT member joined')

connection.end()
await container.stop()
Expand Down

3 comments on commit 9d302e6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

76.28%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
lib
   agent.js74.70%62.50%75%78.18%130, 130, 130–134, 136, 140, 142–143, 29–32, 57–58, 79
   config.js87.31%85%100%85.32%107, 118–121, 124–127, 130–133, 178–179, 197–199, 203, 206, 210–211, 217, 239, 249
   supports.js21.74%0%16.67%30.77%14, 14, 14–15, 18, 18, 18–19, 22, 25, 28, 31, 35
lib/client
   data-sender-factory.js100%100%100%100%
   data-sender.js49.15%36.36%42.86%60%24, 28, 28, 28–29, 39, 41, 41, 41–43, 43, 43–44, 49, 49, 49–50, 55, 55, 55–56, 61, 61, 61–62
   grpc-bidirectional-stream.js53.33%31.58%71.43%68.42%17, 17, 17, 17, 17, 17–18, 22, 22–23, 27, 27, 27–28, 32, 32, 32–33, 41
   grpc-client-side-stream.js73.13%57.14%87.50%83.87%22–23, 25–27, 38, 38, 38, 38, 38, 38–39, 43, 43, 43–44, 65
   grpc-data-sender.js70.83%50%88%77.98%113–114, 117, 126, 126, 126–127, 137–138, 144, 152–153, 159, 168–169, 173, 173, 173, 173, 173–174, 182–183, 187, 187, 187, 187, 187–188, 196–197, 201, 201, 201, 201, 201–202, 208–209, 209, 209–210, 212, 216–217, 217, 217–218, 220, 81–82, 90–91
   grpc-stream.js95.18%88.89%100%97.83%37–38, 78, 96
   grpc-unary-rpc.js97.44%90.91%100%100%36
   pinpoint-client.js58.33%100%33.33%66.67%20, 23, 27
lib/constant
   annotation-key.js100%100%100%100%
   annotation.js100%100%100%100%
   commaned-type.js100%100%100%100%
   http-header.js100%100%100%100%
   method-descriptor.js100%100%100%100%
   method-type.js100%100%100%100%
   service-type.js100%100%100%100%
   valued-type.js100%100%100%100%
lib/context
   annotation-key-utils.js23.08%9.09%100%28.57%14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36
   annotation-key.js94.74%66.67%100%100%21
   annotation.js100%100%100%100%
   api-meta-service.js93.75%75%100%97.06%30, 45, 64
   async-id-accessor.js71.43%100%50%80%10
   async-id.js100%100%100%100%
   async-method-descriptor.js100%100%100%100%
   async-trace.js91.67%75%83.33%94.74%53, 66–67
   buffered-storage.js93.88%76.92%100%100%23, 34, 63
   context-manager.js94.44%75%100%100%15, 28
   disable-async-trace.js25%100%0%50%13, 21
   disable-span-event-recorder.js30%0%18.75%50%36, 36, 36–38, 40, 42, 70
   disable-trace.js43.75%0%44.44%62.50%33, 33, 33–35, 40, 40, 40–41, 50, 50, 50, 50
   express-method-descriptor-builder.js33.33%20%100%40%11–12, 15–16, 16, 16, 16, 16–17, 17, 17–18, 20, 22
   id-generator.js100%100%100%100%
   koa-method-descriptor-builder.js71.43%50%100%75%11–12
   make-method-descriptor-builder.js91.15%86.36%100%93.22%16, 22, 25, 29, 40–41, 64–65, 86–87
   method-descriptor-builder.js82.38%85.53%75%82.35%109, 118, 127, 137–138, 145–146, 148, 148–149, 157–158, 205–206, 209–210, 28, 31, 45, 52–53, 72, 76, 80–81, 85–86, 95–96
   method-descriptor.js91.11%100%84.62%92.31%43, 47
   sequence-generator.js86.67%75%100%87.50%17–18
   sequence-generators.js100%100%100%100%
   service-type.js75%40%100%80%24, 26, 26, 31–32, 37–38
   span-chunk.js91.53%70%100%95%15–16, 58, 68–69
   span-event-recorder.js62.22%50.85%72.22%70.69%101, 108, 114, 114, 114, 114, 114–116, 121, 128, 128, 128, 128, 128–129, 129, 129–130, 130, 130, 130, 130–131, 135, 135, 135, 135, 135–137, 143, 27, 31, 37, 43, 49, 55–56, 61, 65, 71, 78–81
   span-event.js92.31%80%100%96%10–11, 36
   span-events.js95.56%87.50%100%96.67%22, 25
   span-recorder.js64.56%56.10%80%71.43%19, 25, 31–34, 43, 49, 55, 61, 67, 67, 67, 67, 67–68, 68, 68–69, 73, 78, 78, 78, 78, 78–79
   span.js94.67%72.73%100%98.31%15–16, 46, 61
   string-meta-service.js34.48%0%50%38.10%25, 25, 25, 27–28, 28, 28–33, 35, 39–40, 42, 44
   trace-context.js93.48%91.30%100%93.22%105, 34–35, 76–77, 92
   trace-id.js100%100%100%100%
   trace.js63.11%41.38%75%70.97%100, 102–103, 107, 107, 107, 107, 107, 109–111, 119, 119, 119, 119, 52–53, 57–59, 62, 64, 67–68, 68, 68, 68, 68–70, 84, 91, 97–99
   transaction-id.js88.89%80%100%92.86%30, 32, 36
lib/data
   grpc-data-convertor.js59.79%50.85%65.22%61.81%107–108, 118–119, 130, 130, 130, 130, 130–131, 136, 136, 136–137, 139–148, 150–151, 155–156, 16, 164–165, 17, 181–182, 191–192, 198, 198, 198–199, 201, 203–205, 207–210, 214, 217–218, 220–223, 239, 241–242, 242, 242, 242, 242, 242–243, 246–247, 251–252, 289–290, 32–33, 51–52, 61, 61, 61–62, 64–67, 69, 69, 69–71, 74–85, 87–88, 90–91, 95–96
   typed-value.js53.33%40%66.67%59.26%15, 15, 15, 20–21, 26, 26, 26–27, 29, 31–32, 37, 45–47, 49, 49, 49–50
lib/data/dto
   agent-info.js95.24%0%100%100%14
   api-meta-info.js95.65%88.89%100%100%10
   string-meta-info.js85.71%0%100%100%10
lib/instrumentation
   http-shared.js75.31%60.38%92.31%81.25%109–110, 140, 143, 143, 143–144, 144, 144–145, 147, 147, 147–148, 150, 158, 37–38, 40–41, 56, 67–68, 68, 68, 68, 68–69, 69, 69–70, 72, 74, 91–92, 92, 92–93, 95
   module-hook.js82.46%66.67%100%83.33%37, 42, 50–51, 54, 67, 93, 93, 93–94
   request-data.js100%100%100%100%
   request-header-utils.js87.63%74.19%100%93.33%19–20, 29, 35, 51, 53, 58, 73–74, 84–85, 89
lib/instrumentation/module
   express.js45.45%28.17%63.16%52.94%100, 102, 106, 106, 106–112, 112, 112, 112, 112–113, 115, 117–118, 118, 118–119, 121, 128–131, 131, 131–135, 135, 135–136, 136, 136–137, 139, 142–143, 143, 143–144, 146, 152, 152, 152–153, 163, 163, 163–164, 168, 168, 168–169, 171, 171, 171–172, 174, 174, 174, 174, 174–176, 178, 182, 182, 182–183, 185, 189, 192, 197, 200, 27–29, 32–33, 48, 48, 48–49, 53, 53, 53, 60, 60, 60, 60–62, 62, 62, 71, 80, 87, 96–97, 99, 99, 99
   http.js100%100%100%100%
   https.js94.12%80%100%100%19
   koa-router.js19.75%4.17%40%25%19–21, 26, 28, 28, 28–29, 32, 34, 34, 34, 34, 34–35, 38–40, 40, 40–41, 44–47, 47, 47–49, 51–52, 52, 52–55, 57, 59, 59, 59–63, 65, 67, 67, 67–68, 71, 73, 81, 81, 81, 81, 81–83, 83, 83–84, 86
   redis.js89.86%76.19%100%95.35%17–19, 32, 34, 53, 65
lib/metric
   active-trace-histogram.js6.90%0%0%11.76%13, 13, 13–18, 22, 22, 22–23, 26, 26, 26–28, 28, 28–30, 30, 30–31, 33
   active-trace.js65.45%64.29%57.14%67.65%26–27, 46–47, 51, 53, 53, 53–54, 57–58, 58, 58–60, 63
   agent-stats-monitor.js14.29%0%0%21.05%15–18, 22, 26, 26, 26–27, 29–31, 33–35, 38, 44
   histogram-schema.js100%100%100%100%
   ping-scheduler.js12.50%0%0%18.18%12–15, 17–18, 22, 22, 22–23, 25
   resource-stats-collector.js20%25%0%25%10, 18–19, 23, 30–31, 38–39, 41–45, 47, 47, 47, 49, 51
   v8-compatibility.js95.24%100%100%92.86%21
lib/sampler
   sampler.js60.87%37.50%100%69.23%17, 20, 20, 20–21, 21, 21–22, 24
   sampling-flag.js55.56%16.67%100%70%16, 20, 20, 20, 20, 20–21, 23
lib/utils
   ant-path-matcher.js84.59%79.82%86.36%87.36%107, 107, 109, 124, 126–127, 127, 127–128, 131, 166–167, 175–176, 219, 225, 237–238, 242, 252, 257, 272, 276, 302, 304, 307–311, 324, 330–331, 335, 42–44, 55, 55, 55, 55, 55–56, 58, 92–93
   convert-utils.js47.37%25%50%66.67%10–11, 11–12, 12, 17–18, 21–22
   logger.js73.17%60%88.89%72.73%25, 25, 25–27, 29, 37–38, 48–49
   scheduler.js78.85%64.29%90.91%81.48%15, 22–24, 26–27, 50–52, 60
   simple-cache.js66.67%68.75%55.56%69.57%30, 32–33, 40–41, 41, 41–43, 48, 53, 57
   string-utils.js66.67%100%0%100%
lib/utils/log
   log-level-logger.js42.86%100%20%55.56%18, 21, 24, 27
   logger-output-adaptor.js5.66%0%16.67%8%15, 19, 19, 19, 19, 19–20, 20, 20–21, 23, 25, 27, 31, 31, 31, 31, 31–32, 32, 32–33, 35, 37, 39, 43, 43, 43, 43, 43–44, 44, 44–45, 47, 49, 51, 55, 55, 55, 55, 55–57, 59
   logger2.js53.03%50%48.15%57.14%103, 107, 111–112, 123, 127, 19, 36, 40, 44, 48, 60, 64, 68, 72, 76, 80

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

76.28%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
lib
   agent.js74.70%62.50%75%78.18%130, 130, 130–134, 136, 140, 142–143, 29–32, 57–58, 79
   config.js87.31%85%100%85.32%107, 118–121, 124–127, 130–133, 178–179, 197–199, 203, 206, 210–211, 217, 239, 249
   supports.js21.74%0%16.67%30.77%14, 14, 14–15, 18, 18, 18–19, 22, 25, 28, 31, 35
lib/client
   data-sender-factory.js100%100%100%100%
   data-sender.js49.15%36.36%42.86%60%24, 28, 28, 28–29, 39, 41, 41, 41–43, 43, 43–44, 49, 49, 49–50, 55, 55, 55–56, 61, 61, 61–62
   grpc-bidirectional-stream.js53.33%31.58%71.43%68.42%17, 17, 17, 17, 17, 17–18, 22, 22–23, 27, 27, 27–28, 32, 32, 32–33, 41
   grpc-client-side-stream.js73.13%57.14%87.50%83.87%22–23, 25–27, 38, 38, 38, 38, 38, 38–39, 43, 43, 43–44, 65
   grpc-data-sender.js70.83%50%88%77.98%113–114, 117, 126, 126, 126–127, 137–138, 144, 152–153, 159, 168–169, 173, 173, 173, 173, 173–174, 182–183, 187, 187, 187, 187, 187–188, 196–197, 201, 201, 201, 201, 201–202, 208–209, 209, 209–210, 212, 216–217, 217, 217–218, 220, 81–82, 90–91
   grpc-stream.js95.18%88.89%100%97.83%37–38, 78, 96
   grpc-unary-rpc.js97.44%90.91%100%100%36
   pinpoint-client.js58.33%100%33.33%66.67%20, 23, 27
lib/constant
   annotation-key.js100%100%100%100%
   annotation.js100%100%100%100%
   commaned-type.js100%100%100%100%
   http-header.js100%100%100%100%
   method-descriptor.js100%100%100%100%
   method-type.js100%100%100%100%
   service-type.js100%100%100%100%
   valued-type.js100%100%100%100%
lib/context
   annotation-key-utils.js23.08%9.09%100%28.57%14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36
   annotation-key.js94.74%66.67%100%100%21
   annotation.js100%100%100%100%
   api-meta-service.js93.75%75%100%97.06%30, 45, 64
   async-id-accessor.js71.43%100%50%80%10
   async-id.js100%100%100%100%
   async-method-descriptor.js100%100%100%100%
   async-trace.js91.67%75%83.33%94.74%53, 66–67
   buffered-storage.js93.88%76.92%100%100%23, 34, 63
   context-manager.js94.44%75%100%100%15, 28
   disable-async-trace.js25%100%0%50%13, 21
   disable-span-event-recorder.js30%0%18.75%50%36, 36, 36–38, 40, 42, 70
   disable-trace.js43.75%0%44.44%62.50%33, 33, 33–35, 40, 40, 40–41, 50, 50, 50, 50
   express-method-descriptor-builder.js33.33%20%100%40%11–12, 15–16, 16, 16, 16, 16–17, 17, 17–18, 20, 22
   id-generator.js100%100%100%100%
   koa-method-descriptor-builder.js71.43%50%100%75%11–12
   make-method-descriptor-builder.js91.15%86.36%100%93.22%16, 22, 25, 29, 40–41, 64–65, 86–87
   method-descriptor-builder.js82.38%85.53%75%82.35%109, 118, 127, 137–138, 145–146, 148, 148–149, 157–158, 205–206, 209–210, 28, 31, 45, 52–53, 72, 76, 80–81, 85–86, 95–96
   method-descriptor.js91.11%100%84.62%92.31%43, 47
   sequence-generator.js86.67%75%100%87.50%17–18
   sequence-generators.js100%100%100%100%
   service-type.js75%40%100%80%24, 26, 26, 31–32, 37–38
   span-chunk.js91.53%70%100%95%15–16, 58, 68–69
   span-event-recorder.js62.22%50.85%72.22%70.69%101, 108, 114, 114, 114, 114, 114–116, 121, 128, 128, 128, 128, 128–129, 129, 129–130, 130, 130, 130, 130–131, 135, 135, 135, 135, 135–137, 143, 27, 31, 37, 43, 49, 55–56, 61, 65, 71, 78–81
   span-event.js92.31%80%100%96%10–11, 36
   span-events.js95.56%87.50%100%96.67%22, 25
   span-recorder.js64.56%56.10%80%71.43%19, 25, 31–34, 43, 49, 55, 61, 67, 67, 67, 67, 67–68, 68, 68–69, 73, 78, 78, 78, 78, 78–79
   span.js94.67%72.73%100%98.31%15–16, 46, 61
   string-meta-service.js34.48%0%50%38.10%25, 25, 25, 27–28, 28, 28–33, 35, 39–40, 42, 44
   trace-context.js93.48%91.30%100%93.22%105, 34–35, 76–77, 92
   trace-id.js100%100%100%100%
   trace.js63.11%41.38%75%70.97%100, 102–103, 107, 107, 107, 107, 107, 109–111, 119, 119, 119, 119, 52–53, 57–59, 62, 64, 67–68, 68, 68, 68, 68–70, 84, 91, 97–99
   transaction-id.js88.89%80%100%92.86%30, 32, 36
lib/data
   grpc-data-convertor.js59.79%50.85%65.22%61.81%107–108, 118–119, 130, 130, 130, 130, 130–131, 136, 136, 136–137, 139–148, 150–151, 155–156, 16, 164–165, 17, 181–182, 191–192, 198, 198, 198–199, 201, 203–205, 207–210, 214, 217–218, 220–223, 239, 241–242, 242, 242, 242, 242, 242–243, 246–247, 251–252, 289–290, 32–33, 51–52, 61, 61, 61–62, 64–67, 69, 69, 69–71, 74–85, 87–88, 90–91, 95–96
   typed-value.js53.33%40%66.67%59.26%15, 15, 15, 20–21, 26, 26, 26–27, 29, 31–32, 37, 45–47, 49, 49, 49–50
lib/data/dto
   agent-info.js95.24%0%100%100%14
   api-meta-info.js95.65%88.89%100%100%10
   string-meta-info.js85.71%0%100%100%10
lib/instrumentation
   http-shared.js75.31%60.38%92.31%81.25%109–110, 140, 143, 143, 143–144, 144, 144–145, 147, 147, 147–148, 150, 158, 37–38, 40–41, 56, 67–68, 68, 68, 68, 68–69, 69, 69–70, 72, 74, 91–92, 92, 92–93, 95
   module-hook.js82.46%66.67%100%83.33%37, 42, 50–51, 54, 67, 93, 93, 93–94
   request-data.js100%100%100%100%
   request-header-utils.js87.63%74.19%100%93.33%19–20, 29, 35, 51, 53, 58, 73–74, 84–85, 89
lib/instrumentation/module
   express.js45.45%28.17%63.16%52.94%100, 102, 106, 106, 106–112, 112, 112, 112, 112–113, 115, 117–118, 118, 118–119, 121, 128–131, 131, 131–135, 135, 135–136, 136, 136–137, 139, 142–143, 143, 143–144, 146, 152, 152, 152–153, 163, 163, 163–164, 168, 168, 168–169, 171, 171, 171–172, 174, 174, 174, 174, 174–176, 178, 182, 182, 182–183, 185, 189, 192, 197, 200, 27–29, 32–33, 48, 48, 48–49, 53, 53, 53, 60, 60, 60, 60–62, 62, 62, 71, 80, 87, 96–97, 99, 99, 99
   http.js100%100%100%100%
   https.js94.12%80%100%100%19
   koa-router.js19.75%4.17%40%25%19–21, 26, 28, 28, 28–29, 32, 34, 34, 34, 34, 34–35, 38–40, 40, 40–41, 44–47, 47, 47–49, 51–52, 52, 52–55, 57, 59, 59, 59–63, 65, 67, 67, 67–68, 71, 73, 81, 81, 81, 81, 81–83, 83, 83–84, 86
   redis.js89.86%76.19%100%95.35%17–19, 32, 34, 53, 65
lib/metric
   active-trace-histogram.js6.90%0%0%11.76%13, 13, 13–18, 22, 22, 22–23, 26, 26, 26–28, 28, 28–30, 30, 30–31, 33
   active-trace.js65.45%64.29%57.14%67.65%26–27, 46–47, 51, 53, 53, 53–54, 57–58, 58, 58–60, 63
   agent-stats-monitor.js14.29%0%0%21.05%15–18, 22, 26, 26, 26–27, 29–31, 33–35, 38, 44
   histogram-schema.js100%100%100%100%
   ping-scheduler.js12.50%0%0%18.18%12–15, 17–18, 22, 22, 22–23, 25
   resource-stats-collector.js20%25%0%25%10, 18–19, 23, 30–31, 38–39, 41–45, 47, 47, 47, 49, 51
   v8-compatibility.js95.24%100%100%92.86%21
lib/sampler
   sampler.js60.87%37.50%100%69.23%17, 20, 20, 20–21, 21, 21–22, 24
   sampling-flag.js55.56%16.67%100%70%16, 20, 20, 20, 20, 20–21, 23
lib/utils
   ant-path-matcher.js84.59%79.82%86.36%87.36%107, 107, 109, 124, 126–127, 127, 127–128, 131, 166–167, 175–176, 219, 225, 237–238, 242, 252, 257, 272, 276, 302, 304, 307–311, 324, 330–331, 335, 42–44, 55, 55, 55, 55, 55–56, 58, 92–93
   convert-utils.js47.37%25%50%66.67%10–11, 11–12, 12, 17–18, 21–22
   logger.js73.17%60%88.89%72.73%25, 25, 25–27, 29, 37–38, 48–49
   scheduler.js78.85%64.29%90.91%81.48%15, 22–24, 26–27, 50–52, 60
   simple-cache.js66.67%68.75%55.56%69.57%30, 32–33, 40–41, 41, 41–43, 48, 53, 57
   string-utils.js66.67%100%0%100%
lib/utils/log
   log-level-logger.js42.86%100%20%55.56%18, 21, 24, 27
   logger-output-adaptor.js5.66%0%16.67%8%15, 19, 19, 19, 19, 19–20, 20, 20–21, 23, 25, 27, 31, 31, 31, 31, 31–32, 32, 32–33, 35, 37, 39, 43, 43, 43, 43, 43–44, 44, 44–45, 47, 49, 51, 55, 55, 55, 55, 55–57, 59
   logger2.js53.03%50%48.15%57.14%103, 107, 111–112, 123, 127, 19, 36, 40, 44, 48, 60, 64, 68, 72, 76, 80

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

76.28%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
lib
   agent.js74.70%62.50%75%78.18%130, 130, 130–134, 136, 140, 142–143, 29–32, 57–58, 79
   config.js87.31%85%100%85.32%107, 118–121, 124–127, 130–133, 178–179, 197–199, 203, 206, 210–211, 217, 239, 249
   supports.js21.74%0%16.67%30.77%14, 14, 14–15, 18, 18, 18–19, 22, 25, 28, 31, 35
lib/client
   data-sender-factory.js100%100%100%100%
   data-sender.js49.15%36.36%42.86%60%24, 28, 28, 28–29, 39, 41, 41, 41–43, 43, 43–44, 49, 49, 49–50, 55, 55, 55–56, 61, 61, 61–62
   grpc-bidirectional-stream.js53.33%31.58%71.43%68.42%17, 17, 17, 17, 17, 17–18, 22, 22–23, 27, 27, 27–28, 32, 32, 32–33, 41
   grpc-client-side-stream.js73.13%57.14%87.50%83.87%22–23, 25–27, 38, 38, 38, 38, 38, 38–39, 43, 43, 43–44, 65
   grpc-data-sender.js70.83%50%88%77.98%113–114, 117, 126, 126, 126–127, 137–138, 144, 152–153, 159, 168–169, 173, 173, 173, 173, 173–174, 182–183, 187, 187, 187, 187, 187–188, 196–197, 201, 201, 201, 201, 201–202, 208–209, 209, 209–210, 212, 216–217, 217, 217–218, 220, 81–82, 90–91
   grpc-stream.js95.18%88.89%100%97.83%37–38, 78, 96
   grpc-unary-rpc.js97.44%90.91%100%100%36
   pinpoint-client.js58.33%100%33.33%66.67%20, 23, 27
lib/constant
   annotation-key.js100%100%100%100%
   annotation.js100%100%100%100%
   commaned-type.js100%100%100%100%
   http-header.js100%100%100%100%
   method-descriptor.js100%100%100%100%
   method-type.js100%100%100%100%
   service-type.js100%100%100%100%
   valued-type.js100%100%100%100%
lib/context
   annotation-key-utils.js23.08%9.09%100%28.57%14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36
   annotation-key.js94.74%66.67%100%100%21
   annotation.js100%100%100%100%
   api-meta-service.js93.75%75%100%97.06%30, 45, 64
   async-id-accessor.js71.43%100%50%80%10
   async-id.js100%100%100%100%
   async-method-descriptor.js100%100%100%100%
   async-trace.js91.67%75%83.33%94.74%53, 66–67
   buffered-storage.js93.88%76.92%100%100%23, 34, 63
   context-manager.js94.44%75%100%100%15, 28
   disable-async-trace.js25%100%0%50%13, 21
   disable-span-event-recorder.js30%0%18.75%50%36, 36, 36–38, 40, 42, 70
   disable-trace.js43.75%0%44.44%62.50%33, 33, 33–35, 40, 40, 40–41, 50, 50, 50, 50
   express-method-descriptor-builder.js33.33%20%100%40%11–12, 15–16, 16, 16, 16, 16–17, 17, 17–18, 20, 22
   id-generator.js100%100%100%100%
   koa-method-descriptor-builder.js71.43%50%100%75%11–12
   make-method-descriptor-builder.js91.15%86.36%100%93.22%16, 22, 25, 29, 40–41, 64–65, 86–87
   method-descriptor-builder.js82.38%85.53%75%82.35%109, 118, 127, 137–138, 145–146, 148, 148–149, 157–158, 205–206, 209–210, 28, 31, 45, 52–53, 72, 76, 80–81, 85–86, 95–96
   method-descriptor.js91.11%100%84.62%92.31%43, 47
   sequence-generator.js86.67%75%100%87.50%17–18
   sequence-generators.js100%100%100%100%
   service-type.js75%40%100%80%24, 26, 26, 31–32, 37–38
   span-chunk.js91.53%70%100%95%15–16, 58, 68–69
   span-event-recorder.js62.22%50.85%72.22%70.69%101, 108, 114, 114, 114, 114, 114–116, 121, 128, 128, 128, 128, 128–129, 129, 129–130, 130, 130, 130, 130–131, 135, 135, 135, 135, 135–137, 143, 27, 31, 37, 43, 49, 55–56, 61, 65, 71, 78–81
   span-event.js92.31%80%100%96%10–11, 36
   span-events.js95.56%87.50%100%96.67%22, 25
   span-recorder.js64.56%56.10%80%71.43%19, 25, 31–34, 43, 49, 55, 61, 67, 67, 67, 67, 67–68, 68, 68–69, 73, 78, 78, 78, 78, 78–79
   span.js94.67%72.73%100%98.31%15–16, 46, 61
   string-meta-service.js34.48%0%50%38.10%25, 25, 25, 27–28, 28, 28–33, 35, 39–40, 42, 44
   trace-context.js93.48%91.30%100%93.22%105, 34–35, 76–77, 92
   trace-id.js100%100%100%100%
   trace.js63.11%41.38%75%70.97%100, 102–103, 107, 107, 107, 107, 107, 109–111, 119, 119, 119, 119, 52–53, 57–59, 62, 64, 67–68, 68, 68, 68, 68–70, 84, 91, 97–99
   transaction-id.js88.89%80%100%92.86%30, 32, 36
lib/data
   grpc-data-convertor.js59.79%50.85%65.22%61.81%107–108, 118–119, 130, 130, 130, 130, 130–131, 136, 136, 136–137, 139–148, 150–151, 155–156, 16, 164–165, 17, 181–182, 191–192, 198, 198, 198–199, 201, 203–205, 207–210, 214, 217–218, 220–223, 239, 241–242, 242, 242, 242, 242, 242–243, 246–247, 251–252, 289–290, 32–33, 51–52, 61, 61, 61–62, 64–67, 69, 69, 69–71, 74–85, 87–88, 90–91, 95–96
   typed-value.js53.33%40%66.67%59.26%15, 15, 15, 20–21, 26, 26, 26–27, 29, 31–32, 37, 45–47, 49, 49, 49–50
lib/data/dto
   agent-info.js95.24%0%100%100%14
   api-meta-info.js95.65%88.89%100%100%10
   string-meta-info.js85.71%0%100%100%10
lib/instrumentation
   http-shared.js75.31%60.38%92.31%81.25%109–110, 140, 143, 143, 143–144, 144, 144–145, 147, 147, 147–148, 150, 158, 37–38, 40–41, 56, 67–68, 68, 68, 68, 68–69, 69, 69–70, 72, 74, 91–92, 92, 92–93, 95
   module-hook.js82.46%66.67%100%83.33%37, 42, 50–51, 54, 67, 93, 93, 93–94
   request-data.js100%100%100%100%
   request-header-utils.js87.63%74.19%100%93.33%19–20, 29, 35, 51, 53, 58, 73–74, 84–85, 89
lib/instrumentation/module
   express.js45.45%28.17%63.16%52.94%100, 102, 106, 106, 106–112, 112, 112, 112, 112–113, 115, 117–118, 118, 118–119, 121, 128–131, 131, 131–135, 135, 135–136, 136, 136–137, 139, 142–143, 143, 143–144, 146, 152, 152, 152–153, 163, 163, 163–164, 168, 168, 168–169, 171, 171, 171–172, 174, 174, 174, 174, 174–176, 178, 182, 182, 182–183, 185, 189, 192, 197, 200, 27–29, 32–33, 48, 48, 48–49, 53, 53, 53, 60, 60, 60, 60–62, 62, 62, 71, 80, 87, 96–97, 99, 99, 99
   http.js100%100%100%100%
   https.js94.12%80%100%100%19
   koa-router.js19.75%4.17%40%25%19–21, 26, 28, 28, 28–29, 32, 34, 34, 34, 34, 34–35, 38–40, 40, 40–41, 44–47, 47, 47–49, 51–52, 52, 52–55, 57, 59, 59, 59–63, 65, 67, 67, 67–68, 71, 73, 81, 81, 81, 81, 81–83, 83, 83–84, 86
   redis.js89.86%76.19%100%95.35%17–19, 32, 34, 53, 65
lib/metric
   active-trace-histogram.js6.90%0%0%11.76%13, 13, 13–18, 22, 22, 22–23, 26, 26, 26–28, 28, 28–30, 30, 30–31, 33
   active-trace.js65.45%64.29%57.14%67.65%26–27, 46–47, 51, 53, 53, 53–54, 57–58, 58, 58–60, 63
   agent-stats-monitor.js14.29%0%0%21.05%15–18, 22, 26, 26, 26–27, 29–31, 33–35, 38, 44
   histogram-schema.js100%100%100%100%
   ping-scheduler.js12.50%0%0%18.18%12–15, 17–18, 22, 22, 22–23, 25
   resource-stats-collector.js20%25%0%25%10, 18–19, 23, 30–31, 38–39, 41–45, 47, 47, 47, 49, 51
   v8-compatibility.js95.24%100%100%92.86%21
lib/sampler
   sampler.js60.87%37.50%100%69.23%17, 20, 20, 20–21, 21, 21–22, 24
   sampling-flag.js55.56%16.67%100%70%16, 20, 20, 20, 20, 20–21, 23
lib/utils
   ant-path-matcher.js84.59%79.82%86.36%87.36%107, 107, 109, 124, 126–127, 127, 127–128, 131, 166–167, 175–176, 219, 225, 237–238, 242, 252, 257, 272, 276, 302, 304, 307–311, 324, 330–331, 335, 42–44, 55, 55, 55, 55, 55–56, 58, 92–93
   convert-utils.js47.37%25%50%66.67%10–11, 11–12, 12, 17–18, 21–22
   logger.js73.17%60%88.89%72.73%25, 25, 25–27, 29, 37–38, 48–49
   scheduler.js78.85%64.29%90.91%81.48%15, 22–24, 26–27, 50–52, 60
   simple-cache.js66.67%68.75%55.56%69.57%30, 32–33, 40–41, 41, 41–43, 48, 53, 57
   string-utils.js66.67%100%0%100%
lib/utils/log
   log-level-logger.js42.86%100%20%55.56%18, 21, 24, 27
   logger-output-adaptor.js5.66%0%16.67%8%15, 19, 19, 19, 19, 19–20, 20, 20–21, 23, 25, 27, 31, 31, 31, 31, 31–32, 32, 32–33, 35, 37, 39, 43, 43, 43, 43, 43–44, 44, 44–45, 47, 49, 51, 55, 55, 55, 55, 55–57, 59
   logger2.js53.03%50%48.15%57.14%103, 107, 111–112, 123, 127, 19, 36, 40, 44, 48, 60, 64, 68, 72, 76, 80

Please sign in to comment.