sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

File instrumentation - missing functions

Open kahest opened this issue 2 years ago • 1 comments

Description

There are some functions that should be captured by auto instrumentation but currently aren't, maybe due to API/impl changes in Swift/iOS:

  • string.write(to: filePath, atomically: true, encoding: .utf8)
    • workaround: string.data(using: .utf8)?.write(to: filePath)
  • String(contentsOf: url)
  • more TBD

kahest avatar Nov 30 '23 10:11 kahest

Let's check if we can swizzle these methods above. If we can, let's swizzle them. If not, don't put much effort into making them available.

Please also update the docs.

philipphofmann avatar Dec 06 '23 13:12 philipphofmann