GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Initialize the default MonitoredResource from a GAE environment by gregw · Pull Request #1535 · googleapis/google-cloud-java

Conversation

@gregw

@gregw gregw commented Jan 13, 2017

Copy link
Copy Markdown

This PR is based on work done for GoogleCloudPlatform/jetty-runtime#81.
The creation of a MonitoredResource based on the GAE environment variables is probably general purpose enough for the conde to be included here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gregw
Initialize the default MonitoredResource from a GAE environment
646ee05
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 13, 2017
@gregw

gregw commented Jan 13, 2017

Copy link
Copy Markdown
Author

@meltsufin FYI

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw gregw mentioned this pull request Jan 13, 2017
Stackdriver logging #68 GoogleCloudPlatform/jetty-runtime#81
Merged
@coveralls

coveralls commented Jan 13, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) to 83.423% when pulling 646ee05 on jetty-project:flexMonitoredResource into d4d494d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@meltsufin

meltsufin commented Jan 13, 2017

Copy link
Copy Markdown
Contributor

Thanks @gregw!

@garrettjonesgoogle Can you please take a look at this? We're trying to contribute the code we've developed for the TracingLogHandler back into the library, and this is just a part of it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

garrettjonesgoogle
garrettjonesgoogle reviewed Jan 13, 2017
View reviewed changes
Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java
.setSeverity(severityFor(level));
if (gaeInstanceId != null) {
builder.addLabel("appengine.googleapis.com/instance_name", gaeInstanceId);
}

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw

gregw commented Jan 13, 2017

Copy link
Copy Markdown
Author

@garrettjonesgoogle

in the case of gaeInstance, if the core of this PR is accepted (creating a GAE MonitoredResource), then it would be natural for the LoggingHandler to also set the gaeInstance. Also note #1532 that currently there is no need for AsyncLoggingHandler, as the base handler is now Async.

Either way I think a pluggable strategy would be good and better than enhanceLogEntry and I'd be happy to have a go at a PR for it.

I'm thinking:

interface LoggingEnhancer {
  MonitoredResource getDefaultResource();
  void enhanceLogEntry(LogEntry.Builder builder, LogRecord record);
}

Then we can add a GaeFlexLoggingEnhancer to the build so that a logging.properties file could look like:

handlers=com.google.cloud.logging.LoggingHandler
com.google.cloud.logging.LoggingHandler.enhancer=com.google.cloud.logging.GaeFlexLoggingEnhancer
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garrettjonesgoogle

garrettjonesgoogle commented Jan 13, 2017

Copy link
Copy Markdown
Contributor

You are correct that the base handler is Async, but I'm not sure if I want to keep it that way. My point is a larger one though - as soon as someone creates one subclass to customize some behavior, it prevents independent behavior customization through other subclasses.

I think the scope of enhancing MonitoredResource should actually be the same as enhancing LogEntry. So I would suggest this:

interface LoggingEnhancer {
  void enhanceMonitoredResource(MonitoredResource.Builder builder);
  void enhanceLogEntry(LogEntry.Builder builder, LogRecord record);
}

The current getDefaultResource() implementation should create a builder and add the project_id label to it, then call enhanceMonitoredResource to override/supplement values.

I would also suggest a list of enhancers, in case there are independent labels to add.

It would be great for you to pick up this enhancement if you are able.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw

gregw commented Jan 14, 2017

Copy link
Copy Markdown
Author

@garrettjonesgoogle main problem with the approach that you propose is that the type of the monitored resource type cannot not be enhanced, nor does it lend itself to multiple enhancers (even if it were settable).

Perhaps the resource type can be another parameter passed either to the constructor or set in the property file:

handlers=com.google.cloud.logging.LoggingHandler
com.google.cloud.logging.LoggingHandler.resourceType=gae_app
com.google.cloud.logging.LoggingHandler.enhancers=com.google.cloud.logging.GaeFlexLoggingEnhancer,org.example.SomeOtherEnhancer

I'll prepare something along those lines first thing next week.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw
Logging Enhancer
4801395
@gregw

gregw commented Jan 16, 2017

Copy link
Copy Markdown
Author

@garrettjonesgoogle I have updated to have a Enhancer abstraction. I've added a GaeFlexLoggingEnchancer implementation, which includes the code to be able to add a traceId to the logs.

@meltsufin The GAE log can now be setup with no code, although it is a little verbose in the logging.properties file:

handlers=com.google.cloud.logging.LoggingHandler
com.google.cloud.logging.LoggingHandler.log=gaeflex.log
com.google.cloud.logging.LoggingHandler.resourceType=gae_app
com.google.cloud.logging.LoggingHandler.enhancers=com.google.cloud.logging.GaeFlexLoggingEnhancer
com.google.cloud.logging.LoggingHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format=%3$s: %5$s%6$s
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw
Fixed codacy bot issues
e7daf1f
@coveralls

coveralls commented Jan 16, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 83.345% when pulling e7daf1f on jetty-project:flexMonitoredResource into d4d494d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Jan 16, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 83.349% when pulling e7daf1f on jetty-project:flexMonitoredResource into d4d494d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

garrettjonesgoogle
garrettjonesgoogle reviewed Jan 17, 2017
View reviewed changes
Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/GaeFlexLoggingEnhancer.java Outdated
import com.google.cloud.MonitoredResource.Builder;

/**
* A Logging {@link Enhancer} that enhances the logging for

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/GaeFlexLoggingEnhancer.java Outdated

/**
* A Logging {@link Enhancer} that enhances the logging for
* GAE Flex environment. This enhance can be configured in

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/GaeFlexLoggingEnhancer.java Outdated
@Override
public void enhanceMonitoredResource(Builder builder) {
gaeInstanceId = System.getenv("GAE_INSTANCE"); // Are we running on a GAE instance?
if (gaeInstanceId!=null) {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/GaeFlexLoggingEnhancer.java Outdated

@Override
public void enhanceMonitoredResource(Builder builder) {
gaeInstanceId = System.getenv("GAE_INSTANCE"); // Are we running on a GAE instance?

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java Outdated
* @param log the name of the log to which log entries are written
* @param options options for the Stackdriver Logging service
* @param monitoredResource the monitored resource to which log entries refer
* @param monitoredResource the monitored resource to which log entries refer. If null a default

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java Outdated
* @param monitoredResource the monitored resource to which log entries refer. If null a default
* @param enhancers List of {@link Enhancer} instances.
* resource is created based on the project ID. If a Google App Engine environment is detected
* then a more comprehensive default resource may be created.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java Outdated

/**
* A Log Enhancer.
* May be used to enhanced the {@link MonitoredResource} and/or the {@link LogEntry}

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw
Fixed review points
a0132cf
@coveralls

coveralls commented Jan 17, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 83.341% when pulling a0132cf on jetty-project:flexMonitoredResource into d4d494d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw
fixed codacy-bot recommendation
0676de0
@coveralls

coveralls commented Jan 17, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 83.341% when pulling 0676de0 on jetty-project:flexMonitoredResource into d4d494d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gregw added 3 commits January 17, 2017 21:25
@gregw
Do not create default field value if non null valued passed
0aa59f0
@gregw
Added unit test
e174007
@gregw
fixed codacy-bot recommendation
c64eb42
@coveralls

coveralls commented Jan 17, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 83.35% when pulling c64eb42 on jetty-project:flexMonitoredResource into d4d494d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Jan 17, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 83.35% when pulling c64eb42 on jetty-project:flexMonitoredResource into d4d494d on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gregw added a commit to GoogleCloudPlatform/jetty-runtime that referenced this pull request Jan 18, 2017
@gregw
Testing logging
f255ee1
Test googleapis/google-cloud-java#1535 and jetty-9.4.1-SNAPSHOT
garrettjonesgoogle
garrettjonesgoogle reviewed Jan 18, 2017
View reviewed changes
Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java Outdated
* @param monitoredResource the monitored resource to which log entries refer
* @param monitoredResource the monitored resource to which log entries refer. If it is null
* then a default resource is created based on the project ID. If a Google App Engine environment is detected
* then a more comprehensive default resource may be created.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java
return builder.build();
}

protected void enhanceLogEntry(LogEntry.Builder builder, LogRecord record) {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gregw gregw mentioned this pull request Jan 18, 2017
Integration tests - fix intermittent failure: Unexpected method call Logging.close() #1541
Closed
gregw added 2 commits January 19, 2017 09:48
@gregw
improved javadoc
c93532a
@gregw
deprecate enhanceLogEntry
3185bc2
gregw added 2 commits January 19, 2017 10:37
@gregw
Merge branch 'master' into flexMonitoredResource
30c0019
@gregw
fixed test after merge
823dda7
@coveralls

coveralls commented Jan 19, 2017

Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 823dda7 on jetty-project:flexMonitoredResource into ** on GoogleCloudPlatform:master**.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@garrettjonesgoogle
garrettjonesgoogle merged commit 34c186f into googleapis:master Jan 19, 2017
pongad added a commit that referenced this pull request Feb 7, 2017
@pongad
merge master into pubsub-hp (#1591)
a381426
* Update version to 0.8.1-SNAPSHOT (#1467)

Also, update versions in README to 0.8.0

* Add link to Maven Central for maven-central badge. (#1468)

Used to link to the image, which wasn't super useful.

* fix more races in pubsub tests

Previously BlockingProcessStreamReader has a terminate() method,
used to tell the Reader to stop reading from the emulator process.

This causes an inter-process race.
If the Reader stops before reading emulator's output,
the emulator process will hang as it tries to write to stdout/stderr
as there's no one to read from the other side of the pipe.

Since there is no way to safely stop the Reader,
this commit deletes the method and its associated test.

Additionally, the timeout for LocalSystemTest is increased to 3 minutes,
since the emulator, somehow, consistently takes just longer than a
minute to shut down.

* Regenerating SPI layer (#1501)

* Converting Error Reporting and Monitoring to use resource name types
* Removing formatX/parseX methods from pubsub, converting usage of the
  same to resource name types
* New methods in Logging and PubSub

* Updating grpc dependency to 1.0.3 (#1504)

* Release 0.8.1 (#1512)

* Fix code snippet (wrong method name) in README.md

Original code snippet in _"Querying data"_ section: 

`..while (!queryResponse.jobComplete()) {..`

This results in a compile error: 

_"Cannot resolve method jobComplete()"_

The correct method is `jobCompleted()`

* Updating version in README files. [ci skip]

* Update version to 0.8.2-alpha-SNAPSHOT

* Allow path in URIs passed to newFileSystem (#1470)

* This makes it easier for users who start with a URI describing a full
path to get a FileSystem that can work with that path, since they no
longer have to needlessly remove the path from the URI.

Note that Oracle's description of newFileSystem [1] puts no restriction
on the passed URI.

[1]
https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystems.html#newFileSystem(java.net.URI,%20java.util.Map)

* Preventing logging re-entrance at FINE level (#1523)

* Preventing logging re-entrance at FINE level

Also:
* Reducing the scope of synchronized blocks
* Removing logger exclusions except for Http2FrameLogger

* Add a PathMatcher for CloudStorageFileSystem (#1469)

Add a test, as well.
We reuse the default PathMatcher since it does a fine job of globbing files.

* Set timestamp from LogRecord (#1533)

* Initialize the default MonitoredResource from a GAE environment (#1535)

* BigQuery: Add support to FormatOptions for AVRO

#1441

Added new constant in FormatOptions, and a corresponding factory method. Updated test cases. Confirmed that AVRO does not require special treatment (like CSV does), so no additional changes are required.

* Reverting changed commited by mistake before review.

* BigQuery: Add support to FormatOptions for AVRO

#1441

Added new constant in FormatOptions and a corresponding factory method. Updated test cases. Confirmed that AVRO does not require special treatment (like CSV does), so no additional changes are required.

* use RpcFuture and remove old BundlingSettings (#1572)

* use RpcFuture and remove old BundlingSettings

* Release 0.8.2

Note: This version was accidentally released to Sonatype because of
experimenting with deployment commands, combined with the fact that
autoReleaseAfterClose is set to true. Since releases can't be taken
back, we might as well own up to the release and push the code
forward.

* Updating version in README files. [ci skip]

* Fixing javadoc error in GaeFlexLoggingEnhancer (#1582)

* get tests to compile and pass
gregw added a commit to GoogleCloudPlatform/jetty-runtime that referenced this pull request May 11, 2017
@gregw
Stackdriver logging #68 (#81)
30127c8
* Issue #68 added request context scope

* Issue #68 added request context scope

* Issue #68 added skeleton Logging Handler

* Issue #68 work in progress

* Issue #68 work in progress

* working implementation using a threadlocal to stop looping

* Issue #68 update to latest google-cloud-java LoggingHandler

* Issue #68

Updated to latest gcloud API
removed copied LoggingHandlers
removed instanceid from monitored resource

* Issue #68 Use same labels as nginx

* Issue #68

Code cleanups after review

* Issue #68

Removed stackdriver logging, so this just configures JUL to capture the traceid and log to stderr

* renamed traceid to traceId

* gcloud api not currently used

* Tunnel traceId in parameters #68

* Simplified with traceId lookup in formatter #68

* Use 8.2 beta stackdriver

* Improved formatting

* use logger name rather than source

* run jetty from the webapp working directory so logging configuration may be relative

* Testing logging

Test googleapis/google-cloud-java#1535 and jetty-9.4.1-SNAPSHOT

* use released 9.4.1

* Issue #68

minor clean ups

* Do not CD to non existant directory

* improved README

* fixed Cloud SDK

* Released beta of google-cloud-logging

* updated google-cloud API to 0.8.3-beta

* added remote test to check logging

* Stackdriver logging testing

improved comments
check for traceid

* upgrade to 0.9.2

* Test for zone

* upgrade to 10.0 gcloud API

* enable gae module only of GAE_INSTANCE environment variable is set

* improved gae.mod documentation

* GCP module

Rename gae module and configuration to gcp
Split the jetty.commands into jetty.commands and gcp.commands
moved commands file to jetty-base/config-scripts
updated setup-env-ext to run the gcp.commands when image is run with a GAE_INSTANCE set

* fixed warnings

* turn off stackdriver logging by default. Added instructions to enable.

* Updates

Update to latest openjdk-runtime with setup-env.d
Update to latest jetty release

* Use the PLATFORM env var

* Improved jetty startup

Added JETTY_PROPERTIES, JETTY_MODULES_ENABLE & JETTY_MODULES_DISABLE
Removed duplicate code fron 50-jetty.bash

* use launcher URL

* Trimmed GCP specific configuration

* Added structure tests for jetty setup script

Also fixed unpack bug found as a result

* Support passing just args

* fix merge

* Fixed test workspace paths for cloud build

* review feedback

* working directory is the root webapp

* Improve handling of various types of command line.

Fixed problem with handling of command line like "ls /var"
Requires duplication of test for java from openjdk-runtime docker-entrypoint.bash,
which should be modified to avoid the duplication.

* upgrade cgloud API version to 0.13.0-beta

* use package target

* tested with FINE log level

* Simplify entrypoint args processing

The $@ arg array is kept complete between all scripts.

* remove debug

* remove debug

* Test that the logging dependencies are hidden from webapp classpath

* update README.md with instructions to keep INFO level on io.grpc.netty.level=INFO

* Updated to lasted openjdk-runtime

* fixed classloader test

* fixed TODO

* Update to jetty 9.4.5 and gcloud 1.0.1-SNAPSHOT

* upgraded to gcloud-logging 1.0.1

* turn off debug

* updated README for latest 1.0.1 gcloud-logging

* update classpath exclusion


\o/
meltsufin pushed a commit that referenced this pull request Dec 22, 2025
@renovate-bot @gcf-owl-bot
deps: update dependency com.google.cloud:sdk-platform-java-config to …
7fde779
…v3.25.0 (#1535)

* deps: update dependency com.google.cloud:sdk-platform-java-config to v3.25.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Jan 6, 2026
@renovate-bot
deps: update dependency com.google.cloud:google-cloud-logging to v3.2…
0779cae
…3.7 (#1535)
chingor13 pushed a commit that referenced this pull request Jan 22, 2026
@zhumin8
chore: setup 2.19.x lts branch (#1535)
d478009
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 11, 2026
@renovate-bot @gcf-owl-bot
deps: update dependency com.google.cloud:sdk-platform-java-config to …
bca84b9
…v3.25.0 (googleapis#1535)

* deps: update dependency com.google.cloud:sdk-platform-java-config to v3.25.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
@renovate-bot
deps: update dependency com.google.cloud:google-cloud-logging to v3.2…
5192708
…3.7 (#1535)
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@gcf-owl-bot
chore: update requirements.txt to address dependabot security alerts. (…
c67b753
…googleapis#1936) (googleapis#1535)

Created by running:
pip-compile requirements.in --generate-hashes --upgrade within synthtool/gcp/templates/java_library/.kokoro and synthtool/docker/owlbot/java/src/
Source-Link: googleapis/synthtool@853dbcd
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:084ad4c60551b075846bcb2405ec1c14b0d00ec1eb5503d4dd0d2a92cdc2d3e2

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
suztomo pushed a commit that referenced this pull request Mar 30, 2026
@pongad
merge master into pubsub-hp (#1591)
f19440d
* Update version to 0.8.1-SNAPSHOT (#1467)

Also, update versions in README to 0.8.0

* Add link to Maven Central for maven-central badge. (#1468)

Used to link to the image, which wasn't super useful.

* fix more races in pubsub tests

Previously BlockingProcessStreamReader has a terminate() method,
used to tell the Reader to stop reading from the emulator process.

This causes an inter-process race.
If the Reader stops before reading emulator's output,
the emulator process will hang as it tries to write to stdout/stderr
as there's no one to read from the other side of the pipe.

Since there is no way to safely stop the Reader,
this commit deletes the method and its associated test.

Additionally, the timeout for LocalSystemTest is increased to 3 minutes,
since the emulator, somehow, consistently takes just longer than a
minute to shut down.

* Regenerating SPI layer (#1501)

* Converting Error Reporting and Monitoring to use resource name types
* Removing formatX/parseX methods from pubsub, converting usage of the
  same to resource name types
* New methods in Logging and PubSub

* Updating grpc dependency to 1.0.3 (#1504)

* Release 0.8.1 (#1512)

* Fix code snippet (wrong method name) in README.md

Original code snippet in _"Querying data"_ section: 

`..while (!queryResponse.jobComplete()) {..`

This results in a compile error: 

_"Cannot resolve method jobComplete()"_

The correct method is `jobCompleted()`

* Updating version in README files. [ci skip]

* Update version to 0.8.2-alpha-SNAPSHOT

* Allow path in URIs passed to newFileSystem (#1470)

* This makes it easier for users who start with a URI describing a full
path to get a FileSystem that can work with that path, since they no
longer have to needlessly remove the path from the URI.

Note that Oracle's description of newFileSystem [1] puts no restriction
on the passed URI.

[1]
https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystems.html#newFileSystem(java.net.URI,%20java.util.Map)

* Preventing logging re-entrance at FINE level (#1523)

* Preventing logging re-entrance at FINE level

Also:
* Reducing the scope of synchronized blocks
* Removing logger exclusions except for Http2FrameLogger

* Add a PathMatcher for CloudStorageFileSystem (#1469)

Add a test, as well.
We reuse the default PathMatcher since it does a fine job of globbing files.

* Set timestamp from LogRecord (#1533)

* Initialize the default MonitoredResource from a GAE environment (#1535)

* BigQuery: Add support to FormatOptions for AVRO

#1441

Added new constant in FormatOptions, and a corresponding factory method. Updated test cases. Confirmed that AVRO does not require special treatment (like CSV does), so no additional changes are required.

* Reverting changed commited by mistake before review.

* BigQuery: Add support to FormatOptions for AVRO

#1441

Added new constant in FormatOptions and a corresponding factory method. Updated test cases. Confirmed that AVRO does not require special treatment (like CSV does), so no additional changes are required.

* use RpcFuture and remove old BundlingSettings (#1572)

* use RpcFuture and remove old BundlingSettings

* Release 0.8.2

Note: This version was accidentally released to Sonatype because of
experimenting with deployment commands, combined with the fact that
autoReleaseAfterClose is set to true. Since releases can't be taken
back, we might as well own up to the release and push the code
forward.

* Updating version in README files. [ci skip]

* Fixing javadoc error in GaeFlexLoggingEnhancer (#1582)

* get tests to compile and pass
suztomo pushed a commit that referenced this pull request Mar 30, 2026
@release-please
chore(main): release 0.127.31 (#1535)
a848c37
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
@pongad
merge master into pubsub-hp (#1591)
2b711d2
* Update version to 0.8.1-SNAPSHOT (#1467)

Also, update versions in README to 0.8.0

* Add link to Maven Central for maven-central badge. (#1468)

Used to link to the image, which wasn't super useful.

* fix more races in pubsub tests

Previously BlockingProcessStreamReader has a terminate() method,
used to tell the Reader to stop reading from the emulator process.

This causes an inter-process race.
If the Reader stops before reading emulator's output,
the emulator process will hang as it tries to write to stdout/stderr
as there's no one to read from the other side of the pipe.

Since there is no way to safely stop the Reader,
this commit deletes the method and its associated test.

Additionally, the timeout for LocalSystemTest is increased to 3 minutes,
since the emulator, somehow, consistently takes just longer than a
minute to shut down.

* Regenerating SPI layer (#1501)

* Converting Error Reporting and Monitoring to use resource name types
* Removing formatX/parseX methods from pubsub, converting usage of the
  same to resource name types
* New methods in Logging and PubSub

* Updating grpc dependency to 1.0.3 (#1504)

* Release 0.8.1 (#1512)

* Fix code snippet (wrong method name) in README.md

Original code snippet in _"Querying data"_ section: 

`..while (!queryResponse.jobComplete()) {..`

This results in a compile error: 

_"Cannot resolve method jobComplete()"_

The correct method is `jobCompleted()`

* Updating version in README files. [ci skip]

* Update version to 0.8.2-alpha-SNAPSHOT

* Allow path in URIs passed to newFileSystem (#1470)

* This makes it easier for users who start with a URI describing a full
path to get a FileSystem that can work with that path, since they no
longer have to needlessly remove the path from the URI.

Note that Oracle's description of newFileSystem [1] puts no restriction
on the passed URI.

[1]
https://docs.oracle.com/javase/7/docs/api/java/nio/file/FileSystems.html#newFileSystem(java.net.URI,%20java.util.Map)

* Preventing logging re-entrance at FINE level (#1523)

* Preventing logging re-entrance at FINE level

Also:
* Reducing the scope of synchronized blocks
* Removing logger exclusions except for Http2FrameLogger

* Add a PathMatcher for CloudStorageFileSystem (#1469)

Add a test, as well.
We reuse the default PathMatcher since it does a fine job of globbing files.

* Set timestamp from LogRecord (#1533)

* Initialize the default MonitoredResource from a GAE environment (#1535)

* BigQuery: Add support to FormatOptions for AVRO

#1441

Added new constant in FormatOptions, and a corresponding factory method. Updated test cases. Confirmed that AVRO does not require special treatment (like CSV does), so no additional changes are required.

* Reverting changed commited by mistake before review.

* BigQuery: Add support to FormatOptions for AVRO

#1441

Added new constant in FormatOptions and a corresponding factory method. Updated test cases. Confirmed that AVRO does not require special treatment (like CSV does), so no additional changes are required.

* use RpcFuture and remove old BundlingSettings (#1572)

* use RpcFuture and remove old BundlingSettings

* Release 0.8.2

Note: This version was accidentally released to Sonatype because of
experimenting with deployment commands, combined with the fact that
autoReleaseAfterClose is set to true. Since releases can't be taken
back, we might as well own up to the release and push the code
forward.

* Updating version in README files. [ci skip]

* Fixing javadoc error in GaeFlexLoggingEnhancer (#1582)

* get tests to compile and pass
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
@release-please
chore(main): release 0.127.31 (#1535)
7f5bc26
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:google-cloud-pubsub t…
a772882
…o v1.123.7 (#1535)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.7

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 1, 2026
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:google-cloud-pubsub t…
e7f6bd1
…o v1.123.7 (#1535)

* chore(deps): update dependency com.google.cloud:google-cloud-pubsub to v1.123.7

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
@renovate-bot
build(deps): update dependency com.google.cloud:google-cloud-shared-c…
4157c14
…onfig to v1.5.5 (googleapis#1535)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@garrettjonesgoogle garrettjonesgoogle garrettjonesgoogle left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@gregw @coveralls @meltsufin @garrettjonesgoogle @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.