Code Monkey home page Code Monkey logo

kit's Introduction

kit's People

Contributors

1046102779 avatar aaroncrawfis avatar annucode avatar artursouza avatar berndverst avatar chaitanyab2311 avatar cicoyle avatar codefromthecrypt avatar daixiang0 avatar dmitsh avatar elena-kolevska avatar fowlerlee avatar greenie-msft avatar italypaleale avatar joshvanl avatar mikeee avatar pkedy avatar robertojrojas avatar sarsharma avatar shubham1172 avatar sicoyle avatar willtsai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kit's Issues

Remove cron fork

We should contribute upstream with the changes to cron and remove the /cron folder once our contribution is accepted.

Dapr Error Handling/Codes - Add Internal Shared Functionality

Describe the proposal

Add internal shared functionality to facilitate the Error communication between the runtime and components.
This functionality will help in the implementation of the Dapr Error Handling/Codes Proposal
As a starting point, this functionality should consists of the following:

Here is a sample Custom Error snippet:

type DaprError struct {
   err error
   code ....
   description string
   resourceInfoData *ResourceInfoData
   metadata map[string]string
}

func NewDaprError(code ...., err error) DaprError {
	return DaprError{
		code: code,
		err: err,
	}
}

// Error implements the error interface.
func (c DaprError) Error() string {
	return c.err.Error()
}

// Unwrap implements the error unwrapping interface.
func (c DaprError) Unwrap() error {
	return c.err
}

// Description returns the description of the error.
func (c DaprError) Description() string {
	if c.description != "" {
		return c.description
	}
	return c.err.Error()
}

func (c *DaprError) SetDescription(description string) {
	c.description = description
}

// Add methods to access code, resourceInfoData, metadata
// Add methods to set resourceInfoData and metadata
  • Utility/Helper Interfaces and Functions as needed.
  • Ability to determine if the ErrorCodes Feature has been enabled.
  • Constants to be shared between runtime and components

please add concurrency folder for v0.12.1 tag

Describe the proposal

when install depend for dapr, found this error

go: module github.com/dapr/kit@upgrade found (v0.12.1), but does not contain package github.com/dapr/kit/concurrency

check v0.12.1 found this tag no consist the concurrency folder, so please add this folder with no compatibility issue and push to v0.12.1 fix this problem, thanks.

[proposal]: logger level use int base type instead of string

Describe the proposal

https://github.com/dapr/kit/blob/main/logger/logger.go#L40

use int base type, benefits:

  1. Better performance
  2. Log level comparable
  3. Type conversion to logrus.Level is faster and simpler
  4. For better performance, when output DEBUG logs we can first determine the log level

refactor detail

// LogLevel is Dapr Logger Level type
type LogLevel logrus.Level
type Logger interface {
//....
// add method
IsLevelEnabled(level LogLevel) bool
}

404 error in Readme file of the `errors` directory

Expected Behavior

The hyperlink should lead to the accepted proposal for error-handling codes.

Actual Behavior

The hyperlink leads to a 404-Not found page.

Steps to Reproduce the Problem

Click on the accepted dapr/proposal hyperlink in the Readme file of the errors directory.

Release Note

RELEASE NOTE: FIX hyperlink in the errors Readme file.

Add Placement error code

Describe the proposal

The placement error api is being updated as per issue #7490 (Error Standardization: Placement API) and thus I wish to add the error code prefix to the kit to use in the error handling via .WithErrorInfo() . This proposal is to do similar work as was done in PR https://github.com/dapr/kit/pull/84/files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.