Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

StackdriverStatsExporter.createAndRegister takes 10 seconds #2090

Description

@rockwotj

Please answer these questions before submitting a bug report.

What version of OpenCensus are you using?

0.28.3

What JVM are you using (java -version)?

11.0.13

What did you do?

If possible, provide a recipe for reproducing the error.

The following line of code is taking 10 seconds to execute, and the document suggests running this on the main thread at startup. This delay is causing K8S to kill the pods before they startup.

StackdriverStatsExporter.createAndRegister(
                StackdriverStatsConfiguration.builder()
                    .setMetricNamePrefix("custom.googleapis.com/<redacted>/")
                    .build()
            )

Additional context

Add any other context about the problem here.

We're running on GKE using distroless-java docker images

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions