From 033481bc719a0b9128ca07eabb0cde62b2844370 Mon Sep 17 00:00:00 2001
From: Daniel Dyla <dyladan@users.noreply.github.com>
Date: Mon, 18 Nov 2019 14:37:50 -0500
Subject: [PATCH] chore(mysql): set supported versions

---
 packages/opentelemetry-plugin-mysql/src/mysql.ts | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/packages/opentelemetry-plugin-mysql/src/mysql.ts b/packages/opentelemetry-plugin-mysql/src/mysql.ts
index 0446f30f48..8a9e5efdf9 100644
--- a/packages/opentelemetry-plugin-mysql/src/mysql.ts
+++ b/packages/opentelemetry-plugin-mysql/src/mysql.ts
@@ -22,11 +22,13 @@ import { AttributeNames } from './enums';
 import { getConnectionAttributes, getSpanName } from './utils';
 
 export class MysqlPlugin extends BasePlugin<typeof mysqlTypes> {
-  moduleName = 'mysql';
-  static COMPONENT = 'mysql';
-  static DB_TYPE = 'sql';
+  readonly moduleName = 'mysql';
+  readonly supportedVersions = ['2.*'];
 
-  static COMMON_ATTRIBUTES = {
+  static readonly COMPONENT = 'mysql';
+  static readonly DB_TYPE = 'sql';
+
+  static readonly COMMON_ATTRIBUTES = {
     [AttributeNames.COMPONENT]: MysqlPlugin.COMPONENT,
     [AttributeNames.DB_TYPE]: MysqlPlugin.DB_TYPE,
     [AttributeNames.PEER_SERVICE]: MysqlPlugin.COMPONENT,