Skip to content

Instantly share code, notes, and snippets.

View 1xtr's full-sized avatar
🚧
Today is already tomorrow will be yesterday

Alex 1xtr

🚧
Today is already tomorrow will be yesterday
View GitHub Profile
@ujlbu4
ujlbu4 / .releaserc.yaml
Created August 1, 2020 20:52
semantic release yaml config
branches: ['master']
ci: true
debug: true
dryRun: false
# repositoryUrl: — no need, will use from git origin
tagFormat: '${version}'
# Global plugin options (will be passed to all plugins)
preset: 'conventionalcommits'
gitlabUrl: 'http://gitlab.your-domain.com/'
@intech
intech / TracingMethods.js
Last active September 6, 2022 15:04
Moleculer middleware tracing methods
// file: middlewares/tracingMethods.js
const { AsyncLocalStorage } = require("async_hooks");
const { Utils } = require("moleculer");
const storage = new AsyncLocalStorage();
module.exports = {
name: "tracingMethods",
localAction(next) {
return ctx => {
if (this.isTracingEnabled()) {
const { span } = ctx;