Skip to content

Commit

Permalink
Merge pull request #26538 from gsmet/jakarta-progress-12
Browse files Browse the repository at this point in the history
Jakarta progress 12
  • Loading branch information
gsmet authored Jul 4, 2022
2 parents 3a7ef4f + 7a0bd41 commit be28a2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci-actions-incremental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ jobs:
gib_args: ${{ steps.get-gib-args.outputs.gib_args }}
gib_impacted: ${{ steps.get-gib-impacted.outputs.impacted_modules }}
steps:
- name: Skip non-compilable modules for jakarta-rewrite branch
run: |
echo "COMMON_MAVEN_ARGS=${COMMON_MAVEN_ARGS} -pl '"'!'":quarkus-integration-test-infinispan-client' -pl '"'!'":quarkus-integration-test-kafka-avro'" >> $COMMON_MAVEN_ARGS
if: github.ref_name == 'jakarta-rewrite'

- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down Expand Up @@ -188,7 +193,7 @@ jobs:
# we filter them here so that it cascades to all the builds
if [ "${GITHUB_REF_NAME}" == "jakarta-rewrite" ]
then
GIB_IMPACTED=$(cat gib-impacted.log | grep -Pv '^(tcks/|integration-tests/grpc-|integration-tests/infinispan-client|integration-tests/kafka-avro|integration-tests/opentelemetry-grpc)')
GIB_IMPACTED=$(cat gib-impacted.log | grep -Pv '^(integration-tests/infinispan-client|integration-tests/kafka-avro)')
else
GIB_IMPACTED=$(cat gib-impacted.log)
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package io.quarkus.opentelemetry.runtime.tracing.grpc;

import javax.annotation.Nullable;

import io.grpc.Status;
import io.opentelemetry.api.trace.StatusCode;
import io.opentelemetry.instrumentation.api.instrumenter.SpanStatusBuilder;
Expand All @@ -12,8 +10,8 @@ class GrpcSpanStatusExtractor implements SpanStatusExtractor<GrpcRequest, Status
public void extract(
final SpanStatusBuilder spanStatusBuilder,
final GrpcRequest grpcRequest,
@Nullable final Status status,
@Nullable final Throwable error) {
final Status status,
final Throwable error) {
if (status != null && status.isOk()) {
spanStatusBuilder.setStatus(StatusCode.UNSET);
} else if (error != null) {
Expand Down

0 comments on commit be28a2f

Please sign in to comment.