diff --git a/app/cli/internal/telemetry/posthog/posthog.go b/app/cli/internal/telemetry/posthog/posthog.go index ee5e6648c..39c3683c3 100644 --- a/app/cli/internal/telemetry/posthog/posthog.go +++ b/app/cli/internal/telemetry/posthog/posthog.go @@ -1,5 +1,5 @@ // -// Copyright 2024 The Chainloop Authors. +// Copyright 2024-2026 The Chainloop Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ func NewClient(apiKey string, endpointURL string) (*Tracker, error) { noopLogger := log.New(io.Discard, "", 0) client, err := posthog.NewWithConfig(apiKey, posthog.Config{ Endpoint: endpointURL, - Logger: posthog.StdLogger(noopLogger), + Logger: posthog.StdLogger(noopLogger, false), }) if err != nil { return nil, fmt.Errorf("failed to create PostHog client: %w", err) diff --git a/go.mod b/go.mod index 02032ce81..f2694385f 100644 --- a/go.mod +++ b/go.mod @@ -87,7 +87,7 @@ require ( github.com/open-policy-agent/opa v1.12.1 github.com/openvex/go-vex v0.2.5 github.com/owenrumney/go-sarif/v3 v3.3.0 - github.com/posthog/posthog-go v0.0.0-20240327112532-87b23fe11103 + github.com/posthog/posthog-go v1.14.0 github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 github.com/sigstore/cosign/v3 v3.0.4 github.com/sigstore/fulcio v1.8.5 diff --git a/go.sum b/go.sum index 3cfcf3886..ce00b1564 100644 --- a/go.sum +++ b/go.sum @@ -1127,8 +1127,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/posthog/posthog-go v0.0.0-20240327112532-87b23fe11103 h1:YEWdfKVtz5Db85b8RLIZ1IY3PLSB1fW49hvK2yIL6JU= -github.com/posthog/posthog-go v0.0.0-20240327112532-87b23fe11103/go.mod h1:QjlpryJtfYLrZF2GUkAhejH4E7WlDbdKkvOi5hLmkdg= +github.com/posthog/posthog-go v1.14.0 h1:pN0+v7kvKkykRQDf6E0KNYJvKqhJ+VzQGlfxYHfZMhs= +github.com/posthog/posthog-go v1.14.0/go.mod h1:xsVOW9YImilUcazwPNEq4PJDqEZf2KeCS758zXjwkPg= github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 h1:o4JXh1EVt9k/+g42oCprj/FisM4qX9L3sZB3upGN2ZU= github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=