Code Monkey home page Code Monkey logo

Comments (7)

tshedor avatar tshedor commented on July 30, 2024

@ashok2004 I'm actually able to get this to report to Datadog without error with iOS. Are you watching the live tail?

from datadog_flutter.

ashok2004 avatar ashok2004 commented on July 30, 2024

@tshedor yes i am watching live tail, For android i can see logs in live tail and for iOS no logs.

from datadog_flutter.

tshedor avatar tshedor commented on July 30, 2024

@ashok2004 I'm not able to replicate the problem on iOS. I'm using the below code (Datadog evidence after the code):

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await DatadogFlutter.initialize(
    clientToken: DATADOG_CLIENT_TOKEN,
    environment: DATADOG_ENVIRONMENT,
    androidRumApplicationId: DATADOG_ANDROID_RUM_APPLICATION_ID,
    iosRumApplicationId: DATADOG_IOS_RUM_APPLICATION_ID,
    serviceName: DATADOG_SERVICE_NAME,
    trackingConsent: TrackingConsent.granted,
  );
  final ddLogger = DatadogLogger();
  // Capture Flutter errors automatically:
  FlutterError.onError = DatadogRum.instance.addFlutterError;

  await DatadogTracing.initialize();
  await ddLogger.log('a warning', Level.WARNING);
  await ddLogger.log('a severe', Level.SEVERE);
  await ddLogger.log('a shout', Level.SHOUT);
  await ddLogger.log('a fine', Level.FINE);
  await ddLogger.log('a finer', Level.FINER);
  await ddLogger.log('a finest', Level.FINEST);
  await ddLogger.log('an info', Level.INFO);

  // Catch errors without crashing the app:
  runZonedGuarded(() {
    runApp(MyApp(ddLogger));
  }, (error, stackTrace) {
    DatadogRum.instance.addError(error, stackTrace);
  });
  runApp(MyApp(ddLogger));
}

image

from datadog_flutter.

ashok2004 avatar ashok2004 commented on July 30, 2024

@tshedor may be some issue with related to iOS , however please do cut off the dev branch with Android fixes because for dev6 version it is throwing compiler error while building for android.

from datadog_flutter.

tshedor avatar tshedor commented on July 30, 2024

@ashok2004 can you please try running the above code (it's from example) using your Datadog client token and RUM ID in iOS? I really want to make sure there isn't another bug floating around that will require another quick release

from datadog_flutter.

ashok2004 avatar ashok2004 commented on July 30, 2024

@tshedor Got the Root cause of this bug, after checking logs in xcode, NetSkope secure client blocking the connection checking the SSL certificates.

"<cert(0x7fba8d89b200) s: caadmin.netskope.com i: caadmin.netskope.com>"
)}}, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask .<5>"
), _kCFStreamErrorCodeKey=-9802, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<5>, NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x600002ad8090>, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.}
[DATADOG SDK] 🐶 → 02:14:23.450 [DEBUG] → (logging) not delivered, will be retransmitted: networkError
[DATADOG SDK] 🐶 → 02:14:53.251 [DEBUG] 💡 (tracing) No upload. Batch to upload: NO, System conditions: ✅
[DATADOG SDK] 🐶 → 02:14:53.251 [DEBUG] 💡 (rum) No upload. Batch to upload: NO, System conditions: ✅

After disabling netskope client Uploading properly.

[DATADOG SDK] 🐶 → 02:15:03.716 [DEBUG] ⏳ (logging) Uploading batch...
[DATADOG SDK] 🐶 → 02:15:04.132 [DEBUG] → (logging) accepted, won't be retransmitted: clientError
[DATADOG SDK] 🐶 → 02:15:37.541 [DEBUG] 💡 (rum) No upload. Batch to upload: NO, System conditions: ✅
[DATADOG SDK] 🐶 → 02:15:37.541 [DEBUG] 💡 (tracing) No upload. Batch to upload: NO, System conditions: ✅
[DATADOG SDK] 🐶 → 02:15:43.989 [DEBUG] ⏳ (logging) Uploading batch...
[DATADOG SDK] 🐶 → 02:15:44.341 [DEBUG] → (logging) accepted, won't be retransmitted: clientError
[DATADOG SDK] 🐶 → 02:16:16.957 [DEBUG] ⏳ (logging) Uploading batch...
[DATADOG SDK] 🐶 → 02:16:17.344 [DEBUG] → (logging) accepted, won't be retransmitted: clientError
[DATADOG SDK] 🐶 → 02:16:26.260 [DEBUG] 💡 (tracing) No upload. Batch to upload: NO, System conditions: ✅
[DATADOG SDK] 🐶 → 02:16:26.260 [DEBUG] 💡 (rum) No upload. Batch to upload: NO, System conditions: ✅
[DATADOG SDK] 🐶 → 02:16:46.699 [DEBUG] ⏳ (logging) Uploading batch...
[DATADOG SDK] 🐶 → 02:16:47.053 [DEBUG] → (logging) accepted, won't be retransmitted: clientError

Now Logging accepted. Able to see logs for iOS.
@tshedor closing the issue.
Screenshot 2021-05-20 at 2 43 36 AM

Screenshot 2021-05-20 at 3 05 05 AM

from datadog_flutter.

tshedor avatar tshedor commented on July 30, 2024

@ashok2004 great! Thank you for verifying. 1.1.0-dev.7 is published

from datadog_flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.