diff --git a/go.mod b/go.mod index ad56966..4a4168e 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.1 require ( github.com/jmoiron/sqlx v1.4.0 github.com/microsoft/go-mssqldb v1.7.2 - github.com/newrelic/infra-integrations-sdk v3.8.2+incompatible + github.com/newrelic/infra-integrations-sdk/v3 v3.9.1 github.com/stretchr/testify v1.9.0 github.com/xeipuuv/gojsonschema v1.2.0 gopkg.in/DATA-DOG/go-sqlmock.v1 v1.3.0 diff --git a/go.sum b/go.sum index cac0405..47c5104 100644 --- a/go.sum +++ b/go.sum @@ -37,6 +37,8 @@ github.com/microsoft/go-mssqldb v1.7.2 h1:CHkFJiObW7ItKTJfHo1QX7QBBD1iV+mn1eOyRP github.com/microsoft/go-mssqldb v1.7.2/go.mod h1:kOvZKUdrhhFQmxLZqbwUV0rHkNkZpthMITIb2Ko1IoA= github.com/newrelic/infra-integrations-sdk v3.8.2+incompatible h1:Ktcm1aPAl7CW3o+FXAIKJ+jygWVXDXaUIWFyf2CXQTk= github.com/newrelic/infra-integrations-sdk v3.8.2+incompatible/go.mod h1:tMUHRMq6mJS0YyBnbWrTXAnREnQqC1AGO6Lu45u5xAM= +github.com/newrelic/infra-integrations-sdk/v3 v3.9.1 h1:dCtVLsYNHWTQ5aAlAaHroomOUlqxlGTrdi6XTlvBDfI= +github.com/newrelic/infra-integrations-sdk/v3 v3.9.1/go.mod h1:yPeidhcq9Cla0QDquGXH0KqvS2k9xtetFOD7aLA0Z8M= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= diff --git a/src/args/argument_list.go b/src/args/argument_list.go index ca75848..1e8ca8b 100644 --- a/src/args/argument_list.go +++ b/src/args/argument_list.go @@ -5,8 +5,8 @@ import ( "errors" "os" - sdkArgs "github.com/newrelic/infra-integrations-sdk/args" - "github.com/newrelic/infra-integrations-sdk/log" + sdkArgs "github.com/newrelic/infra-integrations-sdk/v3/args" + "github.com/newrelic/infra-integrations-sdk/v3/log" ) // ArgumentList struct that holds all MSSQL arguments diff --git a/src/connection/sql_connection.go b/src/connection/sql_connection.go index 181f411..39835c0 100644 --- a/src/connection/sql_connection.go +++ b/src/connection/sql_connection.go @@ -9,7 +9,7 @@ import ( // go-mssqldb is required for mssql driver but isn't used in code "github.com/jmoiron/sqlx" _ "github.com/microsoft/go-mssqldb" - "github.com/newrelic/infra-integrations-sdk/log" + "github.com/newrelic/infra-integrations-sdk/v3/log" "github.com/newrelic/nri-mssql/src/args" ) diff --git a/src/database/sql_database.go b/src/database/sql_database.go index fbf4965..3c0cf18 100644 --- a/src/database/sql_database.go +++ b/src/database/sql_database.go @@ -4,9 +4,9 @@ package database import ( "reflect" - "github.com/newrelic/infra-integrations-sdk/data/attribute" - "github.com/newrelic/infra-integrations-sdk/data/metric" - "github.com/newrelic/infra-integrations-sdk/integration" + "github.com/newrelic/infra-integrations-sdk/v3/data/attribute" + "github.com/newrelic/infra-integrations-sdk/v3/data/metric" + "github.com/newrelic/infra-integrations-sdk/v3/integration" "github.com/newrelic/nri-mssql/src/connection" ) diff --git a/src/database/sql_database_test.go b/src/database/sql_database_test.go index ad4f9cd..17a09e6 100644 --- a/src/database/sql_database_test.go +++ b/src/database/sql_database_test.go @@ -6,8 +6,8 @@ import ( "sort" "testing" - "github.com/newrelic/infra-integrations-sdk/data/attribute" - "github.com/newrelic/infra-integrations-sdk/integration" + "github.com/newrelic/infra-integrations-sdk/v3/data/attribute" + "github.com/newrelic/infra-integrations-sdk/v3/integration" "github.com/newrelic/nri-mssql/src/connection" "gopkg.in/DATA-DOG/go-sqlmock.v1" ) diff --git a/src/instance/sql_instance.go b/src/instance/sql_instance.go index 6d4dcd4..5d057b8 100644 --- a/src/instance/sql_instance.go +++ b/src/instance/sql_instance.go @@ -5,7 +5,7 @@ import ( "database/sql" "fmt" - "github.com/newrelic/infra-integrations-sdk/integration" + "github.com/newrelic/infra-integrations-sdk/v3/integration" "github.com/newrelic/nri-mssql/src/connection" ) diff --git a/src/instance/sql_instance_test.go b/src/instance/sql_instance_test.go index 219ce3c..a802ca9 100644 --- a/src/instance/sql_instance_test.go +++ b/src/instance/sql_instance_test.go @@ -5,7 +5,7 @@ import ( "regexp" "testing" - "github.com/newrelic/infra-integrations-sdk/integration" + "github.com/newrelic/infra-integrations-sdk/v3/integration" "github.com/newrelic/nri-mssql/src/connection" "github.com/stretchr/testify/assert" "gopkg.in/DATA-DOG/go-sqlmock.v1" diff --git a/src/inventory/inventory.go b/src/inventory/inventory.go index 731e8e9..517151c 100644 --- a/src/inventory/inventory.go +++ b/src/inventory/inventory.go @@ -2,8 +2,8 @@ package inventory import ( - "github.com/newrelic/infra-integrations-sdk/integration" - "github.com/newrelic/infra-integrations-sdk/log" + "github.com/newrelic/infra-integrations-sdk/v3/integration" + "github.com/newrelic/infra-integrations-sdk/v3/log" "github.com/newrelic/nri-mssql/src/connection" ) diff --git a/src/inventory/inventory_test.go b/src/inventory/inventory_test.go index 82a4fa1..d472e9c 100644 --- a/src/inventory/inventory_test.go +++ b/src/inventory/inventory_test.go @@ -6,8 +6,8 @@ import ( "testing" "github.com/jmoiron/sqlx" - "github.com/newrelic/infra-integrations-sdk/data/inventory" - "github.com/newrelic/infra-integrations-sdk/integration" + "github.com/newrelic/infra-integrations-sdk/v3/data/inventory" + "github.com/newrelic/infra-integrations-sdk/v3/integration" "github.com/newrelic/nri-mssql/src/connection" "gopkg.in/DATA-DOG/go-sqlmock.v1" ) diff --git a/src/metrics/metrics.go b/src/metrics/metrics.go index d32f8ca..0f9d213 100644 --- a/src/metrics/metrics.go +++ b/src/metrics/metrics.go @@ -9,10 +9,10 @@ import ( "strconv" "sync" - "github.com/newrelic/infra-integrations-sdk/data/attribute" - "github.com/newrelic/infra-integrations-sdk/data/metric" - "github.com/newrelic/infra-integrations-sdk/integration" - "github.com/newrelic/infra-integrations-sdk/log" + "github.com/newrelic/infra-integrations-sdk/v3/data/attribute" + "github.com/newrelic/infra-integrations-sdk/v3/data/metric" + "github.com/newrelic/infra-integrations-sdk/v3/integration" + "github.com/newrelic/infra-integrations-sdk/v3/log" "github.com/newrelic/nri-mssql/src/args" "github.com/newrelic/nri-mssql/src/connection" "github.com/newrelic/nri-mssql/src/database" diff --git a/src/metrics/metrics_test.go b/src/metrics/metrics_test.go index 32605fd..8313810 100644 --- a/src/metrics/metrics_test.go +++ b/src/metrics/metrics_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/newrelic/infra-integrations-sdk/data/attribute" - "github.com/newrelic/infra-integrations-sdk/integration" + "github.com/newrelic/infra-integrations-sdk/v3/data/attribute" + "github.com/newrelic/infra-integrations-sdk/v3/integration" "github.com/newrelic/nri-mssql/src/args" "github.com/newrelic/nri-mssql/src/connection" "github.com/newrelic/nri-mssql/src/database" diff --git a/src/mssql.go b/src/mssql.go index 8403c04..a26ba43 100644 --- a/src/mssql.go +++ b/src/mssql.go @@ -7,8 +7,8 @@ import ( "runtime" "strings" - "github.com/newrelic/infra-integrations-sdk/integration" - "github.com/newrelic/infra-integrations-sdk/log" + "github.com/newrelic/infra-integrations-sdk/v3/integration" + "github.com/newrelic/infra-integrations-sdk/v3/log" "github.com/newrelic/nri-mssql/src/args" "github.com/newrelic/nri-mssql/src/connection" "github.com/newrelic/nri-mssql/src/instance" diff --git a/tests/helper.go b/tests/helper.go index bf28231..4a4cad3 100644 --- a/tests/helper.go +++ b/tests/helper.go @@ -11,7 +11,7 @@ import ( "path/filepath" "strings" - "github.com/newrelic/infra-integrations-sdk/log" + "github.com/newrelic/infra-integrations-sdk/v3/log" "github.com/xeipuuv/gojsonschema" ) diff --git a/tests/mssql_test.go b/tests/mssql_test.go index 7017381..0b997f1 100644 --- a/tests/mssql_test.go +++ b/tests/mssql_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/newrelic/infra-integrations-sdk/log" + "github.com/newrelic/infra-integrations-sdk/v3/log" "github.com/newrelic/nri-mssql/src/args" "github.com/newrelic/nri-mssql/src/connection" "github.com/stretchr/testify/assert"