-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(logging): Debranding of Stackdriver (#2839)
Fixes #3007 Stackdriver Logging is now called Cloud Logging, so we are debranding across all Cloud Logging repos. Here is the update for the readme of logging client library in Go.
- Loading branch information
Simon Zeltser
authored
Oct 14, 2020
1 parent
0113f76
commit 77e9aad
Showing
9 changed files
with
21 additions
and
21 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 |
---|---|---|
|
@@ -150,7 +150,7 @@ $ gcloud auth login | |
$ gcloud datastore indexes create datastore/testdata/index.yaml | ||
|
||
# Creates a Google Cloud storage bucket with the same name as your test project, | ||
# and with the Stackdriver Logging service account as owner, for the sink | ||
# and with the Cloud Logging service account as owner, for the sink | ||
# integration tests in logging. | ||
$ gsutil mb gs://$GCLOUD_TESTS_GOLANG_PROJECT_ID | ||
$ gsutil acl ch -g [email protected]:O gs://$GCLOUD_TESTS_GOLANG_PROJECT_ID | ||
|
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
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
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 |
---|---|---|
|
@@ -95,8 +95,8 @@ const ( | |
SharedServiceAccount = "serviceAccount:[email protected]" | ||
) | ||
|
||
// WriteLogEntries writes log entries to Stackdriver Logging. All log entries in | ||
// Stackdriver Logging are written by this method. | ||
// WriteLogEntries writes log entries to Cloud Logging. All log entries in | ||
// Cloud Logging are written by this method. | ||
func (h *loggingHandler) WriteLogEntries(_ context.Context, req *logpb.WriteLogEntriesRequest) (*logpb.WriteLogEntriesResponse, error) { | ||
if !strings.HasPrefix(req.LogName, "projects/"+ValidProjectID+"/") && !strings.HasPrefix(req.LogName, "organizations/"+ValidOrgID+"/") { | ||
return nil, fmt.Errorf("bad LogName: %q", req.LogName) | ||
|
@@ -130,7 +130,7 @@ func (h *loggingHandler) WriteLogEntries(_ context.Context, req *logpb.WriteLogE | |
} | ||
|
||
// ListLogEntries lists log entries. Use this method to retrieve log entries | ||
// from Stackdriver Logging. | ||
// from Cloud Logging. | ||
// | ||
// This fake implementation ignores project IDs. It does not support full filtering, only | ||
// expressions of the form "logName = NAME". | ||
|
@@ -222,7 +222,7 @@ func compareTimestamps(ts1, ts2 *tspb.Timestamp) int64 { | |
return int64(ts1.Nanos - ts2.Nanos) | ||
} | ||
|
||
// Lists monitored resource descriptors that are used by Stackdriver Logging. | ||
// Lists monitored resource descriptors that are used by Cloud Logging. | ||
func (h *loggingHandler) ListMonitoredResourceDescriptors(context.Context, *logpb.ListMonitoredResourceDescriptorsRequest) (*logpb.ListMonitoredResourceDescriptorsResponse, error) { | ||
return &logpb.ListMonitoredResourceDescriptorsResponse{ | ||
ResourceDescriptors: []*mrpb.MonitoredResourceDescriptor{ | ||
|
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
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