Closed dsaliberti closed 4 months ago
@izaaz hey hello 👋 is there a chance to consider this with the CLI team?
Or maybe, it's not meant to work with cross packages calls
it just feels a bit weird telling my team to leave a comment to make status
happy like:
// Ampli.instance.
thanks, I appreciate 👍
Hi @dsaliberti, please open issues for Ampli on the https://github.com/amplitude/ampli-examples repo so they can be directed to the right place. Thanks!
Hi all First of all apologies that this is surely not be the right repo, but I don't think the command line is open anyway
Summary
My point is quite simple:
I create my strongly typed events and pass it to my own AnalyticsClient which finally calls
ampli.track
But status command fails because the ampli instance is not in the same fileMotivations
In more details: In packages/Feature/FeatureLogic I call:
analyticsClient.logEvent(MyStronglyTypedEventViewed(params: vars))
where MyStronglyTypedEventViewed(params:) is from my tracking planand finally in: packages/AnalyticsClient I receive such call and pass it to Ampli instance
track
methodBut sadly it seems the instance has to be in the same file of the strongly typed events for the command
ampli status
to succeed.The request
Could we consider that
status
could do what it does today OR requires at least one occurrence of<instance>.track(event:)
wherever it is?Thank you Danilo Aliberti