Comments (7)
@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.
@tshedor yes i am watching live tail, For android i can see logs in live tail and for iOS no logs.
from datadog_flutter.
@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));
}
from datadog_flutter.
@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.
@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.
@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.
from datadog_flutter.
@ashok2004 great! Thank you for verifying. 1.1.0-dev.7 is published
from datadog_flutter.
Related Issues (20)
- Loading Type and Loading Time not show in RUM HOT 5
- Beta2 still doesn't compile on Flutter 3 HOT 3
- Deprecation of Community Plugin HOT 4
- App crashes on iOS HOT 2
- extrainfo is not displayed in session's attributes HOT 10
- MissingPluginException HOT 4
- Bug in Datadog Observer implementation HOT 3
- Status of 'Official' Datadog SDK Integration HOT 3
- Web Build Error 'TypeError: Cannot read properties of undefined (reading: 'init'), null, null) HOT 4
- Web Datadog Flutter error `Unsupported operation: Platform._operatingSystem` HOT 3
- `setUserInfo` `extraInfo` is not working on iOS. HOT 3
- Android API 31 Crash HOT 1
- Unable to determine Swift version for the following pods 'datadog_flutter' HOT 2
- datadog_flutter v1.7.0: App crashes when extraInfo property in setUserInfo method is null HOT 2
- Odd mappings of log levels happening on Android HOT 2
- Crash Reporting HOT 8
- Question: Why is tracing limited to http.Request HOT 8
- Disable [DEBUG] messages HOT 1
- Random failure when logging HOT 4
- pod 'DatadogSDKCrashReporting' is missing as of 1.7.3 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datadog_flutter.