-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: send js-ceramic and ceramic-one versions to CAS when creating requests #3246
Conversation
Metrics.observe(VERSION_INFO, 1, { | ||
jsCeramicVersion: this._versionInfo.cliPackageVersion, | ||
jsCeramicGitHash: this._versionInfo.gitHash, | ||
ceramicOneVersion: ipfsVersion, | ||
ceramicOneVersion: this._versionInfo.ceramicOneVersion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a small downside of this is that if ipfs/ceramic-one is upgraded out from under a running js-ceramic node, the js-ceramic node will continue to report the old version of ipfs/C1 until js-ceramic restarts. Since it should be rare to upgrade C1 without also at least restarting js-ceramic, I think this is acceptable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i think thats a really weird edge case, and we can also tell when it happens. i think this metric is fine
stateStoreDirectory, | ||
anchorOnRequest: false, | ||
indexing: { | ||
db: `sqlite://${stateStoreDirectory}/ceramic.sqlite`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is sqlite hardcoded in? just a side question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a test file, so yes this test always uses sqlite
disableComposedb: true, | ||
enableHistoricalSync: false, | ||
}, | ||
pubsubTopic: '/ceramic/inmemory/test', // necessary so Ceramic instances can talk to each other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would like to see a constant for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just a test file, the value used here could be anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had a small change request but not critical, approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c930424
to
83d94cb
Compare
js-ceramic half corresponding to ceramicnetwork/ceramic-anchor-service#1232
Builds on #3245