Shared utility code for Dapr runtime.
Please refer to our Dapr Community Code of Conduct
Shared utility code for Dapr runtime
License: Apache License 2.0
Shared utility code for Dapr runtime.
Please refer to our Dapr Community Code of Conduct
We should contribute upstream with the changes to cron
and remove the /cron
folder once our contribution is accepted.
Add error code prefix for cryptography in error codes which will be used for error standardization of Cryptography API. Please refer to this issue for more details #7491
Report on unit test coverage using CodeCov and make it available in the report below:
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
ErrorCodes
Feature has been enabled.runtime
and components
Similar to dapr/components-contrib#1639
RELEASE NOTE: FIX linter issues with golangci action upgrade
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.
Package github.com/benbjohnson/clock is used by Dapr kit in the cron
package, but it's been archived by the author as deprecated.
We need to replace it, possibly with k8s.io/utils/clock
which is used in dapr/dapr for other purposes.
https://github.com/dapr/kit/blob/main/logger/logger.go#L40
logrus.Level
is faster and simpler// LogLevel is Dapr Logger Level type
type LogLevel logrus.Level
type Logger interface {
//....
// add method
IsLevelEnabled(level LogLevel) bool
}
The hyperlink should lead to the accepted proposal for error-handling codes.
The hyperlink leads to a 404-Not found page.
Click on the accepted dapr/proposal
hyperlink in the Readme file of the errors
directory.
RELEASE NOTE: FIX hyperlink in the errors
Readme file.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.