Skip to content

Commit

Permalink
Merge ae114a8 into 5570f4f
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy authored Dec 7, 2022
2 parents 5570f4f + ae114a8 commit 5da7d38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
dfutil "github.com/devfile/library/pkg/util"
indexSchema "github.com/devfile/registry-support/index/generator/schema"
"github.com/devfile/registry-support/registry-library/library"
"k8s.io/klog"

"github.com/redhat-developer/odo/pkg/api"
"github.com/redhat-developer/odo/pkg/devfile"
Expand Down Expand Up @@ -40,6 +41,7 @@ func NewRegistryClient(fsys filesystem.Filesystem, preferenceClient preference.C

// PullStackFromRegistry pulls stack from registry with all stack resources (all media types) to the destination directory
func (o RegistryClient) PullStackFromRegistry(registry string, stack string, destDir string, options library.RegistryOptions) error {
klog.V(3).Infof("sending telemetry data: %#v", options.Telemetry)
return library.PullStackFromRegistry(registry, stack, destDir, options)
}

Expand Down
5 changes: 5 additions & 0 deletions pkg/segment/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ func getTelemetryForDevfileRegistry(ctx context.Context) (registryLibrary.Teleme
}

envConfig := envcontext.GetEnvConfig(ctx)

if envConfig.TelemetryCaller != "" {
td.Client += "-" + envConfig.TelemetryCaller
}

if envConfig.OdoDebugTelemetryFile != nil {
return td, nil
}
Expand Down

0 comments on commit 5da7d38

Please sign in to comment.