Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/vendor/google.golang.org/grpc
renovate[bot] b607fe0969
fix(deps): update module google.golang.org/grpc to v1.68.1 (#15269)
5 months ago
..
attributes update dskit to latest version (#11287) 2 years ago
authz/audit update dskit to latest version (#11287) 2 years ago
backoff feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
balancer fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
binarylog/grpc_binarylog_v1 chore: update google.golang.org/grpc to v1.67.1 (#14572) 7 months ago
channelz Bump cloud.google.com/go/storage from 1.27.0 to 1.29.0 (#8276) 2 years ago
codes feat: upgrade prometheus (#13671) 10 months ago
connectivity Update Prometheus to latest (#5545) 3 years ago
credentials fix(deps): update module google.golang.org/grpc to v1.68.1 (#15269) 5 months ago
encoding feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
experimental/stats chore: update google.golang.org/grpc to v1.67.1 (#14572) 7 months ago
grpclog chore: update google.golang.org/grpc to v1.67.1 (#14572) 7 months ago
health/grpc_health_v1 chore: delete unused metastore and WAL code (#14821) 7 months ago
internal fix(deps): update module google.golang.org/grpc to v1.68.1 (#15269) 5 months ago
keepalive chore: update google.golang.org/grpc to v1.67.1 (#14572) 7 months ago
mem fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
metadata feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
orca fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
peer feat: upgrade prometheus (#13671) 10 months ago
resolver chore: update google.golang.org/grpc to v1.67.1 (#14572) 7 months ago
serviceconfig Bump cloud.google.com/go/storage from 1.27.0 to 1.29.0 (#8276) 2 years ago
stats fix(deps): update module github.com/fsouza/fake-gcs-server to v1.50.2 (#14313) 7 months ago
status ingestion: native otlp ingestion support (#10727) 2 years ago
tap update dskit to latest version (#11287) 2 years ago
test/bufconn feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
xds fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
AUTHORS Add vendor stuff. 7 years ago
CODE-OF-CONDUCT.md Fix duplicate labels (update cortex) (#1280) 6 years ago
CONTRIBUTING.md fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
GOVERNANCE.md Fix duplicate labels (update cortex) (#1280) 6 years ago
LICENSE Add vendor stuff. 7 years ago
MAINTAINERS.md feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
Makefile feat: upgrade prometheus (#13671) 10 months ago
NOTICE.txt Update Prometheus to latest (#5545) 3 years ago
README.md feat: upgrade prometheus (#13671) 10 months ago
SECURITY.md feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
backoff.go Bump cloud.google.com/go/storage from 1.27.0 to 1.29.0 (#8276) 2 years ago
balancer_wrapper.go fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
call.go ingestion: native otlp ingestion support (#10727) 2 years ago
clientconn.go fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
codec.go feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
dialoptions.go fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
doc.go feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
interceptor.go ingestion: native otlp ingestion support (#10727) 2 years ago
picker_wrapper.go feat: upgrade prometheus (#13671) 10 months ago
preloader.go feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
resolver_wrapper.go feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
rpc_util.go fix(deps): update module github.com/opentracing-contrib/go-grpc to v0.1.0 (#14905) 6 months ago
server.go chore: update google.golang.org/grpc to v1.67.1 (#14572) 7 months ago
service_config.go feat: upgrade prometheus (#13671) 10 months ago
stream.go feat(storage): GCS backend using thanos.io/objstore (#11132) 7 months ago
stream_interfaces.go chore: update google.golang.org/grpc to v1.67.1 (#14572) 7 months ago
trace.go chore(deps): Update Prometheus in Loki and Promtail (#12245) 1 year ago
trace_notrace.go chore(deps): Update Prometheus in Loki and Promtail (#12245) 1 year ago
trace_withtrace.go chore(deps): Update Prometheus in Loki and Promtail (#12245) 1 year ago
version.go fix(deps): update module google.golang.org/grpc to v1.68.1 (#15269) 5 months ago

README.md

gRPC-Go

GoDoc GoReportCard codecov

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the Go gRPC docs, or jump directly into the quick start.

Prerequisites

Installation

Simply add the following import to your code, and then go [build|run|test] will automatically fetch the necessary dependencies:

import "google.golang.org/grpc"

Note: If you are trying to access grpc-go from China, see the FAQ below.

Learn more

FAQ

I/O Timeout Errors

The golang.org domain may be blocked from some countries. go get usually produces an error like the following when this happens:

$ go get -u google.golang.org/grpc
package google.golang.org/grpc: unrecognized import path "google.golang.org/grpc" (https fetch: Get https://google.golang.org/grpc?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

To build Go code, there are several options:

  • Set up a VPN and access google.golang.org through that.

  • With Go module support: it is possible to use the replace feature of go mod to create aliases for golang.org packages. In your project's directory:

    go mod edit -replace=google.golang.org/grpc=github.com/grpc/grpc-go@latest
    go mod tidy
    go mod vendor
    go build -mod=vendor
    

    Again, this will need to be done for all transitive dependencies hosted on golang.org as well. For details, refer to golang/go issue #28652.

Compiling error, undefined: grpc.SupportPackageIsVersion

Please update to the latest version of gRPC-Go using go get google.golang.org/grpc.

How to turn on logging

The default logger is controlled by environment variables. Turn everything on like this:

$ export GRPC_GO_LOG_VERBOSITY_LEVEL=99
$ export GRPC_GO_LOG_SEVERITY_LEVEL=info

The RPC failed with error "code = Unavailable desc = transport is closing"

This error means the connection the RPC is using was closed, and there are many possible reasons, including:

  1. mis-configured transport credentials, connection failed on handshaking
  2. bytes disrupted, possibly by a proxy in between
  3. server shutdown
  4. Keepalive parameters caused connection shutdown, for example if you have configured your server to terminate connections regularly to trigger DNS lookups. If this is the case, you may want to increase your MaxConnectionAgeGrace, to allow longer RPC calls to finish.

It can be tricky to debug this because the error happens on the client side but the root cause of the connection being closed is on the server side. Turn on logging on both client and server, and see if there are any transport errors.