From 48922bc55259803f1717e91afc9f749a60d61184 Mon Sep 17 00:00:00 2001 From: ivanahuckova Date: Fri, 21 Mar 2025 16:09:19 +0100 Subject: [PATCH] Update comment --- pkg/plugins/backendplugin/grpcplugin/client_v2.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/plugins/backendplugin/grpcplugin/client_v2.go b/pkg/plugins/backendplugin/grpcplugin/client_v2.go index 089d8f42dd0..05847941447 100644 --- a/pkg/plugins/backendplugin/grpcplugin/client_v2.go +++ b/pkg/plugins/backendplugin/grpcplugin/client_v2.go @@ -175,7 +175,8 @@ func (c *ClientV2) QueryData(ctx context.Context, req *backend.QueryDataRequest) if status.Code(err) == codes.Unavailable { connectionErr := plugins.ErrPluginGrpcConnectionUnavailableBase.Errorf("%v", err) - // Check if the plugin is running in a cloud environment + // Check if we have a stackID in the context and if so, add a contact support message + // stackID is set when Grafana is hosted _, hasStackId := pluginmetrics.StackIDFromContext(ctx) if hasStackId { return nil,connectionErr.WithContactSupportMessage()