profile
viewpoint

drPytho/nmcli_rofi 6

A rip of nmcli_dmenu but using rofi. Removed som things I do not like.

drPytho/MailBlaster 2

Send a lot of mails with a sertan template.

drPytho/mecah 2

A key-value in-memory database in Rust

drPytho/raytracer 1

A simple raytracer in c++

drPytho/RISK 1

Ett projekt som innehåller de viktiga delarna för att visa kunskaper inom Webbutveckling 2,3 och Webbserverprogrammering 2

drPytho/simple_convolution 1

A simple python convolution filter tester

drPytho/aui 0

Archlinux Ultimate Install

drPytho/Cinnamon 0

A Linux Desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.

drPytho/config 0

My configurations

issue openedonfido/onfido-openapi-spec

Create Applicant Error does not match expected format.

{"error":{"type":"validation_error","message":"There was a validation error on this request","fields":{"address":[{"postcode":["can't be blank"]}]}}}

Does not match the generated code from https://openapi-generator.tech/ for the https://github.com/onfido/onfido-openapi-spec/blob/master/responses/default_error.yaml.

The additionalProperties: true is not expected to be a list of objects (as returned by API) but rather an object on its own. https://swagger.io/docs/specification/data-models/dictionaries/. See free-form.

created time in 21 days

fork drPytho/doom-emacs

An Emacs framework for the stubborn martian hacker

fork in 21 days

startedjunegunn/fzf.vim

started time in a month

startedjunegunn/fzf

started time in a month

delete branch voi-go/svc

delete branch : add-metrics-to-logger

delete time in 2 months

push eventvoi-go/svc

drpytho

commit sha 3e4683221f286db8f6bc5886cf220df50dc23b84

Add possibility for metrics from the zap logger

view details

drPytho

commit sha 7811f59e5fdb48e30e9026dad7ccf5c8c2f9d80f

Merge pull request #19 from voi-go/add-metrics-to-logger Add possibility for metrics from the zap logger

view details

push time in 2 months

PR merged voi-go/svc

Add possibility for metrics from the zap logger patch
+114 -84

0 comment

3 changed files

drPytho

pr closed time in 2 months

push eventvoi-go/svc

push time in 2 months

push eventvoi-go/svc

drpytho

commit sha cf1bfa82b3f676e2326e5c6ed78441ff475e28aa

Include coverage.txt

view details

push time in 2 months

Pull request review commentvoi-go/svc

Add possibility for metrics from the zap logger

 import ( 	"os" 	"time" +	"github.com/blendle/zapdriver"+	"github.com/prometheus/client_golang/prometheus" 	"go.uber.org/zap" 	"go.uber.org/zap/zapcore" ) -func newLogger(level zapcore.Level, encoder zapcore.Encoder) (*zap.Logger, zap.AtomicLevel) {+func (s *SVC) newLogger(level zapcore.Level, encoder zapcore.Encoder) (*zap.Logger, zap.AtomicLevel) { 	atom := zap.NewAtomicLevel() 	atom.SetLevel(level) +	zapOpts := append(s.zapOpts, zap.ErrorOutput(zapcore.Lock(os.Stderr)), zap.AddCaller())+ 	logger := zap.New(zapcore.NewSampler(zapcore.NewCore( 		encoder, 		zapcore.Lock(os.Stdout), 		atom, 	), time.Second, 100, 10),-		zap.ErrorOutput(zapcore.Lock(os.Stderr)),-		zap.AddCaller(),+		zapOpts..., 	)  	return logger, atom }++func WithZapMetrics() Option {

Hope this is a nice comment :haircut_man:

drPytho

comment created time in 2 months

Pull request review commentvoi-go/svc

Add possibility for metrics from the zap logger

 import ( 	"os" 	"time" +	"github.com/blendle/zapdriver"+	"github.com/prometheus/client_golang/prometheus" 	"go.uber.org/zap" 	"go.uber.org/zap/zapcore" ) -func newLogger(level zapcore.Level, encoder zapcore.Encoder) (*zap.Logger, zap.AtomicLevel) {+func (s *SVC) newLogger(level zapcore.Level, encoder zapcore.Encoder) (*zap.Logger, zap.AtomicLevel) { 	atom := zap.NewAtomicLevel() 	atom.SetLevel(level) +	zapOpts := append(s.zapOpts, zap.ErrorOutput(zapcore.Lock(os.Stderr)), zap.AddCaller())+ 	logger := zap.New(zapcore.NewSampler(zapcore.NewCore( 		encoder, 		zapcore.Lock(os.Stdout), 		atom, 	), time.Second, 100, 10),-		zap.ErrorOutput(zapcore.Lock(os.Stderr)),-		zap.AddCaller(),+		zapOpts..., 	)  	return logger, atom }++func WithZapMetrics() Option {+	return func(s *SVC) error {+		requestCount := prometheus.NewCounterVec(+			prometheus.CounterOpts{+				Name: "logger_emitted_entries",+				Help: "Number of log messaged emitted.",

And we even have the misspell linter enabled. :thinking:

drPytho

comment created time in 2 months

push eventvoi-go/svc

drpytho

commit sha 3e4683221f286db8f6bc5886cf220df50dc23b84

Add possibility for metrics from the zap logger

view details

push time in 2 months

PR opened voi-go/svc

Add possibility for metrics from the zap logger
+112 -84

0 comment

3 changed files

pr created time in 2 months

create barnchvoi-go/svc

branch : add-metrics-to-logger

created branch time in 2 months

startedgrafana/tanka

started time in 2 months

startedspotify/backstage

started time in 3 months

issue openedFairwindsOps/pluto

Automatic upgrade of files

Add a flag to upgrade files that are on deprecated versions e.g. deployments.v1beta1.extensions -> deployments.v1.apps.

created time in 3 months

startedFairwindsOps/pluto

started time in 3 months

more