Closed psx95 closed 1 year ago
I don't understand how this fixes the problem. If you remove the .setProjectId(PROJECT_ID)
from your sample code, it seems like we'll still have the following sequence of events
Yes, that's a good point, let me retrace my steps and see if I missed something. Thanks.
@punya Yup, you are right when project ID is not explicitly set, it leads to the same issue. Closing this PR since #193 contains this change and additional changes required to make it work for the case when Project ID is not set.
Fixes #141
Lazy loading Project ID in trace configuration prevents crashes when using the exporter-trace with opencensus-shim.
Test Setup
Initialization code