@@ -948,30 +948,41 @@ public void setActiveSpan(final @Nullable ISpan span) {
948948 getOptions ().getCacheDirPath (), !getOptions ().isEnableAutoSessionTracking ());
949949 }
950950
951- @ Override
952- public void reportFullyDisplayed () {
953- if (getOptions ().isEnableTimeToFullDisplayTracing ()) {
954- getOptions ().getFullyDisplayedReporter ().reportFullyDrawn ();
955- }
956- }
957-
958951 @ Override
959952 public @ Nullable TransactionContext continueTrace (
960- final @ Nullable String sentryTrace , final @ Nullable List <String > baggageHeaders ) {
953+ final @ Nullable String sentryTrace , final @ Nullable List <String > baggageHeaders ) {
961954 @ NotNull
962955 PropagationContext propagationContext =
963- PropagationContext .fromHeaders (getOptions ().getLogger (), sentryTrace , baggageHeaders );
956+ PropagationContext .fromHeaders (getOptions ().getLogger (), sentryTrace , baggageHeaders );
964957 configureScope (
965- (scope ) -> {
966- scope .setPropagationContext (propagationContext );
967- });
958+ (scope ) -> {
959+ scope .setPropagationContext (propagationContext );
960+ });
968961 if (getOptions ().isTracingEnabled ()) {
969962 return TransactionContext .fromPropagationContext (propagationContext );
970963 } else {
971964 return null ;
972965 }
973966 }
974967
968+ @ Override
969+ public void continueTrace (
970+ final @ NotNull String traceId , final @ NotNull String spanID ) {
971+ @ NotNull
972+ PropagationContext propagationContext = PropagationContext .fromId (traceId , spanID );
973+ configureScope (
974+ (scope ) -> {
975+ scope .setPropagationContext (propagationContext );
976+ });
977+ }
978+
979+ @ Override
980+ public void reportFullyDisplayed () {
981+ if (getOptions ().isEnableTimeToFullDisplayTracing ()) {
982+ getOptions ().getFullyDisplayedReporter ().reportFullyDrawn ();
983+ }
984+ }
985+
975986 @ Override
976987 public @ Nullable SentryTraceHeader getTraceparent () {
977988 if (!isEnabled ()) {
0 commit comments