FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Semgrep Observability with OpenTelemetry
NewsMachine Learning

Semgrep Observability with OpenTelemetry

via Dev.toAdam Gardner2h ago

Semgrep is a great open source security and code validation tool. Semgrep revolves around rules like this: rules : - id : print-to-logger pattern : print($VAR) message : Use logging.info() instead of print() language : python severity : MEDIUM fix : logger.info($MSG) The rule above will raise a MEDIUM severity issue every time a use of print() is used in your Python code. It will also provide the recommended fix and even take the value inside the print statement and produce the fix content. Thus print("Hello world!") becomes logger.info("Hello world!") The rules.yaml file is then used to validate one or more (in this case) Python files: semgrep scan -f rules.yaml app.py Capturing Semgrep Output using the OpenTelemetry Collector Semgrep is capable of producing JSON output which means it's really easy to grab using the OpenTelemetry collector. Let's re-run the previous command with a few more flags to produce JSON: semgrep scan -f rules.yaml --json -o out.json app.py It produces single l

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

Amazon Spring Sale live blog 2026: Last day to score top deals
News

Amazon Spring Sale live blog 2026: Last day to score top deals

ZDNet • 36m ago

Mastering Clean Code Part 6
News

Mastering Clean Code Part 6

Medium Programming • 37m ago

Be honest: are we still becoming better developers, or just faster at assembling code with tools we barely understand? Shipping fast feels good until the bug shows up in production and nobody really knows why.
News

Be honest: are we still becoming better developers, or just faster at assembling code with tools we barely understand? Shipping fast feels good until the bug shows up in production and nobody really knows why.

Dev.to • 1h ago

5 gadgets I'm buying this spring to grow my green thumb (and they're still discounted)
News

5 gadgets I'm buying this spring to grow my green thumb (and they're still discounted)

ZDNet • 1h ago

The Graph Problems You’re Already Solving (Just Badly)
News

The Graph Problems You’re Already Solving (Just Badly)

Medium Programming • 1h ago

Discover More Articles