书栈网 · BookStack 本次搜索耗时 0.013 秒,为您找到 340 个相关结果.
  • 链路追踪

    412 2022-04-18 《Kratos v2.2 教程》
    链路追踪 配置 SetTracerProvider 使用方法 server 中使用 tracing 采集数据 client 中使用 tracing 采集数据 References 链路追踪 Tracing 中间件使用 OpenTelemetry 实现了链路追踪。 配置 Tracing 中间件中提供了一个配置方法 SetTracerPr...
  • 贡献指南

    227 2022-08-10 《Kratos v2.4 教程》
    贡献指南 Bug修复 功能新增 如何提交代码 Commit 提交规范 type 主要类型 其他类型 scope description body footer examples 只有提交信息 需要引起关注 包含全部结构 release 版本发布 示例 贡献指南 kratos社区希望能够得到广大开发者的帮助,所以希望您在...
  • Tracing

    Configuration WithTracerProvider WithPropagator Usage Tracing for Server Tracing for Client References We use OpenTelemetry for distributed tracing. Configuration Ther...
  • Metadata

    Default Metadata Convention Usage Configuration Get metadata value Set metadata Microservices interact through HTTP and gRPC API, so the service architecture needs to be used...
  • log

    644 2021-07-16 《Kratos v1.0 教程》
    日志基础库 概览 配置选项 使用方式 扩展阅读 日志基础库 概览 基于zap 的field方式实现的高性能log库,提供Info、Warn、Error日志级别;并提供了context支持,方便打印环境信息以及日志的链路追踪,在框架中都通过field方式实现,避免format日志带来的性能消耗。 配置选项 flag env ...
  • Validate

    Installation Example Numerics Bools Strings Messages Code Generation Middleware HTTP gRPC References Validate middleware uses proto-gen-validate generated code for para...
  • Documentation Guide

    Documentation Guide Add/modify Documents Modify the sidebar Document translation Document Specification Documentation Guide This document is maintained in the repository go-...
  • Ent

    Install Ent Create Schema Create DB Connection Client References Any ORM or library is supported in Kratos project for data accessing. Please refer to the examples for integr...
  • 监控接口

    296 2022-04-18 《Kratos v2.2 教程》
    监控接口 接口实现 Counter Gauge Observer References 监控接口 接口实现 Kratos 暴露了三种监控接口,分别是 Counter, Gauge, Observer。 Counter type Counter interface { With ( lvs ... strin...
  • 元信息传递

    207 2023-06-19 《Kratos v2.6 教程》
    元信息传递 默认格式规范 使用方式 注册元信息中间件 获取元信息字段的值 设置元信息字段的值 元信息传递 微服务之间通过 HTTP 和 gRPC API 进行接口交互,服务架构需要使用统一的元信息(Metadata)传输进行微服务间的传递。 目前 gRPC 中可以携带元信息传递,原理是将元信息放入 HTTP Header 中,这样上游即可收到...