Skip to content

Commit 5225027

Browse files
committed
Change feature flag driver name from OSS_GO_SQL to GOLANG
Update connector-service endpoint to use GOLANG as the driver identifier: - Endpoint: /api/2.0/connector-service/feature-flags/GOLANG/{version} Signed-off-by: Samikshya Chand <samikshya.chand@databricks.com> Signed-off-by: samikshya-chand_data <samikshya.chand@databricks.com>
1 parent 3525ca5 commit 5225027

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

telemetry/featureflag.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ func fetchFeatureFlags(ctx context.Context, host string, httpClient *http.Client
226226
}
227227

228228
// Construct connector-service endpoint URL with driver name and version
229-
// Format: /api/2.0/connector-service/feature-flags/OSS_GO_SQL/{version}
229+
// Format: /api/2.0/connector-service/feature-flags/GOLANG/{version}
230230
var endpoint string
231231
if strings.HasPrefix(host, "http://") || strings.HasPrefix(host, "https://") {
232-
endpoint = fmt.Sprintf("%s/api/2.0/connector-service/feature-flags/OSS_GO_SQL/%s", host, driverVersion)
232+
endpoint = fmt.Sprintf("%s/api/2.0/connector-service/feature-flags/GOLANG/%s", host, driverVersion)
233233
} else {
234-
endpoint = fmt.Sprintf("https://%s/api/2.0/connector-service/feature-flags/OSS_GO_SQL/%s", host, driverVersion)
234+
endpoint = fmt.Sprintf("https://%s/api/2.0/connector-service/feature-flags/GOLANG/%s", host, driverVersion)
235235
}
236236

237237
req, err := http.NewRequestWithContext(ctx, "GET", endpoint, nil)

telemetry/featureflag_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func TestFetchFeatureFlags_Success(t *testing.T) {
323323
if r.Method != "GET" {
324324
t.Errorf("Expected GET request, got %s", r.Method)
325325
}
326-
expectedPath := "/api/2.0/connector-service/feature-flags/OSS_GO_SQL/1.0.0"
326+
expectedPath := "/api/2.0/connector-service/feature-flags/GOLANG/1.0.0"
327327
if r.URL.Path != expectedPath {
328328
t.Errorf("Expected %s path, got %s", expectedPath, r.URL.Path)
329329
}

0 commit comments

Comments
 (0)