
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
@voiceflow/metrics
Advanced tools
Helpers for exposing server-side metrics
ClientClient.Metricsimport { Counter } from '@opentelemetry/api-metrics';
import * as VFMetrics from '@voiceflow/metrics';
import log from '@/logger';
import { Config } from '@/types';
export class Metrics extends VFMetrics.Client.Metrics {
protected counters: {
foo: {
bar: Counter;
};
};
constructor(config: Config) {
super({ ...config, SERVICE_NAME: 'example-service' });
super.once('ready', ({ port, path }: VFMetrics.Client.Events['ready']) => {
log.info(`[metrics] exporter ready ${log.vars({ port, path })}`);
});
this.counters = {
foo: {
bar: this.meter.createCounter('foo_bar', { description: 'Example description' }),
},
};
}
fooBar(): void {
this.counters.foo.bar.add(1);
}
}
const MetricsClient = (config: Config) => new Metrics(config);
export type MetricsType = Metrics;
export default MetricsClient;
TestingTesting.createBaseConfigimport * as VFMetrics from '@voiceflow/metrics';
const baseConfig = await VFMetrics.Testing.createBaseConfig();
Testing.MetricsAsserterimport * as VFMetrics from '@voiceflow/metrics';
import MetricsClient from '@/lib/clients/metrics';
const metricsAsserter = new VFMetrics.Testing.MetricsAsserter(MetricsClient);
describe('metrics client unit tests', () => {
it('fooBar', async () => {
const fixture = await metricsAsserter.assertMetric({ expected: /^foo_bar_total 1 \d+$/m });
fixture.metrics.fooBar();
await fixture.assert();
});
});
FAQs
Helpers for exposing server-side metrics
The npm package @voiceflow/metrics receives a total of 10 weekly downloads. As such, @voiceflow/metrics popularity was classified as not popular.
We found that @voiceflow/metrics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 27 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.