This repository has been archived by the owner on Jan 27, 2022. It is now read-only.
forked from googleapis/google-cloud-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README.md: news about latest changes
Also, move old news, and add MIGRATION.md and a link to it. Change-Id: Ia1c2ec7b97f4af75822be010b5f43d37bfe9a834 Reviewed-on: https://code-review.googlesource.com/14450 Reviewed-by: kokoro <[email protected]> Reviewed-by: Michael Darakananda <[email protected]> Reviewed-by: Jaana Burcu Dogan <[email protected]>
- Loading branch information
Showing
3 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Code Changes | ||
|
||
## v0.10.0 | ||
|
||
- pubsub: Replace | ||
|
||
``` | ||
sub.ModifyPushConfig(ctx, pubsub.PushConfig{Endpoint: "https://example.com/push"}) | ||
``` | ||
with | ||
``` | ||
sub.Update(ctx, pubsub.SubscriptionConfigToUpdate{ | ||
PushConfig: &pubsub.PushConfig{Endpoint: "https://example.com/push"}, | ||
}) | ||
``` | ||
- trace: traceGRPCServerInterceptor will be provided from *trace.Client. | ||
Given an initialized `*trace.Client` named `tc`, instead of | ||
``` | ||
s := grpc.NewServer(grpc.UnaryInterceptor(trace.GRPCServerInterceptor(tc))) | ||
``` | ||
write | ||
``` | ||
s := grpc.NewServer(grpc.UnaryInterceptor(tc.GRPCServerInterceptor())) | ||
``` | ||
- trace trace.GRPCClientInterceptor will also provided from *trace.Client. | ||
Instead of | ||
``` | ||
conn, err := grpc.Dial(srv.Addr, grpc.WithUnaryInterceptor(trace.GRPCClientInterceptor())) | ||
``` | ||
write | ||
``` | ||
conn, err := grpc.Dial(srv.Addr, grpc.WithUnaryInterceptor(tc.GRPCClientInterceptor())) | ||
``` | ||
- trace: We removed the deprecated `trace.EnableGRPCTracing`. Use the gRPC | ||
interceptor as a dial option as shown below when initializing Cloud package | ||
clients: | ||
``` | ||
c, err := pubsub.NewClient(ctx, "project-id", option.WithGRPCDialOption(grpc.WithUnaryInterceptor(tc.GRPCClientInterceptor()))) | ||
if err != nil { | ||
... | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters